mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 14:04:18 +02:00
* code mode * update uv.lock for monty optional dep 🤖 Generated with Claude Code * retry CI * Address PR review comments on CodeMode transform 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix ty unresolved-attribute error on search_helper 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * more idiomacy * harden * fix docs * harden * fix red CI * Refactor CodeMode to use CatalogTransform base class Removes the duplicate ContextVar bypass pattern in favor of the shared CatalogTransform machinery. Also fixes a pre-existing bug where `from __future__ import annotations` caused NameError for Annotated in nested function scopes at runtime. * Remove redundant _get_visible_tools wrapper in CodeMode * Rewrite CodeMode docs with proper motivation and structure * Fix type narrowing in collision test * Stop unwrapping tool results in CodeMode's call_tool call_tool() inside execute blocks now returns structured content as-is, preserving the {"result": value} wrapping. This means the output schema shown in search results accurately describes what call_tool() returns, so LLMs can trust the schema when writing code. Also adds examples/code_mode/ with a server and narrated client demo. * Simplify call_tool return type: dict | str * Fix example client to unwrap structured results * Let server resolve tool versions instead of pinning first match * Rewrite CodeMode docs to match current behavior * Rename optional extra from monty to code-mode --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| apps/qr_server | ||
| atproto_mcp | ||
| auth | ||
| code_mode | ||
| diagnostics | ||
| fastmcp_config | ||
| fastmcp_config_demo | ||
| filesystem-provider | ||
| namespace_activation | ||
| persistent_state | ||
| prompts_as_tools | ||
| providers/sqlite | ||
| resources_as_tools | ||
| sampling | ||
| search | ||
| skills | ||
| smart_home | ||
| tasks | ||
| testing_demo | ||
| versioning | ||
| complex_inputs.py | ||
| config_server.py | ||
| custom_tool_serializer_decorator.py | ||
| desktop.py | ||
| echo.py | ||
| elicitation.py | ||
| get_file.py | ||
| in_memory_proxy_example.py | ||
| memory.fastmcp.json | ||
| memory.py | ||
| mount_example.fastmcp.json | ||
| mount_example.py | ||
| run_with_tracing.py | ||
| screenshot.fastmcp.json | ||
| screenshot.py | ||
| simple_echo.py | ||
| tags_example.py | ||
| task_elicitation.py | ||
| text_me.py | ||
| tool_result_echo.py | ||