mix mcp.sync_spec (ex_mcp v0.9.0)
View SourceSyncs MCP specification documentation from the upstream GitHub repository.
Downloads schema files and specification documentation from
modelcontextprotocol/modelcontextprotocol and stores them locally
in docs/mcp-specs/.
Usage
mix mcp.sync_spec [options]Options
--version VERSION- Sync only a specific version (e.g.,2025-11-25)--force- Re-download all files even if unchanged--dry-run- Show what would be fetched without downloading--schema-only- Only sync schema files (schema.ts, schema.json)--docs-only- Only sync documentation files--verbose- Show detailed progress information
Examples
# Discover and sync all versions
mix mcp.sync_spec
# Preview what would be synced
mix mcp.sync_spec --dry-run
# Sync only the latest version
mix mcp.sync_spec --version 2025-11-25
# Force re-download everything
mix mcp.sync_spec --force
# Sync only schema files
mix mcp.sync_spec --schema-onlyAuthentication
Set the GITHUB_TOKEN environment variable for higher API rate limits
(5000/hr vs 60/hr unauthenticated).
GITHUB_TOKEN=ghp_... mix mcp.sync_spec