Commit graph

1,607 commits

Author SHA1 Message Date
Jeremiah Lowin
cc98298e6e Add new tag 2025-06-28 15:15:35 -04:00
Jeremiah Lowin
9b9c0fce2c Merge branch 'main' into elicitation 2025-06-28 15:08:16 -04:00
Jeremiah Lowin
79a92c20cf
Merge pull request #967 from jlowin/auth
Minor auth improvements
2025-06-28 15:08:05 -04:00
Jeremiah Lowin
063c63f590 Fix syntax issue prior to 3.12 2025-06-28 15:07:41 -04:00
Jeremiah Lowin
6ff4022afa Update parameter capitalization 2025-06-28 15:06:16 -04:00
Jeremiah Lowin
2a3fa142f8 Update documentation 2025-06-28 15:05:13 -04:00
Jeremiah Lowin
a34fb9e3bb Support constrained choice 2025-06-28 14:59:31 -04:00
Jeremiah Lowin
3805ac9b44 Provide a response type to client 2025-06-28 09:47:14 -04:00
Jeremiah Lowin
45d9814374 Handler must be async; add to sessionkwargs 2025-06-28 08:32:48 -04:00
Jeremiah Lowin
11d2bacbb4 Merge branch 'main' into elicitation 2025-06-28 08:26:55 -04:00
Jeremiah Lowin
79c086febe
Merge branch 'main' into auth 2025-06-28 08:16:16 -04:00
Jeremiah Lowin
e22267142e
Merge pull request #901 from jlowin/output-schema
MCP 6/18/25: Add output schema to tools
2025-06-28 08:16:06 -04:00
Jeremiah Lowin
3598e947b2 Update test_mcp_config.py 2025-06-28 08:15:43 -04:00
Jeremiah Lowin
dd4ca95899
Merge pull request #979 from github0hello/fix/Fix_a_document_error
Fix a problem in the document.
2025-06-28 08:15:02 -04:00
Jeremiah Lowin
b10bab9423 Fix output schema test 2025-06-28 08:14:31 -04:00
城城
2a30208245 Add a comma 2025-06-28 15:55:16 +08:00
Jeremiah Lowin
c412a63d4e Update docs 2025-06-27 22:38:55 -04:00
Jeremiah Lowin
5520102821 Update failing tests 2025-06-27 22:06:35 -04:00
Jeremiah Lowin
b3799e7a73 Update typing 2025-06-27 21:54:17 -04:00
Jeremiah Lowin
5e38048b44 Fix typing issues in json_schema_type 2025-06-27 21:45:28 -04:00
Jeremiah Lowin
db24c85359 Update all tests 2025-06-27 21:41:37 -04:00
Jeremiah Lowin
037b1f35b1
Merge pull request #977 from cortexapps/add-extensions
Add OpenAPI extensions support to HTTPRoute
2025-06-27 20:45:01 -04:00
Jeremiah Lowin
05104aa3a8
Merge pull request #976 from gorocode/feature/component-manager
Component Manager
2025-06-27 20:43:18 -04:00
Jeremiah Lowin
a7eb2da273 Update output schema control 2025-06-27 20:17:10 -04:00
Aditya Bansal
f524652f25 Add OpenAPI extensions support to HTTPRoute
- Add extensions field to HTTPRoute class to store x-* fields
  - Extract extensions from operation's model_extra in parser
  - Add test to verify extensions are properly parsed
2025-06-27 15:27:36 -07:00
Goro
18e522b320 Remove redundant testing calls 2025-06-27 23:58:59 +02:00
Goro
3598943d06 Fix doc and example 2025-06-27 23:54:18 +02:00
Goro
852952dd6d Add tests when custom path is provided 2025-06-27 23:30:41 +02:00
Goro
510f3fb3f2 Merge branch 'main' of https://github.com/jlowin/fastmcp into feature/component-manager 2025-06-27 22:18:33 +02:00
Goro
7d252e6da4 Add missing documentation 2025-06-27 22:17:44 +02:00
Jeremiah Lowin
ddb557ba30 Update for 'result' kwarg instead of 'value' 2025-06-27 15:44:46 -04:00
Jeremiah Lowin
d8dc28b9b2 Add structured content & update almost all tests 2025-06-27 15:40:52 -04:00
Goro
f2fe4f94b0 Refactor duplicated logic 2025-06-27 21:12:17 +02:00
Goro
fc26023f5d Fix typing warnings 2025-06-27 20:12:52 +02:00
Goro
02a905e8b9 Add component manager tests 2025-06-27 20:04:25 +02:00
Goro
6b89695949 Refactor component manager into contrib module 2025-06-27 19:27:15 +02:00
Jeremiah Lowin
2b313bc3ff Update tool transformation for ToolResult compatibility
- TransformedTool.run() now returns ToolResult instead of list[ContentBlock]
- forward() and forward_raw() return ToolResult from parent tools
- Transform functions can return ToolResult for full control or any value for auto-wrapping
- Maintains backward compatibility with existing transform functions

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-26 22:02:04 -04:00
Jeremiah Lowin
21d4ce092c Add structured output support
- Tools can return StructuredOutput() for explicit structured data
- Tools with output_schema automatically return structured data
- Client hydrates structured responses into typed objects
- Maintains backward compatibility with unstructured-only tools
2025-06-26 21:15:25 -04:00
Jeremiah Lowin
7f0622b707 Fix contrib tests 2025-06-26 20:17:02 -04:00
Jeremiah Lowin
1e29149d5f Merge branch 'main' into output-schema 2025-06-26 19:30:35 -04:00
Jeremiah Lowin
19c1526286 Fix trailing slash 2025-06-26 19:24:57 -04:00
Jeremiah Lowin
37daf553c1 Clean up extra oauth models, not needed anymore 2025-06-26 19:07:05 -04:00
Jeremiah Lowin
85cca273de
Merge pull request #887 from jlowin/protocol-update
MCP 6/18/25: Staging PR
2025-06-26 18:45:10 -04:00
Jeremiah Lowin
33263582b8 Fix typing 2025-06-26 18:33:32 -04:00
Jeremiah Lowin
78f0196db5 Fix OpenAPI tests 2025-06-26 18:21:52 -04:00
Jeremiah Lowin
7b9696405b Remove legacy json parsing
Because the server now validates inputs, its no longer viable to provide a JSON string where e.g. an array is expected, so we can entirely remove FastMCP's "legacy json parsing" support from 1.x.

This is a breaking change (for legacy opt-in behavior)
2025-06-26 18:19:43 -04:00
Jeremiah Lowin
9d51bca0d8 Merge branch 'main' into protocol-update 2025-06-26 18:13:59 -04:00
Jeremiah Lowin
ddb38bacc4 Fix middleware tests 2025-06-26 18:13:32 -04:00
Jeremiah Lowin
6b2df6be51 Fix middleware tests 2025-06-26 17:57:30 -04:00
Jeremiah Lowin
aa66b81b73 Merge branch 'protocol-update' of https://github.com/jlowin/fastmcp into protocol-update 2025-06-26 15:22:41 -04:00