Documentation
¶
Index ¶
- Variables
- func RegisterTools(server *mcp.Server, specData []byte, client *http.Client) error
- func ResolveSecretReference(ctx context.Context, value string) (string, bool, error)
- func RetryableClient(retries int, timeout time.Duration, rps int, logger interface{}) (*http.Client, error)
- type HeaderTransport
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Command is a variable that allows overriding the command creation for testing CommandContext = exec.CommandContext // LookPath is a variable that allows overriding the lookup behavior for testing LookPath = exec.LookPath )
Functions ¶
func RegisterTools ¶ added in v0.6.0
RegisterTools parses the given OpenAPI specification and registers tools on the provided MCP server. All HTTP calls are executed using the provided http.Client. If the client is nil, http.DefaultClient is used.
func ResolveSecretReference ¶
ResolveSecretReference attempts to resolve a 1Password secret reference (e.g. op://vault/item/field) Returns the resolved value and whether it was a secret reference
Types ¶
type HeaderTransport ¶
type HeaderTransport struct {
Base http.RoundTripper
Headers http.Header
}
HeaderTransport is a custom RoundTripper that adds default headers to requests
Click to show internal directories.
Click to hide internal directories.