MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / expectExploreAlwaysLoad

Function expectExploreAlwaysLoad

__tests__/mcp-tool-annotations.test.ts:41–45  ·  view source on GitHub ↗

Assert the explore tool in a `tools/list` surface is marked always-load for Claude Code (#1696).

(surface: ToolDefinition[])

Source from the content-addressed store, hash-verified

39
40/** Assert the explore tool in a `tools/list` surface is marked always-load for Claude Code (#1696). */
41function expectExploreAlwaysLoad(surface: ToolDefinition[]): void {
42 const explore = surface.find((t) => t.name === 'codegraph_explore');
43 expect(explore, 'codegraph_explore is missing from the surface').toBeDefined();
44 expect(explore!._meta).toEqual({ 'anthropic/alwaysLoad': true });
45}
46
47describe('Read-only annotations on the codegraph MCP tools (#1018)', () => {
48 const original = process.env[ENV];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected