Support adding custom remote MCP servers (Streamable HTTP + OAuth 2.1 + PKCE)

Aperta
#14 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva

Direzione di ricerca

Start by inspecting the Plugins page under Integrations and the agent-side mcp_manager capability mentioned in the issue. The issue does not name implementation files or tests, so first trace how those existing pieces expose and manage integrations. Done means users can explicitly add a custom remote MCP server with the described transport and auth options, and review its tools before enabling it.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What I'm trying to do

Connect a third-party remote MCP server that speaks Streamable HTTP with OAuth 2.1 + PKCE (the endpoint looks like https://<host>/shengcai-web/mcp). The service provides an OAuth flow for clients and expects standard dynamic client registration; no static token is meant to be pasted anywhere.

What I found in the current build

  1. Plugins page only ships a preset catalog. Left sidebar → Plugins → Integrations → “show all” lists preset integrations (GitHub, Google Workspace, Canva, Dropbox, Linear, Notion, …), each with an “Add” button. There is no “add custom server” / “add remote MCP” entry, and no fields for name, URL, transport or auth.
  2. Settings search knows nothing about MCP. Searching settings for “MCP” returns “No settings found”; searching for the service name finds no plugin.
  3. The Inbound API is not a substitute. Settings → Inbound API describes a one-way channel (“cannot read any data”) for other systems to message the assistant.
  4. Agent-side management exists but is hard to discover. The default tool list does not expose MCP management capabilities. They must be discovered on demand via help(tool="mcp_manager"), which makes this capability difficult for ordinary users to find.

Why this matters

A growing number of services expose remote MCP endpoints with OAuth instead of shipping a Comma plugin. The UI has no custom-server entry, so connecting these services currently requires discovering and using the agent-side MCP management tools. A visible entry would make the existing capability accessible to ordinary users.

Suggested behaviour

  • A “Add custom MCP server” action with: display name, server URL, transport (Streamable HTTP, fallback SSE), and auth mode (OAuth with browser flow / none).
  • Store the binding per workspace, keep tokens in the existing secret store, and support reconnect/reload without forcing a second authorization.
  • Keep it an explicit, user-initiated action (it widens the tool surface the agent can reach), and surface the discovered tool list before enabling.
  • Optional: a “test connection” step that lists tools and runs one no-op read.

Environment

  • Comma desktop on Windows (latest build as of 2026-11-03), agent runtime: Salix (self-hosted features not involved).
  • I can provide screenshots of the Plugins page and the empty settings search if useful.
Lingua principale
Elixir
Stelle
740
Fork
61
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AFK-surf/Comma

Tutte le issue di AFK-surf/Comma

Issue simili

Altre issue su Elixir

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.