feat: add MCP and LSP tooling support

Add global MCP/LSP settings, per-session Activity toggles, sidecar runtime integration, tests, and documentation updates.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-23 22:51:03 +01:00
co-authored by Copilot
parent 50a8e5dfbe
commit efa5c44e07
26 changed files with 3196 additions and 47 deletions
+37
View File
@@ -73,10 +73,47 @@ export interface RunTurnCommand {
workspaceKind?: 'project' | 'scratchpad';
pattern: PatternDefinition;
messages: ChatMessageRecord[];
tooling?: RunTurnToolingConfig;
}
export type SidecarCommand = DescribeCapabilitiesCommand | ValidatePatternCommand | RunTurnCommand;
export interface RunTurnLocalMcpServerConfig {
id: string;
name: string;
transport: 'local';
tools: string[];
timeoutMs?: number;
command: string;
args: string[];
cwd?: string;
}
export interface RunTurnRemoteMcpServerConfig {
id: string;
name: string;
transport: 'http' | 'sse';
tools: string[];
timeoutMs?: number;
url: string;
}
export type RunTurnMcpServerConfig = RunTurnLocalMcpServerConfig | RunTurnRemoteMcpServerConfig;
export interface RunTurnLspProfileConfig {
id: string;
name: string;
command: string;
args: string[];
languageId: string;
fileExtensions: string[];
}
export interface RunTurnToolingConfig {
mcpServers: RunTurnMcpServerConfig[];
lspProfiles: RunTurnLspProfileConfig[];
}
export interface CapabilitiesEvent {
type: 'capabilities';
requestId: string;