Skip to main content
Glama

Curupira

by drzln
index.ts1.49 kB
/** * Protocol Layer * * Provides JSON-RPC 2.0 and MCP (Model Context Protocol) implementations * with full support for requests, notifications, batching, and error handling. * * # Architecture * * The protocol layer provides: * - Complete JSON-RPC 2.0 implementation * - MCP protocol with resources, tools, and prompts * - Protocol client for transport integration * - Middleware support for extensibility * - Request cancellation and progress updates * - Automatic reconnection and message queuing * * # Dependencies * * - `../types` for core types and branded types * - `../errors` for error handling * - `../logging` for structured logging * - `../transport` for network communication * * @module protocol */ // Export all protocol types export * from './types.js' // Export JSON-RPC implementation export { JsonRpcProtocol, createJsonRpcProtocol } from './jsonrpc.js' // Export MCP implementation export { McpProtocol, createMcpProtocol, McpServerBuilder, type McpConfig } from './mcp.js' // Export protocol client export { ProtocolClient, createJsonRpcClient, createMcpClient, ProtocolClientBuilder, type ProtocolClientConfig } from './client.js' // Re-export commonly used types export type { JsonRpcRequest, JsonRpcResponse, JsonRpcNotification, JsonRpcError, JsonRpcMessage, RequestHandler, NotificationHandler, RequestContext, ProtocolConfig, ProtocolStats, ProtocolCapabilities } from './types.js'

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/drzln/curupira'

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