remcode
Version:
Turn your AI assistant into a codebase expert. Intelligent code analysis, semantic search, and software engineering guidance through MCP integration.
36 lines (35 loc) • 948 B
TypeScript
import cors from 'cors';
export interface MCPServerOptions {
port?: number;
host?: string;
corsOptions?: cors.CorsOptions;
}
/**
* MCP Server Module
*
* This module provides Model Context Protocol (MCP) server functionality
* to allow AI assistants to interact with the remcode tools.
*/
export declare class MCPServer {
private app;
private server?;
private mcpSSEHandler;
private pineconeHandler;
private githubHandler;
private huggingfaceHandler;
private setupHandler;
private searchHandler;
private processingHandler;
private repositoryHandler;
private remcodeHandler;
constructor(options?: MCPServerOptions);
private setupMiddleware;
private setupRoutes;
/**
* Get MCP tool specifications for all available tools
*/
private getMCPToolSpecs;
start(port?: number, host?: string): Promise<void>;
stop(): Promise<void>;
}
export default MCPServer;