fastmcp/examples
Jeremiah Lowin 7d76c9d055
Add examples/ to the ty static-analysis gate (#4466)
* Add examples/ to ty static-analysis gate

* Fix example type errors and stale SDK idioms for ty

* Use typing_extensions.TypedDict for the quiz tool-param type

Question is a take_quiz parameter, so FastMCP builds a Pydantic schema
for it; typing.TypedDict raises PydanticUserError on Python 3.10/3.11
(only 3.12+ accepts it). ty and 3.12 runs miss this, so it slipped in.

* Guard get_access_token() None case in huggingface_oauth example

Caught by the ty gate this PR adds: the example, merged separately,
had never been type-checked against examples/. Matches the existing
aws_oauth/keycloak_oauth pattern.

* Print actual YAML text in custom serializer example
2026-07-18 19:44:13 -04:00
..
apps Add examples/ to the ty static-analysis gate (#4466) 2026-07-18 19:44:13 -04:00
atproto_mcp Migrate to MCP SDK v2.0.0b2 (httpx2) (#4503) 2026-07-18 15:12:47 -04:00
auth Add examples/ to the ty static-analysis gate (#4466) 2026-07-18 19:44:13 -04:00
code_mode Add ListTools, search limit, and catalog size annotation to CodeMode (#3359) 2026-03-02 18:00:21 -05:00
diagnostics Migrate to MCP SDK v2.0.0b2 (httpx2) (#4503) 2026-07-18 15:12:47 -04:00
fastmcp_config Implement typed source system for FastMCP configuration (#1607) 2025-08-24 16:32:37 -04:00
fastmcp_config_demo Internal refactor: fastmcp config to mcp server config (#1672) 2025-08-29 21:37:39 -04:00
filesystem-provider Rename filesystem-provider example dir to avoid mcp/ collision (#3878) 2026-04-12 17:01:58 -04:00
namespace_activation Rename Enabled transform to Visibility (#2950) 2026-01-19 20:46:58 -05:00
persistent_state Add session-scoped state persistence (#2873) 2026-01-16 14:11:21 -05:00
prompts_as_tools Add PromptsAsTools transform (#2946) 2026-01-19 18:19:53 -05:00
providers/sqlite Add examples/ to the ty static-analysis gate (#4466) 2026-07-18 19:44:13 -04:00
resources_as_tools Add ResourcesAsTools transform (#2943) 2026-01-19 17:40:31 -05:00
sampling [Doc]: fixing spelling issues in multiple files 2026-01-23 07:17:38 +01:00
search Narrate search example clients (#3321) 2026-02-27 12:17:31 -05:00
skills Add examples/ to the ty static-analysis gate (#4466) 2026-07-18 19:44:13 -04:00
smart_home Fix stale mcp.types imports in examples (#4452) 2026-07-07 08:07:07 -04:00
tasks Fix stale mcp.types imports in examples (#4452) 2026-07-07 08:07:07 -04:00
testing_demo chore(deps): bump mcp from 1.26.0 to 1.27.2 in /examples/testing_demo in the uv group across 1 directory (#4514) 2026-07-18 15:49:30 -04:00
versioning Add version discovery and calling a certain version for components (#2897) 2026-01-17 08:27:39 -05:00
complex_inputs.py Remove empty parens 2025-06-04 15:37:55 -04:00
config_server.py Remove empty parens 2025-06-04 15:37:55 -04:00
custom_tool_serializer_decorator.py Add examples/ to the ty static-analysis gate (#4466) 2026-07-18 19:44:13 -04:00
desktop.py Remove empty parens 2025-06-04 15:37:55 -04:00
echo.py Remove empty parens 2025-06-04 15:37:55 -04:00
elicitation.py Add fastmcp list and fastmcp call CLI commands (#3054) 2026-02-01 18:30:14 -05:00
get_file.py Add "High Value" Ruff Rules (#2255) 2025-10-26 10:20:31 -04:00
in_memory_proxy_example.py Fix stale mcp.types imports in examples (#4452) 2026-07-07 08:07:07 -04:00
memory.fastmcp.json Update schema path (#1595) 2025-08-23 09:47:58 -04:00
memory.py 2.14 deprecation removals (#2329) 2025-12-01 14:11:00 -05:00
mount_example.fastmcp.json Update schema path (#1595) 2025-08-23 09:47:58 -04:00
mount_example.py Repoint tests and examples off removed deprecations 2026-07-07 07:53:11 -04:00
run_with_tracing.py Address CodeRabbit suggestions 2026-01-14 09:48:07 -05:00
screenshot.fastmcp.json Update schema path (#1595) 2025-08-23 09:47:58 -04:00
screenshot.py 2.14 deprecation removals (#2329) 2025-12-01 14:11:00 -05:00
simple_echo.py Remove empty parens 2025-06-04 15:37:55 -04:00
tags_example.py Repoint examples off removed shim paths 2026-07-07 07:53:10 -04:00
task_elicitation.py Add examples/ to the ty static-analysis gate (#4466) 2026-07-18 19:44:13 -04:00
text_me.py Add examples/ to the ty static-analysis gate (#4466) 2026-07-18 19:44:13 -04:00
tool_result_echo.py Add examples/ to the ty static-analysis gate (#4466) 2026-07-18 19:44:13 -04:00