Skip to content

docs: add MCP migration guide for 1.7.x consumers - #40

Merged
pathscale merged 1 commit into
mainfrom
docs/mcp-migration-guide
Jul 19, 2026
Merged

docs: add MCP migration guide for 1.7.x consumers#40
pathscale merged 1 commit into
mainfrom
docs/mcp-migration-guide

Conversation

@pathscale

Copy link
Copy Markdown
Owner

Summary

Adds docs/mcp-migration.md — a step-by-step guide for taking an existing endpoint-gen + endpoint-libs backend from 1.7.x to the 1.9 MCP surface — and links it from the README's MCP section.

The guide is distilled from a real migration (pathscale/api.support.cafe#3, ~25 endpoints, 94 compile errors → 0) and covers:

  • What the MCP surface provides and what stays unchanged (legacy protocol, auth-via-subprotocol-header, role gating)
  • Version matrix (endpoint-libs / endpoint-gen / honey_id-types) and why the real migration cost is the 1.8.0 typed-error change, not MCP
  • RON description: requirements (and why Field-level descriptions don't flow through)
  • What to expect from regeneration (type_registry(), the real EnumErrorCode catalog, per-service *_mcp_tools.json docs)
  • Mechanical handler-migration patterns: type Error = CustomError, public errors vs .internal(), the typed SubAuthController shape
  • enable_mcp wiring and a websocat verification recipe with the assertions that constitute "MCP works"
  • A gotchas index, including a reminder to audit responses for secrets before exposing them to LLM agents

Docs-only change; no code touched.

🤖 Generated with Claude Code

Step-by-step playbook for exposing an existing endpoint-gen backend's
endpoints as MCP tools: version matrix, RON description requirements,
regeneration expectations, the 1.8.0 typed-error handler migration
patterns, SubAuthController changes, enable_mcp wiring, and a websocat
verification recipe. Linked from the README's MCP section, with
pathscale/api.support.cafe#3 as the worked example.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@pathscale
pathscale merged commit 93fae6d into main Jul 19, 2026
4 checks passed
@pathscale
pathscale deleted the docs/mcp-migration-guide branch July 19, 2026 20:42
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