Documentation Plan¶
This page tracks where the documentation stands and what gets written next, so docs work stays deliberate instead of ad hoc.
Current State¶
| Area | Page | Status |
|---|---|---|
| Landing / overview | index.md | Done — value proposition, protocol surface, architecture diagram |
| Onboarding | getting-started.md | Done — install, app factory, both transports |
| Middleware | middleware.md | Done |
| Tasks | tasks.md | Done — execution flow diagram, opt-in, helpers, example |
| Security | security.md | Done — auth flow diagram, token map, introspection, authz rules |
| Runtime reference | runtime-surface.md | Done — revisions, stateless draft flow, endpoints |
| Docs infrastructure | deployment.md | Done |
| Release process | release.md | Done |
Gaps To Fill Next¶
Ordered by expected reader value.
Phase 1 — Reference completeness¶
- API reference. Generate from docstrings with
mkdocstrings[python]socreate_app(), registries,ServerSettings, task helpers, and the security types have a browsable reference instead of living only in guide prose. - Settings reference. A dedicated page for
ServerSettingsandMiddlewareConfig: every knob, default, and which guide explains it. - Transports guide. Streamable HTTP details (sessions, SSE streams, shutdown behavior,
http_validationrules) and stdio framing in one place; today this is scattered acrossruntime-surface.mdandgetting-started.md.
Phase 2 — Task-oriented guides¶
- Resources and subscriptions.
resources/subscribe, update notifications, and thesubscriptions.pytransport surface. - Prompts and roots. Short guides matching the depth tools already have.
- Observability. What
pymcp.observability.loggingemits and how to wire it into an existing logging setup. - Cookbook. Promote
example/(config-driven server, web-based example) into narrated recipes.
Phase 3 — Operations and policy¶
- Testing and conformance. How to run the MCP conformance suite locally and what the CI baseline (
conformance-baseline.yml) means. - Versioning policy. Which MCP revisions are supported, how draft support is gated, and what the deprecation path looks like.
- Troubleshooting / FAQ. Start from real issues (session errors, 401/403 challenges, task lifecycle confusion) as they come up.
Conventions¶
- Every page must be reachable from
navinmkdocs.yml; builds run with--strict, so broken links and orphaned snippets fail CI. - Diagrams are Mermaid fenced blocks (
```mermaid) rendered throughpymdownx.superfenceswithfence_code_formatand Material's built-in Mermaid support. Do not switch back tofence_div_formator add a custom Mermaid loader script:fence_div_formatemits a plain<div>, theminifyplugin collapses the newlines inside it, and Mermaid cannot parse the flattened source. - Prefer one flow diagram plus focused code examples per guide over long prose; match the structure of
tasks.mdandsecurity.md. - Keep
README.mdlinks pointing at the hosted pages listed here.