fastmcp/tests/cli
Jeremiah Lowin f7cdd20a42
generate-cli: auto-generate SKILL.md agent skill (#3115)
* generate-cli: auto-generate SKILL.md alongside CLI script

generate-cli now produces a SKILL.md agent skill file next to the CLI
script, documenting every tool's exact invocation syntax, parameter
flags, and types. Agents can use the CLI immediately without discovery.

* Use uv run --with fastmcp in generated SKILL.md invocations

* Fix skill generation issues from review

- Escape pipe chars in union type labels so markdown tables render
- Boolean params omit <value> placeholder in example invocations
- Quote YAML frontmatter values to handle special chars in names
- Match cyclopts camelCase→snake_case in flag derivation
- Use four-backtick fence for nested code block in docs

* Replace --skill/--no-skill with just --no-skill

* Escape quotes in YAML frontmatter description

* Strip newlines from param descriptions in skill table rows

* Detect boolean union types for flag placeholder
2026-02-08 17:09:28 -05:00
..
__init__.py Add tests 2025-07-06 20:50:31 -04:00
test_cimd_cli.py Add CIMD (Client ID Metadata Document) support for OAuth (#2871) 2026-02-06 13:44:52 -05:00
test_cli.py Mock network call in test_version_command_execution 2026-01-31 22:35:43 +00:00
test_client_commands.py Add fastmcp list and fastmcp call CLI commands (#3054) 2026-02-01 18:30:14 -05:00
test_config.py Update classes to inherit from FastMCPBaseModel instead of BaseModel (#2739) 2025-12-26 08:33:23 -05:00
test_cursor.py feat: add fastmcp install goose command (#3040) 2026-01-31 10:53:24 -05:00
test_discovery.py Add fastmcp discover and name-based server resolution (#3055) 2026-02-01 21:27:22 -05:00
test_generate_cli.py generate-cli: auto-generate SKILL.md agent skill (#3115) 2026-02-08 17:09:28 -05:00
test_goose.py feat: add fastmcp install goose command (#3040) 2026-01-31 10:53:24 -05:00
test_install.py feat: add fastmcp install goose command (#3040) 2026-01-31 10:53:24 -05:00
test_mcp_server_config_integration.py Add loq file size limits and clean up type ignores (#2859) 2026-01-13 07:29:12 -05: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 feat: expand --reload to watch frontend file types (#3028) 2026-01-29 09:23:55 -05: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 Unify discovery API: deduplicate at protocol layer only (#2919) 2026-01-18 21:01:53 -05:00
test_shared.py Ensure test is platform agnostic 2025-07-07 09:51:12 -04:00
test_tasks.py Replace type: ignore[attr-defined] with isinstance assertions in tests (#2665) 2025-12-21 16:37:20 -05:00
test_with_argv.py Consolidate server loading logic into FileSystemSource (#1614) 2025-08-24 20:50:25 -04:00