Commit graph

1 commit

Author SHA1 Message Date
jake@prefect.io
fb28f9cda9 Add fastmcp generate command for creating standalone tool scripts
Generates Python scripts from MCP server tools for progressive discovery by agents.

Usage:
  # No auth
  fastmcp generate https://api.example.com/mcp

  # OAuth
  fastmcp generate https://api.example.com/mcp --auth oauth

  # Environment variable
  fastmcp generate https://api.example.com/mcp --auth '$MY_TOKEN'

  # Embedded token
  fastmcp generate https://api.example.com/mcp --auth "sk-token-123"

Each tool becomes a standalone script with inline dependencies (PEP 723).
Server instructions are included in AGENTS.md when provided.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 17:33:39 -05:00