/**
* Transport interface for MCP server
* This interface defines the methods that a transport must implement
* This matches the Transport interface from the MCP SDK
*/
export interface ServerTransport {
/**
* Start the transport
*/
start(): Promise<void>;
/**
* Close the transport
*/
close(): Promise<void>;
/**
* Send a message to the client
* @param message - The message to send
*/
send(message: string): Promise<void>;
/**
* Set the message callback
* @param callback - The callback to call when a message is received
*/
onmessage(callback: (message: string) => void): void;
}
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/joleyline/mcp-memory-libsql'
If you have feedback or need assistance with the MCP directory API, please join our Discord server