Skip to main content
Glama

MCP Express Server

by pr0methevs
types.ts1.23 kB
import { Response } from 'express'; export interface MCPRequest { jsonrpc: '2.0'; id?: string | number; method: string; params?: Record<string, any>; } export interface MCPResponse { jsonrpc: '2.0'; id?: string | number; result?: any; error?: MCPError; } export interface MCPError { code: number; message: string; data?: any; } export interface MCPNotification { jsonrpc: '2.0'; method: string; params?: Record<string, any>; } export interface Tool { name: string; description: string; inputSchema: { type: 'object'; properties: Record<string, any>; required?: string[]; }; } export interface Resource { uri: string; name: string; description?: string; mimeType?: string; } export interface SSEConnection { id: string; res: Response; createdAt: Date; } export interface ServerCapabilities { tools?: {}; resources?: {}; prompts?: {}; } export interface InitializeParams { protocolVersion: string; capabilities: { roots?: { listChanged?: boolean }; sampling?: {}; }; clientInfo: { name: string; version: string; }; } export interface InitializeResult { protocolVersion: string; capabilities: ServerCapabilities; serverInfo: { name: string; version: string; }; }

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/pr0methevs/mcp-template'

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