mcp-orchestrator
Version:
MCP Orchestrator - Discover and install MCPs with automatic OAuth support. Uses Claude CLI for OAuth MCPs (Canva, Asana, etc). 34 trusted MCPs from Claude Partners.
45 lines (44 loc) • 1.18 kB
TypeScript
/**
* Connection Manager
* Handles spawning, connecting, and managing MCP server connections
*/
import { MCPServerConfig, MCPConnection, ConnectionResult } from './types.js';
export declare class ConnectionManager {
private connections;
/**
* Detect if MCP is remote (HTTP/SSE) based on command
*/
private isRemoteMCP;
/**
* Create appropriate transport based on MCP type
*/
private createTransport;
/**
* Connect to an MCP server with OAuth support
*/
connect(config: MCPServerConfig): Promise<ConnectionResult>;
/**
* Disconnect from an MCP server
*/
disconnect(connectionId: string): Promise<boolean>;
/**
* Get a connection by ID
*/
get(connectionId: string): MCPConnection | undefined;
/**
* Find connection by server ID
*/
findByServerId(serverId: string): MCPConnection | undefined;
/**
* Find connection that has a specific tool
*/
findByTool(toolName: string): MCPConnection | undefined;
/**
* Get all active connections
*/
getAll(): MCPConnection[];
/**
* Get connection count
*/
count(): number;
}