|
| 1 | +{ |
| 2 | + "$schema": "https://boj.dev/schemas/cartridge/v1.json", |
| 3 | + "spdx": "PMPL-1.0-or-later", |
| 4 | + "copyright": "Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>", |
| 5 | + "name": "orchestrator-lsp-mcp", |
| 6 | + "version": "0.1.0", |
| 7 | + "status": "development", |
| 8 | + "description": "Cross-domain LSP orchestrator. Routes LSP requests across all 12 poly-*-lsp servers (cloud, container, iac, k8s, db, queue, secret, git, ssg, proof, observability, browser) via a single GenLSP supervisor. Inspired by poly-orchestrator-lsp (polystack, archived). Wraps the 12 domain servers into one unified textDocument interface with domain-routing based on workspace root and file type.", |
| 9 | + "domain": "LSP", |
| 10 | + "tier": "Teranga", |
| 11 | + "protocols": [ |
| 12 | + "MCP", |
| 13 | + "LSP" |
| 14 | + ], |
| 15 | + "runtime": "elixir", |
| 16 | + "auth": { |
| 17 | + "method": "none", |
| 18 | + "env_var": null, |
| 19 | + "credential_source": null |
| 20 | + }, |
| 21 | + "api": { |
| 22 | + "base_url": "local://orchestrator-lsp-mcp", |
| 23 | + "content_type": "application/json" |
| 24 | + }, |
| 25 | + "design_notes": [ |
| 26 | + "Supervisor tree: LSPServer + LSPClientPool (×12) + ExecutionRegistry + ExecutionSupervisor", |
| 27 | + "Stack parser reads .machine_readable/integrations/*.a2ml to discover active poly-*-lsp endpoints", |
| 28 | + "Planner routes each LSP request to the correct domain server(s) — cross-domain queries fan-out", |
| 29 | + "VeriSimDB client tracks orchestration session history and capability advertisement", |
| 30 | + "VSCode extension (ReScript, not TypeScript) exposes this as a single multi-domain language server" |
| 31 | + ], |
| 32 | + "tools": [ |
| 33 | + { |
| 34 | + "name": "lsp_orchestrate_start", |
| 35 | + "description": "Start an orchestrated LSP session spanning one or more domain servers. Returns a session ID that routes LSP requests to the appropriate domain server(s) based on workspace context.", |
| 36 | + "inputSchema": { |
| 37 | + "type": "object", |
| 38 | + "properties": { |
| 39 | + "workspace_root": { |
| 40 | + "type": "string", |
| 41 | + "description": "Workspace root directory path" |
| 42 | + }, |
| 43 | + "domains": { |
| 44 | + "type": "array", |
| 45 | + "items": { "type": "string" }, |
| 46 | + "description": "Domain LSP servers to activate (e.g. ['git', 'k8s', 'db']). Empty = all." |
| 47 | + } |
| 48 | + }, |
| 49 | + "required": ["workspace_root"] |
| 50 | + } |
| 51 | + }, |
| 52 | + { |
| 53 | + "name": "lsp_orchestrate_request", |
| 54 | + "description": "Forward a raw LSP JSON-RPC request through the orchestrator. The orchestrator routes it to the correct domain server(s) and merges responses.", |
| 55 | + "inputSchema": { |
| 56 | + "type": "object", |
| 57 | + "properties": { |
| 58 | + "session_id": { |
| 59 | + "type": "string", |
| 60 | + "description": "Session ID from lsp_orchestrate_start" |
| 61 | + }, |
| 62 | + "method": { |
| 63 | + "type": "string", |
| 64 | + "description": "LSP method (e.g. textDocument/completion, textDocument/hover)" |
| 65 | + }, |
| 66 | + "params": { |
| 67 | + "type": "object", |
| 68 | + "description": "LSP method parameters (JSON)" |
| 69 | + } |
| 70 | + }, |
| 71 | + "required": ["session_id", "method", "params"] |
| 72 | + } |
| 73 | + }, |
| 74 | + { |
| 75 | + "name": "lsp_orchestrate_stop", |
| 76 | + "description": "Stop an orchestrated session and shut down all domain LSP servers gracefully.", |
| 77 | + "inputSchema": { |
| 78 | + "type": "object", |
| 79 | + "properties": { |
| 80 | + "session_id": { |
| 81 | + "type": "string", |
| 82 | + "description": "Session ID to stop" |
| 83 | + } |
| 84 | + }, |
| 85 | + "required": ["session_id"] |
| 86 | + } |
| 87 | + }, |
| 88 | + { |
| 89 | + "name": "lsp_orchestrate_status", |
| 90 | + "description": "Return the health and capability advertisement of all active domain servers in a session.", |
| 91 | + "inputSchema": { |
| 92 | + "type": "object", |
| 93 | + "properties": { |
| 94 | + "session_id": { |
| 95 | + "type": "string", |
| 96 | + "description": "Session ID" |
| 97 | + } |
| 98 | + }, |
| 99 | + "required": ["session_id"] |
| 100 | + } |
| 101 | + } |
| 102 | + ], |
| 103 | + "ffi": { |
| 104 | + "so_path": "ffi/zig-out/lib/liborchestrator_lsp_mcp.so", |
| 105 | + "abi_version": "ADR-0006", |
| 106 | + "symbols": [ |
| 107 | + "boj_cartridge_init", |
| 108 | + "boj_cartridge_deinit", |
| 109 | + "boj_cartridge_name", |
| 110 | + "boj_cartridge_version", |
| 111 | + "boj_cartridge_invoke" |
| 112 | + ], |
| 113 | + "note": "Zig FFI stub delegates to Elixir GenLSP application via port protocol" |
| 114 | + }, |
| 115 | + "upstream_reference": "polystack/poly-orchestrator-lsp (archived 2026) — design reference only, not copied" |
| 116 | +} |
0 commit comments