Files
Sushmithamallesh b521f890fb feat(docs): add MCP class to SDK reference documentation
- Add MCP to TypeScript SDK docs (remove from INTERNAL_CLASSES exclusion)
- Add MCP to Python SDK docs (add to EXPECTED_CLASSES and CLASS_MODULES)
- Fix acronym handling in TS generator (MCP -> mcp, not mCP)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 20:16:31 -08:00

718 B

SDK Documentation Generator

Generates MDX reference docs from Python source using griffe.

Usage

cd python
uv run --with griffe python scripts/generate-docs.py

How it works

  1. griffe extracts docstrings from composio/**/*.py → structured data
  2. generate-docs.py transforms data → MDX files
  3. Output written to docs/content/reference/sdk-reference/python/

Configuration

  • Expected classes: EXPECTED_CLASSES dict maps class name → Composio property
  • Modules to search: CLASS_MODULES list
  • Decorators: DECORATORS_TO_DOCUMENT list

CI

.github/workflows/generate-sdk-docs.yml triggers on changes to python/composio/** and opens a PR with updated docs.