fastmcp/docs/servers
Jeremiah Lowin c91c43e280
Add AnthropicSamplingHandler (#2617)
* Add AnthropicSamplingHandler

Adds a sampling handler for the Anthropic API at
fastmcp.client.sampling.handlers.anthropic, alongside the existing
OpenAI handler. Includes full support for tool calling.

Install with: pip install fastmcp[anthropic]

* Update default model

* Update sampling docs to cover both OpenAI and Anthropic handlers

* Use AsyncAnthropic, fix falsy value handling, handle tool_choice none

* Propagate isError to Anthropic, join multiple text blocks, fix docs
2025-12-14 16:07:22 -05:00
..
auth Fix RFC 8414 path-aware authorization server metadata discovery (#2533) 2025-12-03 19:16:59 -05:00
composition.mdx 2.14 deprecation removals (#2329) 2025-12-01 14:11:00 -05:00
context.mdx [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
elicitation.mdx SEP-1330 enum schema support (#2549) 2025-12-09 12:22:30 -05:00
icons.mdx Fix version number in VersionBadge: change 2.14.0 to 2.13.0 (#2491) 2025-11-26 16:51:18 -05:00
logging.mdx Also push client messages (info/warn/debug) to server debug log (#2063) 2025-10-14 11:38:26 -07:00
middleware.mdx feat: handle error from the initialize middleware (#2531) 2025-12-10 15:51:51 -05:00
progress.mdx Update parameter capitalization 2025-06-28 15:06:16 -04:00
prompts.mdx Revert "Refactor prompt behavior and add meta support (#2600)" (#2608) 2025-12-13 14:57:50 -05:00
proxy.mdx 2.14 deprecation removals (#2329) 2025-12-01 14:11:00 -05:00
resources.mdx Revert "Refactor resource behavior and add meta support (#2598)" (#2609) 2025-12-13 15:02:18 -05:00
sampling.mdx Add AnthropicSamplingHandler (#2617) 2025-12-14 16:07:22 -05:00
server.mdx 2.14 deprecation removals (#2329) 2025-12-01 14:11:00 -05:00
storage-backends.mdx Add maturity warnings for py-key-value backends 2025-10-29 21:43:31 +00:00
tasks.mdx docs: simplify Docket tip wording (#2599) 2025-12-11 21:08:37 -05:00
tools.mdx [Draft] Add documentation for read-only tool patterns (#2536) 2025-12-09 13:47:29 -05:00