Skip to content

docs(api): document v1 MCP servers listing endpoint#37

Merged
charlesrhoward merged 1 commit into
mainfrom
docs/v1-mcp-servers-endpoint
May 17, 2026
Merged

docs(api): document v1 MCP servers listing endpoint#37
charlesrhoward merged 1 commit into
mainfrom
docs/v1-mcp-servers-endpoint

Conversation

@charlesrhoward
Copy link
Copy Markdown
Contributor

@charlesrhoward charlesrhoward commented May 17, 2026

Summary

  • Adds a dedicated web/api/mcp-servers.mdx reference page for GET /api/v1/mogplex/mcp/servers (shipped in mogplex#543 and consumed by mogplex-cli#46).
  • Disambiguates from /api/v1/mogplex/mcp (JSON-RPC tool-call endpoint) with cross-link callouts both directions — users were going to confuse them.
  • Updates route-families.mdx, index.mdx, and the sidebar meta.json to surface the new page. Swaps the stale /api/mcp-servers?format=cli example in the "safe first requests" list for the v1 path.

Test plan

  • pnpm types:check — MDX generates, route types pass, tsc clean
  • All links use existing slugs (/web/api/mcp-servers, /web/api/mcp, /web/api/authentication, etc.)

🤖 Generated with Claude Code


View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

Documents GET /api/v1/mogplex/mcp/servers (shipped in mogplex#543) as
a dedicated reference page distinct from the JSON-RPC POST /api/v1/mogplex/mcp
endpoint, since they're often confused.

- New content/docs/web/api/mcp-servers.mdx — full reference + security notes
- route-families.mdx — adds the new route to the v1 surface list
- mcp.mdx — cross-link callout disambiguating the two MCP endpoints
- index.mdx — adds it to the read-in-order list and updates the safe-first
  request from the legacy /api/mcp-servers?format=cli to the v1 path
- meta.json — sidebar nav

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mogplex-docs Ready Ready Preview, Comment May 17, 2026 8:29am

Request Review

@charlesrhoward charlesrhoward merged commit d323a72 into main May 17, 2026
5 of 6 checks passed
@charlesrhoward charlesrhoward deleted the docs/v1-mcp-servers-endpoint branch May 17, 2026 08:29
Copy link
Copy Markdown

@mogplex mogplex Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mogplex PR Review

Status: Attention needed

Well-structured docs PR that correctly disambiguates two easily-confused endpoints with cross-link callouts in both directions, sidebar ordering, and index updates. One correctness gap in the response example could mislead API consumers, and there is a minor phrasing inheritance issue in index.mdx. Small fix needed before merge.

2 findings were added inline.

View check run


```typescript
type MogplexApiMcpServer = {
name: string; // unique per user
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning: Response example contradicts the documented disabled-server behavior

The type comment on enabled reads // disabled servers are still returned, which is an important behavioral contract. However, the JSON response example only shows entries with "enabled": true. A reader using the example as their mental model will naturally conclude disabled servers are filtered out — directly contradicting the comment.

Suggestion: Add a third server entry with "enabled": false to the response example, or add a sentence immediately after the JSON block: "Servers configured but not enabled appear in the list with "enabled": false." Either approach closes the gap between the type comment and the example.

- `GET /api/models` to inspect the visible catalog and enabled model set
- `GET /api/github/installations` to confirm real GitHub App coverage
- `GET /api/mcp-servers?format=cli` to export the CLI-ready MCP view
- `GET /api/v1/mogplex/mcp/servers` to export the CLI-ready MCP view (PAT-only)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: "export" verb in index.mdx inherited from the old CLI-specific path

The updated line reads: GET /api/v1/mogplex/mcp/servers to export the CLI-ready MCP view (PAT-only). The verb "export" and the phrase "CLI-ready" were carried over from the old /api/mcp-servers?format=cli entry, which was explicitly a CLI export format. The v1 endpoint is a general listing — the CLI just happens to consume it. Consider: GET /api/v1/mogplex/mcp/servers to list configured MCP servers with secrets resolved (PAT-only). This matches the description on the new reference page and sets accurate expectations for non-CLI callers.

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