MCPcopy Index your code
hub / github.com/github/copilot-sdk / addMcp

Method addMcp

nodejs/src/toolSet.ts:97–101  ·  view source on GitHub ↗

* Adds an MCP tool pattern. Matches tools advertised by any configured * MCP server. * * @param toolName The runtime's canonical wire name for the MCP tool * (e.g. `"github-list_issues"`), or `"*"` to match all MCP tools from * any server.

(toolName: string)

Source from the content-addressed store, hash-verified

95 * any server.
96 */
97 addMcp(toolName: string): ToolSet {
98 validateName("mcp", toolName);
99 this.items.push(`mcp:${toolName}`);
100 return this;
101 }
102
103 /**
104 * Returns a defensive copy of the accumulated filter strings, suitable for

Callers 1

toolSet.test.tsFile · 0.45

Calls 2

validateNameFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected