Commit graph

1,458 commits

Author SHA1 Message Date
Jeremiah Lowin
76e3df1bc1 Add "http" as an alias for streamable-http 2025-06-22 18:55:07 -04:00
Jeremiah Lowin
9b85d492e8 Add http as an alias for streamable http 2025-06-22 18:35:28 -04:00
Jeremiah Lowin
74c3fdc1e7
Merge pull request #915 from jlowin/integrations 2025-06-22 15:46:45 -04:00
Jeremiah Lowin
6503b79352 Add claude code 2025-06-22 15:44:46 -04:00
Jeremiah Lowin
fbc4fc1490 Add ChatGPT doc 2025-06-22 15:28:51 -04:00
Jeremiah Lowin
686df919ff Update gemini address 2025-06-22 14:41:18 -04:00
Jeremiah Lowin
9250d2932a Update Claude Desktop to reflect remote server support
#742
2025-06-22 14:41:12 -04:00
Jeremiah Lowin
b4b9c57bdd Update anthropic + openai to show SHTTP 2025-06-22 14:19:32 -04:00
Jeremiah Lowin
e323f893fd
Merge pull request #913 from jlowin/docs-org 2025-06-22 13:44:01 -04:00
Jeremiah Lowin
52a2d35a46
Merge branch 'main' into docs-org 2025-06-22 13:43:51 -04:00
Jeremiah Lowin
6692879124
Merge pull request #912 from jlowin/client-docs 2025-06-22 13:43:35 -04:00
Jeremiah Lowin
4d571e3711 Update nav 2025-06-22 13:43:15 -04:00
Jeremiah Lowin
133254ee25 Update docs 2025-06-22 13:34:36 -04:00
Jeremiah Lowin
3d2e2a5954 Update client features 2025-06-22 13:30:25 -04:00
Jeremiah Lowin
1adca653e3 Update overview
Co-Authored-By: Claude <claude@users.noreply.github.com>
2025-06-22 13:23:52 -04:00
Jeremiah Lowin
8e98d711fc Update client docs
Co-Authored-By: Claude <claude@users.noreply.github.com>
2025-06-22 13:18:28 -04:00
Jeremiah Lowin
d12cebce1f
Merge pull request #910 from jlowin/feature/client-side-prompt-argument-serialization 2025-06-22 10:39:07 -04:00
Jeremiah Lowin
993f3d7979 Update client.py 2025-06-22 10:35:37 -04:00
Jeremiah Lowin
a19a84e7a8
Update src/fastmcp/client/client.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-22 10:33:59 -04:00
Jeremiah Lowin
32269f5140 Update .pre-commit-config.yaml 2025-06-22 10:33:22 -04:00
Jeremiah Lowin
73e1aa2112 Apply pre-commit formatting changes
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-22 10:29:15 -04:00
Jeremiah Lowin
a343ee6a97
Merge pull request #906 from Jason-CKY/feat/custom-auth-mcpconfig 2025-06-22 10:27:58 -04:00
Jeremiah Lowin
dbf125b6ac Update client.mdx
Co-Authored-By: Claude <claude@users.noreply.github.com>
2025-06-22 10:20:03 -04:00
Jeremiah Lowin
a7f14d90a4 Implement client-side argument serialization with focused tests
- Add pydantic_core.to_json() serialization for non-string prompt arguments
- Update type annotations to accept dict[str, Any] instead of dict[str, str]
- Add focused tests covering specific scenarios:
  * Client always serializes non-string args regardless of server types
  * Integration with server-side type conversion
  * Client serialization error with specific PydanticSerializationError
  * Server deserialization error with specific McpError match

This ensures MCP protocol compliance while maintaining developer experience
with typed arguments.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-22 10:18:48 -04:00
Jeremiah Lowin
951de7634a
Merge pull request #908 from jlowin/feature/server-side-type-conversion 2025-06-22 10:00:14 -04:00
Jeremiah Lowin
4a038d8f54 Update prompts.mdx
Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-22 09:57:25 -04:00
Jeremiah Lowin
9714028cac Fix pyright type checking issues in tests
Add proper null checks and type assertions for prompt argument
handling in tests to satisfy pyright strict typing.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-22 09:55:40 -04:00
Jeremiah Lowin
7dd2a13ec2 Update docs
Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-22 09:52:52 -04:00
Jeremiah Lowin
7114242e1e Update schema description wording for clarity
Change from 'Arguments must be strings conforming to this JSON schema'
to 'Provide as a JSON string matching the following schema' for clearer
instruction to LLMs about string format requirements.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-22 09:46:11 -04:00
Jeremiah Lowin
817018bf3b Add automatic JSON schema descriptions for non-string prompt arguments
- Fix ValueError -> PromptError for consistent error handling
- Add automatic JSON schema descriptions to non-string prompt arguments
- Include comprehensive tests for argument description enhancement
- Verify enhanced descriptions are visible via MCP protocol

This helps developers understand the expected string format for complex
types when calling prompts from MCP clients.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-22 09:38:57 -04:00
Jeremiah Lowin
ef1368fda5 Remove unclear comment about validate_call
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-22 08:36:25 -04:00
Jeremiah Lowin
7a793f4309 Fix prompt argument type annotation to support mixed typing
Updated FunctionPrompt.render() to accept dict[str, Any] instead of
dict[str, str | Context] to preserve the developer experience of
passing properly typed arguments while also supporting string-only
arguments from MCP clients.

The _convert_string_arguments method now intelligently handles both
scenarios:
- Already-typed arguments are passed through unchanged
- String arguments are converted to expected types when needed

This maintains backward compatibility while enabling MCP spec compliance.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-22 08:34:49 -04:00
Jason Cheng
f2a38d275c custom auth configuration for remote mcp server with mcp config class 2025-06-22 14:03:50 +08:00
Jeremiah Lowin
3933f4f96c
Merge pull request #904 from jlowin/feature/fastmcp-inspect-command 2025-06-21 20:20:02 -04:00
Jeremiah Lowin
84d5750f6d Update cli.mdx
Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-21 20:08:29 -04:00
Jeremiah Lowin
8506f78453 Fix event loop conflict in inspect CLI command
Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-21 20:04:39 -04:00
Jeremiah Lowin
bc1e185141 Use dataclasses.asdict() for better maintainability
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-21 16:43:40 -04:00
Jeremiah Lowin
6a3a3077b7 Add fastmcp inspect command with detailed server analysis
- Add comprehensive server inspection utility supporting both FastMCP 1.x and 2.x
- Create detailed info dataclasses for tools, prompts, resources, and templates
- Implement CLI command with path:object notation and JSON output
- Add version reporting (fastmcp_version, mcp_version, server_version)
- Include comprehensive unit tests for utilities and CLI

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-21 16:40:54 -04:00
Jeremiah Lowin
4741d9ea86
Merge pull request #902 from jlowin/docs 2025-06-20 20:49:05 -04:00
Jeremiah Lowin
e245155bc5 Simplify docs nav 2025-06-20 20:48:42 -04:00
Jeremiah Lowin
337c2f8db5
Merge pull request #897 from owtaylor/openapi-recursive-components 2025-06-20 18:43:27 -04:00
Jeremiah Lowin
ecd5aeeed8
Merge pull request #900 from jlowin/fix-api-ref-rendering 2025-06-20 18:32:27 -04:00
zzstoatzz
98a91cbd9e fix escaping problem 2025-06-20 17:15:33 -05:00
zzstoatzz
094d259389 remove xtra newline 2025-06-20 17:09:30 -05:00
zzstoatzz
006341871e ope 2025-06-20 17:08:24 -05:00
zzstoatzz
a7e3ae47bf fix rendering for some pages 2025-06-20 17:07:19 -05:00
Jeremiah Lowin
1aaadf25e9
Merge pull request #893 from jlowin/api-ref 2025-06-20 16:39:15 -04:00
Owen W. Taylor
14d1b8a94d openapi: Rewrite recursive #/components/schemas/ references
When a schema referenced another schema as #/components/schemas/...
that wasn't properly rewritten into #/$defs/..
2025-06-20 14:34:47 -04:00
Owen W. Taylor
bbf8165636 openapi: Improve pruning of unused defs
Defs that are used only by other unused defs were counted as
used. Fix this by tracing what defs use other defs recursively.
2025-06-20 14:34:41 -04:00
zzstoatzz
5afe5b793e update path and mdxify 2025-06-20 12:59:11 -05:00