Skip to main content
Glama
index.ts899 B
import { tinymanTools, handleTinymanTools } from './tinyman/index.js'; import { ErrorCode, McpError } from '@modelcontextprotocol/sdk/types.js'; // Combine all API tools export const apiManager = [ ...tinymanTools, ]; // Handle all API tools export async function handleApiManager(name: string, args: any): Promise<any> { try { let response; // Tinyman tools if (name.startsWith('tinyman_')) { response = await handleTinymanTools(name, args); } else { throw new McpError( ErrorCode.MethodNotFound, `Unknown tool: ${name}` ); } // Process and format the response return response } catch (error) { if (error instanceof McpError) { throw error; } throw new McpError( ErrorCode.InternalError, `Failed to handle resource tool: ${error instanceof Error ? error.message : String(error)}` ); } }

Latest Blog Posts

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/GoPlausible/tinyman-mcp'

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