Commit graph

39 commits

Author SHA1 Message Date
Jeremiah Lowin
c397e68d39
Update ty ignore comments for 0.0.25 compatibility (#3614) 2026-03-24 20:26:26 -04:00
Sascha Buehrle
dc7ae0bad1
fix: remove hardcoded version from CLI help text (#3456)
Changed 'FastMCP 2.0' to 'FastMCP' per maintainer feedback.
Dynamic version via fastmcp.__version__ still available via version flag.
2026-03-14 12:07:24 -04:00
Jeremiah Lowin
dcaeef0f3d
Handle missing npx.cmd fallback on Windows 🤖 Generated with GPT-5.2-Codex (#3416) 2026-03-07 11:40:57 -05:00
Jeremiah Lowin
618195c065
Move fastmcp dev to fastmcp dev inspector 2026-02-13 22:42:38 -05:00
claude[bot]
cd085412d1 Mock network call in test_version_command_execution
Fixes #3049 by mocking check_for_newer_version to prevent real network
calls to PyPI during tests, which was causing timeouts on Windows.

Co-authored-by: Bill Easton <strawgate@users.noreply.github.com>
2026-01-31 22:35:43 +00:00
Jeremiah Lowin
9c83482f4c
Make FASTMCP_SHOW_SERVER_BANNER apply to all server startup methods (#2771) 2025-12-29 08:29:15 -05:00
Jeremiah Lowin
049bd22827
Replace type: ignore[attr-defined] with isinstance assertions in tests (#2665)
* Replace type: ignore[attr-defined] with isinstance assertions in tests

* Fix isinstance assertions in failing tests

- Fix enum test to check for ResponseEnum instead of str
- Fix binary resource test to check for BlobResourceContents instead of TextResourceContents
- Fix Root type tests to check attributes directly instead of isinstance checks

* Fix type errors without using type: ignore

- Remove execution methods from TransformingProvider (only handles transformations)
- Add execution methods to base Provider class with default implementations
- Fix type narrowing in tests using cast() instead of type: ignore
- Fix PromptResult type handling in prompt render tests
- Fix type narrowing in middleware test for arguments and structured_content
2025-12-21 16:37:20 -05:00
Jeremiah Lowin
5f8461b7f0
Remove shell=True from Windows subprocess calls (#2091) 2025-10-14 12:30:46 -07:00
Jeremiah Lowin
9e5e75d73e
Add show_cli_banner setting to control banner display (#1780) 2025-09-07 20:59:27 -04:00
William Easton
fe4f31c2c7
Enable more type checking rules (#1775) 2025-09-07 11:11:44 -04:00
Jeremiah Lowin
6d46192659
Internal refactor: fastmcp config to mcp server config (#1672) 2025-08-29 21:37:39 -04:00
Jeremiah Lowin
f4ab2e8127
Enhance inspect command with structured output and format options (#1481) 2025-08-26 10:39:28 -04:00
Jeremiah Lowin
465e4033e7
Improve fastmcp.json environment configuration and project-based deployments (#1631) 2025-08-25 22:09:27 -04:00
Jeremiah Lowin
9c5c4f5113
Consolidate server loading logic into FileSystemSource (#1614) 2025-08-24 20:50:25 -04:00
Jeremiah Lowin
afedabeaf0
Fix and centralize CLI path resolution (#1590) 2025-08-23 15:37:00 -04:00
Tapan Chugh
7705858266
Fix server argument passing in CLI run command (#1293)
Co-authored-by: Tapan Chugh <tapanc@cs.washington.edu>
2025-07-29 15:13:01 -04:00
Jeremiah Lowin
a65bfd10be
Add --python, --project, and --with-requirements options to CLI commands (#1190) 2025-07-19 21:16:09 -04:00
Jeremiah Lowin
4f4d06ffdb
Ensure the CLI accepts "streamable-http" as a valid transport (#1099)
* Ensure the CLI accepts "streamable-http" as a valid transport

* Add test for transport aliases
2025-07-09 09:35:26 -04:00
David Ben Kalifa
15f01a01d8
feat: Add --path Option to CLI for HTTP/SSE Route (#1087)
* add path to cli

* update cli.mdx

* update test
2025-07-08 11:20:15 -04:00
Jeremiah Lowin
7efecafbb7 Update test_cli.py 2025-07-07 10:46:59 -04:00
Jeremiah Lowin
4dcc757aa6 Ensure fastmcp version copy is plaintext 2025-07-07 10:31:17 -04:00
Jeremiah Lowin
6b38fbc8bc Fix duplicate test 2025-07-07 10:13:57 -04:00
Jeremiah Lowin
f6fe3f5785
Merge branch 'main' into copy-flag 2025-07-07 10:09:10 -04:00
Jeremiah Lowin
3c75db5237 Reduce mocks 2025-07-07 09:59:49 -04:00
Jeremiah Lowin
7b90ea4cb5 Ensure test is platform agnostic 2025-07-07 09:51:12 -04:00
Jeremiah Lowin
15a50dda50 Remove asyncio.run 2025-07-06 21:15:47 -04:00
Jeremiah Lowin
e9fa9fcf0d Add --copy flag for fastmcp version 2025-07-06 21:10:45 -04:00
Jeremiah Lowin
96cc3188de Add more tests 2025-07-06 21:04:18 -04:00
Jeremiah Lowin
6694d9a19a Add tests 2025-07-06 20:50:31 -04:00
Jeremiah Lowin
919d7e35ef Refactor from typer to cyclopts 2025-07-06 20:37:35 -04:00
Jeremiah Lowin
756e5c31e3 Reapply "Add CLI banner"
This reverts commit 41359ec99d.
2025-07-02 18:28:29 -04:00
Jeremiah Lowin
41359ec99d
Revert "Add CLI banner" 2025-07-02 00:53:20 -04:00
Jeremiah Lowin
f9e20bf63e Fix tests 2025-07-01 10:47:37 -04:00
Jeremiah Lowin
ffe0c92d63 Alias streamable-http as http 2025-06-22 20:00:11 -04:00
zzstoatzz
789d856a53 cleaner 2025-06-03 11:20:28 -05:00
zzstoatzz
dc88356869 allow passing one or many --server-arg flags 2025-06-03 11:06:37 -05:00
Jeremiah Lowin
24ed957f3a Update tests 2025-05-17 18:02:23 -04:00
Jeremiah Lowin
a4f5b32972 Fix static issues and platform dependencies 2025-05-10 09:05:53 -04:00
Didier Durand
68f4887d13 Adding tests for CLI 2025-05-10 05:55:26 +02:00