Commit graph

4 commits

Author SHA1 Message Date
Jeremiah Lowin
89c4242034
Fix string escaping issues in generate-cli
- Use single-quoted docstrings to avoid triple-quote escaping issues
- Escape quotes in app_name derived from server_name
- Add tests for descriptions with quotes and server names with quotes

Addresses CodeRabbit review comments about insufficient escaping.
2026-02-03 12:35:22 -05:00
Jeremiah Lowin
68cd6770a9
fix: address PR review feedback
- Sanitize tool and parameter names to valid Python identifiers
- Replace bare except Exception with specific exception types
- Escape server name in generated string literals
- Handle trailing colon edge case in _derive_server_name
- Clarify in docs that generated CLI is a client, not a bundled server
2026-02-03 11:37:26 -05:00
Jeremiah Lowin
59f323ebb7
docs: add generate-cli documentation; skip Windows executable test 2026-02-03 11:23:42 -05:00
Jeremiah Lowin
2c705faa87
Add fastmcp generate-cli command
Connects to any MCP server, reads its tool/resource/prompt schemas,
and writes a standalone Python CLI script with typed subcommands.
2026-02-03 11:11:08 -05:00