Skip to main content
Glama

MCP Server.exe

by shadowcz007
schemas.ts811 B
import { z } from 'zod' import { StdioServerParameters } from '@modelcontextprotocol/sdk/client/stdio.js' import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js' export const mcpServerSchema = z.object({ url: z.string().url(), name: z.string().optional(), version: z.string().optional(), description: z.string().optional(), type: z.enum(['sse', 'stdio']), params: z.custom<StdioServerParameters | SSEClientTransportOptions>().optional(), tools: z.array(z.string()).optional() }) export type McpServerType = z.infer<typeof mcpServerSchema> export const configSchema = z.object({ name: z.string(), version: z.string(), description: z.string().optional(), servers: z.record(z.string(), mcpServerSchema) }) export type ConfigType = z.infer<typeof configSchema>

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/shadowcz007/mcp_server_exe'

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