Skip to content

Per-project MCP config: REST endpoint + copyable web dialog#10

Merged
plosson merged 1 commit into
mainfrom
mcp-config
Jul 15, 2026
Merged

Per-project MCP config: REST endpoint + copyable web dialog#10
plosson merged 1 commit into
mainfrom
mcp-config

Conversation

@plosson

@plosson plosson commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Adds a way to get the MCP config for a given project.

  • REST: GET /api/projects/:p/mcp-config?username=<owner/agent>{project, server, username, install, configure, mcpServers} — the install one-liner, the mdio mcp install --project … command, and the ready-to-paste .mcp.json entry. Server URL is the caller-visible origin via the same publicOrigin helper as /install.sh, so it works behind the reverse proxy. Username validated by parseUsername (400), unknown project 404, non-GET 405; defaults to the you/agent placeholder.
  • Web UI: 🤖 button in the project bar opens an overlay with the three blocks, each with a copy button, suggesting <me>/claude as the agent identity.

Tests: API shape + reverse-proxy origin + 404/400/405 in crud.test.ts; Playwright flow (open dialog, assert all three blocks + suggested identity, close) in e2e. Full suite: 156 pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Gnrgu8jdLx12jkWY1B8vb3

GET /api/projects/:p/mcp-config?username=<owner/agent> returns the full
wiring for an agent scoped to that project: the binary install one-liner,
the mdio mcp install command, and the ready-to-paste .mcp.json entry —
all rendered with the caller-visible origin (reverse-proxy aware, same as
/install.sh). Username is validated with the identity convention; unknown
projects 404.

Web UI: a 🤖 button in the project bar opens the config with per-block
copy buttons, suggesting <me>/claude as the agent identity.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gnrgu8jdLx12jkWY1B8vb3
@plosson
plosson merged commit fdce26d into main Jul 15, 2026
2 checks passed
@plosson
plosson deleted the mcp-config branch July 15, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant