@todo-for-ai/mcp
Version:
Model Context Protocol server for Todo for AI task management system with Streamable HTTP transport. Provides AI assistants with access to task management, project information, and feedback submission capabilities through modern HTTP-based communication.
33 lines • 829 B
TypeScript
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
/**
* Base transport interface for MCP communication
*/
export declare abstract class BaseTransport {
protected server?: Server;
protected running: boolean;
/**
* Get the transport type
*/
abstract getType(): 'stdio' | 'http';
/**
* Check if the transport is running
*/
isRunning(): boolean;
/**
* Set the MCP server instance
*/
protected setServer(server: Server): void;
/**
* Set the running state
*/
protected setRunning(running: boolean): void;
/**
* Start the transport with the given server
*/
abstract start(server: Server): Promise<void>;
/**
* Stop the transport
*/
abstract stop(): Promise<void>;
}
//# sourceMappingURL=base.d.ts.map