MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / schema

Method schema

src/mcp/tool-wrapper.ts:36–46  ·  view source on GitHub ↗

Override schema() to use the MCP-provided JSON Schema directly (skip zod conversion).

()

Source from the content-addressed store, hash-verified

34 }
35
36 /** Override schema() to use the MCP-provided JSON Schema directly (skip zod conversion). */
37 schema(): ToolSchema {
38 const inputSchema = this.toolDef.inputSchema ?? { type: 'object', properties: {} };
39 return {
40 type: 'function',
41 function: {
42 name: this.name,
43 description: this.description,
44 parameters: inputSchema as ToolSchema['function']['parameters'],
45 },
46 };
47 }
48
49 async execute(args: Record<string, unknown>, ctx: ToolContext): Promise<ToolResult> {

Callers 3

getSchemasMethod · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected