python-sdk/examples/snippets/servers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Max 8c2fa6eaba
Some checks failed
Main branch checks / checks (push) Has been cancelled
[v1.x] Add AuthSettings.validate_token_resource to check a bearer token's resource (#3451)
2026-09-05 03:52:13 +01:00
..
lowlevel Allow CallToolResult to be returned directly to support _meta field for OpenAI Apps (#1459) 2025-10-21 18:52:08 +00:00
__init__.py README - replace code snippets with examples (#1136) 2025-07-14 13:57:47 +01:00
audio_example.py docs: add snippet verification for docs/ pages (#2115) 2026-02-23 15:38:15 +00:00
basic_prompt.py Embed code snippets for README from executable examples (#1055) 2025-07-04 17:25:54 +01:00
basic_resource.py Embed code snippets for README from executable examples (#1055) 2025-07-04 17:25:54 +01:00
basic_tool.py Embed code snippets for README from executable examples (#1055) 2025-07-04 17:25:54 +01:00
binary_resources.py docs: add snippet verification for docs/ pages (#2115) 2026-02-23 15:38:15 +00:00
completion.py Embed code snippets for README from executable examples (#1055) 2025-07-04 17:25:54 +01:00
direct_call_tool_result.py Allow CallToolResult to be returned directly to support _meta field for OpenAI Apps (#1459) 2025-10-21 18:52:08 +00:00
direct_execution.py README - replace code snippets with examples - direct execution and display utilities (#1137) 2025-07-14 15:54:36 +01:00
elicitation.py Implement SEP-1036: URL mode elicitation for secure out-of-band interactions (#1580) 2025-11-25 11:00:21 +00:00
elicitation_complete.py docs: add snippet verification for docs/ pages (#2115) 2026-02-23 15:38:15 +00:00
elicitation_enum.py docs: add snippet verification for docs/ pages (#2115) 2026-02-23 15:38:15 +00:00
embedded_resource_results.py docs: add snippet verification for docs/ pages (#2115) 2026-02-23 15:38:15 +00:00
embedded_resource_results_binary.py docs: add snippet verification for docs/ pages (#2115) 2026-02-23 15:38:15 +00:00
fastmcp_quickstart.py docs: Update examples to use stateless HTTP with JSON responses (#1499) 2025-11-20 15:06:37 +00:00
images.py README - replace code snippets with examples (#1136) 2025-07-14 13:57:47 +01:00
json_schema_example.py docs: add snippet verification for docs/ pages (#2115) 2026-02-23 15:38:15 +00:00
lifespan_example.py Add pyright strict mode on the whole project (#1254) 2025-08-11 18:56:37 +01:00
notifications.py Add pyright strict mode on the whole project (#1254) 2025-08-11 18:56:37 +01:00
oauth_server.py [v1.x] Add AuthSettings.validate_token_resource to check a bearer token's resource (#3451) 2026-09-05 03:52:13 +01:00
pagination_example.py feat: add paginated list decorators for prompts, resources, and tools (#1286) 2025-09-23 14:58:06 +01:00
prompt_change_notifications.py docs: add snippet verification for docs/ pages (#2115) 2026-02-23 15:38:15 +00:00
prompt_embedded_resources.py docs: add snippet verification for docs/ pages (#2115) 2026-02-23 15:38:15 +00:00
prompt_image_content.py docs: add snippet verification for docs/ pages (#2115) 2026-02-23 15:38:15 +00:00
resource_subscriptions.py docs: add snippet verification for docs/ pages (#2115) 2026-02-23 15:38:15 +00:00
resource_templates.py docs: add snippet verification for docs/ pages (#2115) 2026-02-23 15:38:15 +00:00
sampling.py feat: backwards-compatible create_message overloads for SEP-1577 (#1713) 2025-12-02 13:17:45 +00:00
set_logging_level.py docs: add snippet verification for docs/ pages (#2115) 2026-02-23 15:38:15 +00:00
streamable_config.py docs: Update examples to use stateless HTTP with JSON responses (#1499) 2025-11-20 15:06:37 +00:00
streamable_http_basic_mounting.py fix: add lifespan context manager to StreamableHTTP mounting examples (#1669) 2025-12-03 22:08:21 +00:00
streamable_http_host_mounting.py fix: add lifespan context manager to StreamableHTTP mounting examples (#1669) 2025-12-03 22:08:21 +00:00
streamable_http_multiple_servers.py fix: add lifespan context manager to StreamableHTTP mounting examples (#1669) 2025-12-03 22:08:21 +00:00
streamable_http_path_config.py docs: Update examples to use stateless HTTP with JSON responses (#1499) 2025-11-20 15:06:37 +00:00
streamable_starlette_mount.py docs: Update examples to use stateless HTTP with JSON responses (#1499) 2025-11-20 15:06:37 +00:00
structured_output.py changes structured temperature to not deadly (#1328) 2025-08-31 23:09:49 +00:00
tool_change_notifications.py docs: add snippet verification for docs/ pages (#2115) 2026-02-23 15:38:15 +00:00
tool_errors.py docs: add server-side tool error handling documentation (#2129) 2026-02-24 11:31:00 +00:00
tool_progress.py Add pyright strict mode on the whole project (#1254) 2025-08-11 18:56:37 +01:00