Skip to main content
Glama

MCP-Hub-MCP Server

by tpavelek
types.ts1.15 kB
import { z } from "zod"; export const ConnectMcpParamsSchema = z.object({ command: z .string() .describe("Command to run the MCP server"), args: z .array(z.string()) .optional() .describe("Command arguments"), }); export type ConnectMcpParams = z.infer< typeof ConnectMcpParamsSchema >; export const ListToolsParamsSchema = z.object({ serverName: z .string() .describe("Name of the MCP server to list tools from"), }); export type ListToolsParams = z.infer< typeof ListToolsParamsSchema >; export const CallToolParamsSchema = z.object({ serverName: z .string() .describe("Name of the MCP server to call tool from"), toolName: z.string().describe("Name of the tool to call"), toolArgs: z .record(z.unknown()) .describe("Arguments to pass to the tool"), }); export type CallToolParams = z.infer< typeof CallToolParamsSchema >; // MCP configuration file interface (claude_desktop_config.json format) export interface McpServerConfig { command: string; args?: string[]; env?: Record<string, string>; } export interface McpConfig { mcpServers: Record<string, McpServerConfig>; }

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/tpavelek/mcp-hub-mcp'

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