Skip to main content
Glama

MCP Task

by just-every
fix-requests.js714 B
import fs from 'fs'; import path from 'path'; const testFiles = [ 'test/mcp-test-cancel.js', 'test/mcp-test-errors.js', 'test/mcp-test-check-after.js', 'test/mcp-test-with-files.js' ]; for (const file of testFiles) { let content = fs.readFileSync(file, 'utf8'); // Fix all tools/call requests to add CallToolResultSchema content = content.replace( /await client\.request\(\s*\{\s*method:\s*'tools\/call'[^}]+\}\s*\);/gs, (match) => { // Add the schema parameter return match.replace(/\);$/, ',\n CallToolResultSchema\n );'); } ); fs.writeFileSync(file, content); console.log(`Fixed ${file}`); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/just-every/mcp-task'

If you have feedback or need assistance with the MCP directory API, please join our Discord server