MCPcopy Create free account
hub / github.com/MicrosoftDocs/mcp / createTool

Function createTool

cli/test/unit/cache.test.ts:11–19  ·  view source on GitHub ↗
(name: string, description: string)

Source from the content-addressed store, hash-verified

9import type { ListedTool } from '../../src/mcp/tool-discovery.js';
10
11function createTool(name: string, description: string): ListedTool {
12 return {
13 name,
14 description,
15 inputSchema: {
16 type: 'object',
17 },
18 };
19}
20
21describe('file session cache store', () => {
22 it('writes and reads cached session entries', async () => {

Callers 1

cache.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected