MCPcopy Create free account
hub / github.com/coder/coder / mcpToolWrapper

Struct mcpToolWrapper

coderd/x/chatd/mcpclient/mcpclient.go:501–511  ·  view source on GitHub ↗

mcpToolWrapper adapts a single MCP tool into a fantasy.AgentTool. It stores the prefixed name for Info() but strips the prefix when forwarding calls to the remote server.

Source from the content-addressed store, hash-verified

499// fantasy.AgentTool. It stores the prefixed name for Info() but
500// strips the prefix when forwarding calls to the remote server.
501type mcpToolWrapper struct {
502 configID uuid.UUID
503 prefixedName string
504 originalName string
505 description string
506 parameters map[string]any
507 required []string
508 modelIntent bool
509 client *client.Client
510 providerOptions fantasy.ProviderOptions
511}
512
513// MCPServerConfigID returns the database ID of the MCP server
514// config that this tool originates from.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected