Skip to main content
Glama
by microsoft
mcp-call-tool.genai.mts475 B
script({ model: "echo", tests: {} }) const fs = await host.mcpServer({ id: "filesystem", command: "npx", args: ["-y", "@modelcontextprotocol/server-filesystem", path.resolve(".")], }) const tools = await fs.listTools() console.log(`mcp: tools: ${tools.map((t) => t.name).join("\n")}`) const tool = tools.find((t) => t.name === "get_file_info") console.log(tool.inputSchema) const res = await fs.callTool("get_file_info", { path: "README.md" }) console.log(res)

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/microsoft/genaiscript'

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