MCPcopy Create free account
hub / github.com/github/copilot-sdk / AddMCP

Method AddMCP

go/toolset.go:74–78  ·  view source on GitHub ↗

AddMCP adds an MCP tool pattern. Matches tools advertised by any configured MCP server.

(toolName string)

Source from the content-addressed store, hash-verified

72// AddMCP adds an MCP tool pattern. Matches tools advertised by any configured
73// MCP server.
74func (s *ToolSet) AddMCP(toolName string) *ToolSet {
75 validateToolName("mcp", toolName)
76 s.items = append(s.items, "mcp:"+toolName)
77 return s
78}
79
80// ToSlice returns a defensive copy of the accumulated filter strings.
81func (s *ToolSet) ToSlice() []string {

Calls 1

validateToolNameFunction · 0.85