58d2feb54a
Allows connecting to multiple Gitea instances from a single MCP server.
Set GITEA_SERVERS as a JSON object mapping names to {host, token, insecure}
configs. Every tool gets an optional "server" parameter, and a new
"list_servers" tool is added to discover available connections.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
10 lines
179 B
Go
10 lines
179 B
Go
package context
|
|
|
|
type contextKey string
|
|
|
|
const (
|
|
TokenContextKey = contextKey("token")
|
|
HostContextKey = contextKey("host")
|
|
InsecureContextKey = contextKey("insecure")
|
|
)
|