fastmcp/tests/cli
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
..
__init__.py Add tests 2025-07-06 20:50:31 -04:00
test_cli.py Remove shell=True from Windows subprocess calls (#2091) 2025-10-14 12:30:46 -07:00
test_config.py Fix path resolution in install commands (#1951) 2025-09-29 20:04:12 -04:00
test_cursor.py Fix: URL-encode server name in Cursor deeplinks (#2369) 2025-11-04 11:26:57 -05:00
test_generate.py Add fastmcp generate command for creating standalone tool scripts 2025-11-05 17:33:39 -05:00
test_install.py feat: add support for Gemini CLI integration (#1709) 2025-09-06 12:08:56 -04:00
test_mcp_server_config_integration.py Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
test_mcp_server_config_schema.py Hotfix: restore --transport streamable http at CLI (#1743) 2025-09-03 17:24:22 -04:00
test_project_prepare.py Enable more type checking rules (#1775) 2025-09-07 11:11:44 -04:00
test_run.py Fix asyncio error when running FastMCP 1.x servers (#2084) 2025-10-14 11:24:51 -07:00
test_run_config.py Add log level support for stdio and HTTP transports (#1840) 2025-09-19 13:46:30 -04:00
test_server_args.py Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
test_shared.py Ensure test is platform agnostic 2025-07-07 09:51:12 -04:00
test_with_argv.py Consolidate server loading logic into FileSystemSource (#1614) 2025-08-24 20:50:25 -04:00