@gork-labs/secondbrain-mcp
Version:
Second Brain MCP Server - Agent team orchestration with dynamic tool discovery
36 lines (35 loc) • 774 B
TypeScript
export interface MCPServerConfig {
id: string;
name: string;
command: string;
args: string[];
env?: Record<string, string>;
enabled: boolean;
allowUnsafeTools?: boolean;
context?: 'main' | 'subagent' | 'both';
}
export interface DiscoveredTool {
name: string;
description: string;
inputSchema: any;
serverId: string;
serverName: string;
safe: boolean;
originalTool: any;
}
export interface ToolExecutionResult {
success: boolean;
content?: any;
error?: string;
serverId: string;
toolName: string;
}
export interface MCPServerStatus {
id: string;
name: string;
connected: boolean;
toolCount: number;
safeToolCount: number;
lastError?: string;
lastConnected?: Date;
}