You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
External MCP integration: scoped pairing so outside agents can launch and track Solenta tasks #157
Settings -> Integrations offers copy-ready pairing prompts and manual JSON so external MCP clients (Claude Desktop etc.) can launch and track tasks; connections are capability-scoped, project-scoped, expiring, rate-limited, revocable, and default new work to managed worktrees with approval required (changelog 0.6.0, repo).
Solenta today
The coder-threads MCP server exists but is injected only into Solenta's own agent sessions (electron/orchServer.js, registerMcpServer in electron/memory-sup.js). SettingsModal.tsx has no integration surface. Note the security context: #125/#126 cover the current token handling, which must be fixed before widening exposure.
Why it matters
Users who live in Claude Code or another MCP client could fire Solenta tasks ("fix issue #123 in a worktree and report back") without opening the app. This turns Solenta into infrastructure, not just a UI, and it is the strongest strategic differentiator available since the internal orchestration server already exists.
Scope suggestion
Scoped, expiring, revocable pairing tokens (per capability and per project), a Settings integrations panel with copy-ready config, and an approval gate for externally launched runs.
Research note (v0's bidirectional MCP): the external surface should be two-way. v0's MCP exposes listMessages AND resolveTask (external agents can answer plan approvals, pending questions, permission requests). Let outside agents not just launch/track Solenta tasks but also resolve their pending gates.
From the Warp Factory doc-mine: the get_task pattern for the external MCP surface — get_task(start_working=true) returns ready-made git worktree add commands alongside the task, so an outside agent can pick up Solenta work and be productive in one call. send_task/message_foreman/complete_task complete the loop.
Round-19: Synara 0.6.0 Agent Gateway is the internal half of this issue, and it is more specific than the pairing UI.
They ship 23 MCP tools to agents already running inside Synara: list projects/tasks, read transcripts, wait for one or many tasks, create one task or an exact parallel batch, continue/steer/queue/interrupt, rename/archive, inspect activity, and CRUD automations. Agent-created work is a normal standalone task with visible origin. External pairing is a second surface on the same tool catalog, defaulting new work to managed worktrees + approval-required.
The security rule that matters: an approval-required or worktree-isolated caller cannot create or control a higher-privilege task by proxy. Gateway credentials are stripped from spawned shells.
Our coder-threads server (electron/orchServer.js) is already this shape for fork/send/task-list. The remaining work on this issue is (1) the Settings pairing UI this ticket already asks for, and (2) that privilege-cap so a supervised thread cannot mint a full-access sibling. (2) is the part we will get wrong if we only copy the pairing JSON.
Round 20 intel: GitHub built exactly this for Copilot CLI and called it AHP (Agent Host Protocol): sessions live on a host daemon, external clients attach over WebSocket (token-protected wss://, tokens redacted in all output), multiple clients steer the same session, presence via heartbeat, hosts discoverable on the local machine, and /ahp codespace shows the tunneling pattern (gh forwards the remote daemon port locally). If Solenta's scoped-pairing protocol needs a reference architecture, AHP's shape is the one a big player just validated: daemon-owned sessions, attach/detach clients, loud host-health, redacted credentials. Currently staff-gated behind AHP_CLIENT, so watch for its public spec.
Round 24 intel for the protocol side of this pairing story: MCP 2026-07-28 went stateless at the protocol layer. The initialize handshake and Mcp-Session-Id are gone, every request is self-describing (version, client identity, capabilities in _meta), ping is removed, and resources/subscribe became subscriptions/listen. Consequences if Solenta exposes tasks over MCP: (1) serverless/edge deployment of the endpoint becomes trivial, no session pinning; (2) any request can land on any instance, so auth must be per-request, which fits the scoped-pairing token model already sketched here; (3) one caution from migration guides: the new requestState field is being called out as a fresh security footgun (state smuggled back into a stateless protocol), worth a read before adopting (migration guide). The AHP comparison from the earlier comment still stands as the richer reference (presence, multi-client steering), but MCP 2026-07-28 is the lower-friction adoption path.
Shipped on this branch: Settings → Integrations mints scoped, expiring, revocable pairing tokens (hash-only on disk, 0600). External MCP clients hit the existing loopback orch server and get projects_list / task_launch / task_list / task_status (plus steer tools if granted). Default launches use a managed worktree and wait for in-app Approve. Session coder-threads injection is unchanged and still rotates (#125).
Activity
currentbits commentedon Aug 17, 2026
Research note (v0's bidirectional MCP): the external surface should be two-way. v0's MCP exposes listMessages AND resolveTask (external agents can answer plan approvals, pending questions, permission requests). Let outside agents not just launch/track Solenta tasks but also resolve their pending gates.
currentbits commentedon Aug 18, 2026
From the Warp Factory doc-mine: the get_task pattern for the external MCP surface — get_task(start_working=true) returns ready-made git worktree add commands alongside the task, so an outside agent can pick up Solenta work and be productive in one call. send_task/message_foreman/complete_task complete the loop.
currentbits commentedon Aug 18, 2026
Round-19: Synara 0.6.0 Agent Gateway is the internal half of this issue, and it is more specific than the pairing UI.
They ship 23 MCP tools to agents already running inside Synara: list projects/tasks, read transcripts, wait for one or many tasks, create one task or an exact parallel batch, continue/steer/queue/interrupt, rename/archive, inspect activity, and CRUD automations. Agent-created work is a normal standalone task with visible origin. External pairing is a second surface on the same tool catalog, defaulting new work to managed worktrees + approval-required.
The security rule that matters: an approval-required or worktree-isolated caller cannot create or control a higher-privilege task by proxy. Gateway credentials are stripped from spawned shells.
Our
coder-threadsserver (electron/orchServer.js) is already this shape for fork/send/task-list. The remaining work on this issue is (1) the Settings pairing UI this ticket already asks for, and (2) that privilege-cap so a supervised thread cannot mint a full-access sibling. (2) is the part we will get wrong if we only copy the pairing JSON.currentbits commentedon Aug 18, 2026
Round 20 intel: GitHub built exactly this for Copilot CLI and called it AHP (Agent Host Protocol): sessions live on a host daemon, external clients attach over WebSocket (token-protected wss://, tokens redacted in all output), multiple clients steer the same session, presence via heartbeat, hosts discoverable on the local machine, and
/ahp codespaceshows the tunneling pattern (gh forwards the remote daemon port locally). If Solenta's scoped-pairing protocol needs a reference architecture, AHP's shape is the one a big player just validated: daemon-owned sessions, attach/detach clients, loud host-health, redacted credentials. Currently staff-gated behind AHP_CLIENT, so watch for its public spec.currentbits commentedon Aug 18, 2026
Round 24 intel for the protocol side of this pairing story: MCP 2026-07-28 went stateless at the protocol layer. The initialize handshake and Mcp-Session-Id are gone, every request is self-describing (version, client identity, capabilities in _meta), ping is removed, and resources/subscribe became subscriptions/listen. Consequences if Solenta exposes tasks over MCP: (1) serverless/edge deployment of the endpoint becomes trivial, no session pinning; (2) any request can land on any instance, so auth must be per-request, which fits the scoped-pairing token model already sketched here; (3) one caution from migration guides: the new requestState field is being called out as a fresh security footgun (state smuggled back into a stateless protocol), worth a read before adopting (migration guide). The AHP comparison from the earlier comment still stands as the richer reference (presence, multi-client steering), but MCP 2026-07-28 is the lower-friction adoption path.
currentbits commentedon Sep 10, 2026
Shipped on this branch: Settings → Integrations mints scoped, expiring, revocable pairing tokens (hash-only on disk, 0600). External MCP clients hit the existing loopback orch server and get projects_list / task_launch / task_list / task_status (plus steer tools if granted). Default launches use a managed worktree and wait for in-app Approve. Session coder-threads injection is unchanged and still rotates (#125).