mcp

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMCP

func NewMCP(cfg MCPConfig, deps MCPDeps) (agentkit.ToolProvider, error)

NewMCP registers tool/mcp: Load mcpServers JSON and expose MCP tools as dynamic model-visible tools.

Best practices:

  • Put project servers in .cursor/mcp.json; use global:mcp.json for cross-project defaults.
  • Mount via tools/runtime deps.dynamicTools, not deps.tools, because definitions are discovered at runtime.

Types

type MCPConfig

type MCPConfig struct {
	// Files are MCP config paths in precedence order; first file wins for duplicate server names.
	Files []string `json:"files,omitempty"`
}

type MCPDeps

type MCPDeps struct {
	Workspace   workspace.Service `json:"workspace"`
	Credentials credentials.Store `json:"credentials,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL