Skip to content

Docs: align client, MCP Apps, OpenAPI, and auth integration examples with current APIs #4258

@strawgate

Description

@strawgate

Several client-facing and integration docs describe stale API behavior or examples. The issues are docs-only, but they affect high-copy-paste areas: client task handling, MCP Apps routing, OpenAPI request construction, and auth provider setup examples.

Concrete drift found in the docs audit:

  • Client task docs omit the input_required status and understate how task.wait() behaves when a task leaves working.
  • Client docs should consistently describe CallToolResult.data, raw MCP results via call_tool_mcp, resource version reads, cancellation notifications, and resource-updated notifications.
  • MCP Apps architecture docs describe the older _meta.fastmcp.app routing path; current app tools use deterministic hashed backend names and per-tool Prefab renderer resources.
  • OpenAPI docs say empty strings are omitted from query params; current request construction skips None, while empty strings remain explicit empty query values.
  • Scalekit/auth integration examples use ambiguous placeholders or deprecated patterns; the current provider setup uses base_url, environment_url, resource_id, optional required_scopes, and a JWT verifier configured from those values.

Expected: client, apps, OpenAPI, and auth integration docs should match current public APIs and request-routing behavior so copied examples run as written.

Verified against current code and tests:

  • fastmcp_slim/fastmcp/client/client.py
  • fastmcp_slim/fastmcp/client/messages.py
  • fastmcp_slim/fastmcp/client/tasks.py
  • fastmcp_slim/fastmcp/client/mixins/resources.py
  • fastmcp_slim/fastmcp/apps/app.py
  • fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py
  • fastmcp_slim/fastmcp/server/server.py
  • fastmcp_slim/fastmcp/utilities/openapi/director.py
  • fastmcp_slim/fastmcp/server/auth/providers/scalekit.py
  • tests/client/*
  • tests/server/tasks/*
  • tests/utilities/openapi/test_director.py
  • tests/server/auth/providers/test_scalekit.py

A focused local validation pass for the candidate docs updates passed: docs examples, broken links, prek, and client/task/OpenAPI/auth-provider tests.

Metadata

Metadata

Assignees

Labels

authRelated to authentication (Bearer, JWT, OAuth, WorkOS) for client or server.clientRelated to the FastMCP client SDK or client-side functionality.documentationUpdates to docs, examples, or guides. Primary change is documentation-related.integrationmcp appsRelated to MCP Apps - user-facing applications with frontend bundles served by MCP servers.openapiRelated to OpenAPI integration, parsing, or code generation features.tasksRelated to background tasks, Docket, SEP-1686.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions