content
large_stringlengths
3
20.5k
url
large_stringlengths
54
193
branch
large_stringclasses
4 values
source
large_stringclasses
42 values
embeddings
listlengths
384
384
score
float64
-0.21
0.65
project-based deployments by [@jlowin](https://github.com/jlowin) in [#1631](https://github.com/jlowin/fastmcp/pull/1631) \* fix: allow passing query params in OAuthProxy upstream authorization url by [@danb27](https://github.com/danb27) in [#1630](https://github.com/jlowin/fastmcp/pull/1630) \* Support multiple --with...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.10676657408475876, 0.04757396876811981, -0.010472259484231472, -0.024333270266652107, 0.029805997386574745, -0.056006889790296555, -0.016713527962565422, -0.0008093866053968668, -0.015354836359620094, -0.045506108552217484, 0.009733588434755802, -0.03621513396501541, 0.07539324462413788, ...
-0.057539
triage bot for fork PRs using pull\_request\_target by [@jlowin](https://github.com/jlowin) in [#1557](https://github.com/jlowin/fastmcp/pull/1557) ## New Contributors \* [@thomas-te](https://github.com/thomas-te) made their first contribution in [#1496](https://github.com/jlowin/fastmcp/pull/1496) \* [@maybenotconnor]...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.1536802500486374, -0.039970945566892624, -0.003635460278019309, -0.07725029438734055, 0.047885190695524216, 0.003684394061565399, 0.018682537600398064, 0.05107291042804718, -0.052833858877420425, 0.024801868945360184, 0.11487042158842087, -0.07553660869598389, -0.010026685893535614, -0....
0.075412
unused arg by [@jlowin](https://github.com/jlowin) in [#1382](https://github.com/jlowin/fastmcp/pull/1382) \* Add remote auth provider tests by [@jlowin](https://github.com/jlowin) in [#1351](https://github.com/jlowin/fastmcp/pull/1351) ## New Contributors \* [@bianning](https://github.com/bianning) made their first co...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.09727420657873154, -0.031650692224502563, 0.008981499820947647, 0.010109513066709042, 0.06899779289960861, -0.013899195939302444, 0.026219559833407402, -0.020641202107071877, 0.01298882719129324, -0.020059652626514435, 0.04830671101808548, 0.05053771659731865, 0.0011556384852156043, -0....
0.057559
from string annotations by [@jlowin](https://github.com/jlowin) in [#1255](https://github.com/jlowin/fastmcp/pull/1255) \* feat: Add Annotations support for resources and resource templates by [@chughtapan](https://github.com/chughtapan) in [#1260](https://github.com/jlowin/fastmcp/pull/1260) \* Add UV Transport by [@s...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.09983249008655548, 0.0900908038020134, -0.01194040384143591, -0.015655454248189926, 0.0632108673453331, -0.05767802149057388, -0.014791355468332767, 0.01810460351407528, -0.048397038131952286, -0.05653626471757889, 0.024914808571338654, -0.04482655972242355, -0.010322376154363155, 0.051...
0.067734
MCP Tool Transform PR by [@strawgate](https://github.com/strawgate) in [#1267](https://github.com/jlowin/fastmcp/pull/1267) \* Add test for proxy tags visibility by [@jlowin](https://github.com/jlowin) in [#1302](https://github.com/jlowin/fastmcp/pull/1302) \* Add unit test for sampling with image messages by [@jlowin]...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.10365708917379379, 0.010938993655145168, 0.02882562018930912, -0.009423434734344482, 0.09696784615516663, -0.09054530411958694, -0.008569755591452122, -0.042654842138290405, -0.03734166547656059, -0.00229491014033556, 0.07639145851135254, -0.00709242420271039, 0.053494490683078766, -0.0...
0.046951
Fixes ๐Ÿž \* Fix OpenAPI deepObject style parameter encoding by [@jlowin](https://github.com/jlowin) in [#1122](https://github.com/jlowin/fastmcp/pull/1122) \* xfail when github token is not set ('' or None) by [@jlowin](https://github.com/jlowin) in [#1123](https://github.com/jlowin/fastmcp/pull/1123) \* fix: replace o...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.04880676418542862, 0.016544761136174202, 0.03797629475593567, -0.017827773466706276, 0.042937975376844406, -0.02883468195796013, -0.0027156134601682425, 0.004629309754818678, -0.0023014149628579617, -0.05252780020236969, 0.012167241424322128, -0.12247174978256226, 0.021768905222415924, ...
0.110284
\* Re-add splash screen by [@jlowin](https://github.com/jlowin) in [#1027](https://github.com/jlowin/fastmcp/pull/1027) \* Reduce banner padding by [@jlowin](https://github.com/jlowin) in [#1030](https://github.com/jlowin/fastmcp/pull/1030) \* Allow per-server timeouts in MCPConfig by [@cegersdoerfer](https://github.co...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.07957025617361069, 0.06912857294082642, 0.030040793120861053, -0.023293666541576385, 0.12357059121131897, 0.007630909793078899, -0.007655574940145016, 0.003637022338807583, -0.04363066330552101, -0.052689604461193085, 0.04891034960746765, 0.0238052885979414, 0.03545417636632919, 0.03403...
-0.008428
in [#1005](https://github.com/jlowin/fastmcp/pull/1005) ### Examples & Contrib ๐Ÿ’ก \* Component Manager by [@gorocode](https://github.com/gorocode) in [#976](https://github.com/jlowin/fastmcp/pull/976) ### Other Changes ๐Ÿฆพ \* Minor auth improvements by [@jlowin](https://github.com/jlowin) in [#967](https://github.com/jl...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.1280907392501831, -0.0340798944234848, -0.025288831442594528, -0.007088781334459782, 0.053928639739751816, 0.04714309424161911, -0.03154858574271202, 0.02081970125436783, -0.06339190155267715, -0.02054745703935623, 0.0903429314494133, -0.01345845777541399, -0.025370171293616295, 0.00582...
0.054419
property to Context for data sharing by [@jlowin](https://github.com/jlowin) in [#881](https://github.com/jlowin/fastmcp/pull/881) \* Fix CORS documentation example by [@jlowin](https://github.com/jlowin) in [#895](https://github.com/jlowin/fastmcp/pull/895) ### Fixes ๐Ÿž \* "report\_progress missing passing related\_re...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.11274479329586029, 0.03898607939481735, -0.0024675175081938505, -0.01508261263370514, 0.018677886575460434, 0.005882143508642912, 0.030489027500152588, -0.01865565963089466, -0.008113977499306202, -0.06155388057231903, 0.0315149649977684, -0.06827543675899506, 0.04942617192864418, 0.023...
0.066061
a new feature that lets you create enhanced variations of existing tools. You can now easily rename arguments, hide parameters, modify descriptions, and even wrap tools with custom validation or post-processing logicโ€”all without rewriting the original code. This makes it easier than ever to adapt generic tools for spec...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.0903031975030899, 0.015432152897119522, -0.0049766176380217075, 0.04157591238617897, 0.059861354529857635, 0.0005825605476275086, -0.019753960892558098, -0.0014931230107322335, -0.03587372601032257, -0.03216804563999176, -0.0031181941740214825, -0.022019706666469574, 0.034048888832330704,...
0.024837
[@jlowin](https://github.com/jlowin) in [#761](https://github.com/jlowin/fastmcp/pull/761) \* Remove extra imports for MCPConfig by [@Maanas-Verma](https://github.com/Maanas-Verma) in [#763](https://github.com/jlowin/fastmcp/pull/763) \* Split out enhancements in release notes by [@jlowin](https://github.com/jlowin) in...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.17473284900188446, -0.02782602235674858, -0.0184928048402071, -0.007150392513722181, 0.06823808699846268, 0.030328672379255295, -0.019044000655412674, 0.012039408087730408, -0.07060306519269943, -0.011542499996721745, 0.0907350406050682, -0.0019972617737948895, -0.05802694335579872, 0.0...
0.098387
\* Update auth docs by [@jlowin](https://github.com/jlowin) in [#687](https://github.com/jlowin/fastmcp/pull/687) ### Other Changes ๐Ÿฆพ \* Remove deprecation notice by [@jlowin](https://github.com/jlowin) in [#677](https://github.com/jlowin/fastmcp/pull/677) \* Delete server.py by [@jlowin](https://github.com/jlowin) in...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.11561877280473709, 0.005965847987681627, 0.018140645697712898, -0.03229179233312607, 0.05261079967021942, -0.025343673303723335, -0.03726240247488022, -0.017998583614826202, -0.03404514119029045, 0.007755066733807325, 0.09005794674158096, 0.07263845950365067, 0.022263679653406143, 0.004...
0.01841
mcpconfig, with default by [@jlowin](https://github.com/jlowin) in [#555](https://github.com/jlowin/fastmcp/pull/555) \* Raise an error if a Client is created with no servers in config by [@jlowin](https://github.com/jlowin) in [#554](https://github.com/jlowin/fastmcp/pull/554) \* Expose model preferences in `Context.s...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.06553935259580612, -0.06581273674964905, 0.032728616148233414, 0.05225447937846184, 0.019261838868260384, 0.024827532470226288, -0.05409751087427139, 0.05911907181143761, -0.054162248969078064, -0.03028009831905365, 0.025810761377215385, -0.018290048465132713, 0.009193988516926765, 0.02...
0.002074
check by [@zzstoatzz](https://github.com/zzstoatzz) in [#473](https://github.com/jlowin/fastmcp/pull/473) \* strict typing for `server.py` by [@zzstoatzz](https://github.com/zzstoatzz) in [#476](https://github.com/jlowin/fastmcp/pull/476) \* Doc(quickstart): Fix import statements by [@mai-nakagawa](https://github.com/m...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.15555579960346222, -0.0006021732115186751, -0.016768988221883774, -0.002916488330811262, 0.01341018546372652, -0.010484798811376095, -0.011111781001091003, 0.04379415884613991, -0.05223532393574715, -0.06912457942962646, 0.06950510293245316, 0.02674778178334236, 0.0024053161032497883, 0...
0.009253
llms.txt to docs by [@jlowin](https://github.com/jlowin) in [#384](https://github.com/jlowin/fastmcp/pull/384) \* Fixing various text typos by [@didier-durand](https://github.com/didier-durand) in [#385](https://github.com/jlowin/fastmcp/pull/385) ### Other Changes ๐Ÿฆพ \* Adding a few tests to Image type by [@didier-dur...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.07877358794212341, 0.03420260176062584, 0.0627717599272728, 0.025253625586628914, 0.06737435609102249, -0.04914719611406326, -0.05014265328645706, 0.015690121799707413, 0.03276802971959114, 0.03885293006896973, 0.08335728943347931, 0.042636752128601074, 0.05154179781675339, -0.045202184...
0.050186
\* Expose configurable timeout for OpenAPI by [@jlowin](https://github.com/jlowin) in [#279](https://github.com/jlowin/fastmcp/pull/279) \* Lower websockets pin for compatibility by [@jlowin](https://github.com/jlowin) in [#286](https://github.com/jlowin/fastmcp/pull/286) \* Improve OpenAPI param handling by [@jlowin](...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.10517138987779617, 0.061428673565387726, -0.0011834960896521807, 0.02472102642059326, 0.02766692452132702, -0.06526561826467514, -0.08020345866680145, -0.014169861562550068, -0.04224196821451187, -0.08980783820152283, 0.037882041186094284, -0.028877058997750282, -0.019616689532995224, -...
0.082665
documentation by [@jlowin](https://github.com/jlowin) in [#185](https://github.com/jlowin/fastmcp/pull/185) ### Other Changes ๐Ÿฆพ \* Add transport kwargs for mcp.run() and fastmcp run by [@jlowin](https://github.com/jlowin) in [#161](https://github.com/jlowin/fastmcp/pull/161) \* Allow resource templates to have optiona...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.09273846447467804, 0.054561346769332886, 0.026156652718782425, -0.02324383147060871, 0.04343700781464577, 0.023483648896217346, -0.008061020635068417, -0.018938923254609108, -0.034464139491319656, -0.03385622054338455, 0.04291396215558052, 0.002700182143598795, 0.030218346044421196, -0....
0.01346
[@zzstoatzz](https://github.com/zzstoatzz) in [#113](https://github.com/jlowin/fastmcp/pull/113) \* Readme by [@jlowin](https://github.com/jlowin) in [#118](https://github.com/jlowin/fastmcp/pull/118) \* FastMCP 2.0 by [@jlowin](https://github.com/jlowin) in [#119](https://github.com/jlowin/fastmcp/pull/119) \*\*Full C...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.1411890685558319, -0.011696519330143929, 0.013312119990587234, -0.02784811146557331, 0.08524004369974136, -0.011548657901585102, -0.04857293888926506, 0.0268456619232893, -0.04450269788503647, 0.0006626612157560885, 0.031237583607435226, 0.04028504714369774, -0.03096935898065567, 0.0048...
0.093308
for settings by [@zzstoatzz](https://github.com/zzstoatzz) in [#22](https://github.com/jlowin/fastmcp/pull/22) \* print exception when server can't start by [@jlowin](https://github.com/jlowin) in [#25](https://github.com/jlowin/fastmcp/pull/25) ### Docs ๐Ÿ“š \* Update README.md by [@jlowin](https://github.com/jlowin) in...
https://github.com/jlowin/fastmcp/blob/main//docs/changelog.mdx
main
model-context-protocol-fastmcp
[ -0.06764065474271774, 0.01329234428703785, -0.0006696704658679664, -0.027902625501155853, 0.07318317145109177, -0.0000762094568926841, -0.04831385239958763, 0.028944430872797966, -0.04990009590983391, 0.016466941684484482, 0.06448933482170105, 0.020334351807832718, 0.04046265035867691, -0....
0.022148
FastMCP 3.0 rebuilds the framework around three primitives: components, providers, and transforms. Providers source components dynamicallyโ€”from decorators, filesystems, OpenAPI specs, remote servers, or anywhere else. Transforms modify components as they flow to clients. The features that required specialized subsystem...
https://github.com/jlowin/fastmcp/blob/main//docs/updates.mdx
main
model-context-protocol-fastmcp
[ -0.10185858607292175, -0.008041311986744404, 0.0252547450363636, 0.0004606622096616775, 0.057762790471315384, -0.046280018985271454, -0.03811914473772049, -0.003031204454600811, -0.0101718595251441, -0.027836676687002182, 0.05426840856671333, -0.020833147689700127, -0.017091793939471245, -...
0.087078
multi-instance deployments. ๐ŸŽจ \*\*Icon support\*\* added to proxy classes for richer UX. Introduces meta parameter support for `ToolResult`, enabling tools to return supplementary metadata alongside results for patterns like OpenAI's Apps SDK. ๐Ÿท๏ธ \*\*Meta parameters\*\* let tools return supplementary metadata alongsi...
https://github.com/jlowin/fastmcp/blob/main//docs/updates.mdx
main
model-context-protocol-fastmcp
[ -0.13317018747329712, 0.016798336058855057, 0.021423615515232086, -0.019945167005062103, 0.019949067384004593, -0.07780962437391281, -0.005426763091236353, -0.010452223010361195, -0.022082528099417686, -0.025180982425808907, 0.04739830642938614, -0.012455612421035767, 0.06172440946102142, ...
0.070551
extensive testing and iteration with the community, we're shipping major improvements to authentication, configuration, and MCP feature adoption. ๐Ÿ” \*\*OAuth Proxy\*\* bridges the gap for providers that don't support Dynamic Client Registration, enabling authentication with GitHub, Google, WorkOS, and Azure through mi...
https://github.com/jlowin/fastmcp/blob/main//docs/updates.mdx
main
model-context-protocol-fastmcp
[ -0.13027597963809967, 0.035647232085466385, 0.0657801553606987, 0.02945546805858612, 0.033689871430397034, -0.09589611738920212, -0.02191259153187275, -0.031542498618364334, -0.015889199450612068, -0.0017019580118358135, 0.016351550817489624, 0.015870684757828712, 0.06489396840333939, 0.01...
0.113936
๐Ÿš€ Pragmatic by Default Lastly, to ensure maximum compatibility with the ecosystem, we've made the pragmatic decision to default all OpenAPI routes to Tools, making your entire API immediately accessible to any tool-using agent. When the industry catches up and supports resources, we'll restore the old default -- but n...
https://github.com/jlowin/fastmcp/blob/main//docs/updates.mdx
main
model-context-protocol-fastmcp
[ -0.12747664749622345, 0.03548745438456535, -0.019299717620015144, 0.01414050254970789, -0.02735045552253723, -0.05363786220550537, -0.03403615579009056, -0.04424291104078293, -0.043592669069767, -0.00689907930791378, 0.0782758966088295, -0.0339290127158165, 0.027674946933984756, 0.02699608...
0.047257
build MCP servers without the protocol overhead. Just write functions; FastMCP handles the rest. What began as a weekend project quickly became the foundation of a growing ecosystem.
https://github.com/jlowin/fastmcp/blob/main//docs/updates.mdx
main
model-context-protocol-fastmcp
[ -0.030162092298269272, -0.00761605566367507, 0.08937843888998032, -0.015422909520566463, -0.01591886393725872, -0.027555784210562706, -0.09439313411712646, -0.0006832369253970683, -0.04527734965085983, 0.038521502166986465, 0.0054576341062784195, -0.009344571270048618, 0.010740629397332668, ...
0.10654
import { VersionBadge } from '/snippets/version-badge.mdx' Use this when you need to execute server-side functions and process their results. Tools are executable functions exposed by MCP servers. The client's `call\_tool()` method executes a tool by name with arguments and returns structured results. ## Basic Executio...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/tools.mdx
main
model-context-protocol-fastmcp
[ -0.054545219987630844, 0.06879321485757828, -0.03033853881061077, 0.07050303369760513, -0.04701005667448044, -0.0641385167837143, -0.07790170609951019, 0.02617882750928402, -0.038075175136327744, -0.01740812323987484, -0.03608918935060501, -0.006262995768338442, 0.05320178344845772, -0.074...
0.024472
import { VersionBadge } from '/snippets/version-badge.mdx' MCP servers are designed for programmatic consumption by AI assistants and applications. But during development, you often want to poke at a server directly: check what tools it exposes, call one with test arguments, or verify that a deployment is responding co...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/cli.mdx
main
model-context-protocol-fastmcp
[ -0.050688132643699646, -0.02579217217862606, 0.028858261182904243, -0.05837935581803322, 0.014023683965206146, -0.07704274356365204, -0.04953746870160103, -0.009763505309820175, -0.041545331478118896, -0.014408290386199951, -0.011321552097797394, -0.002394170267507434, 0.08264017850160599, ...
0.09106
a server and prints every tool it exposes. The default output is compact: each tool appears as a function signature with its parameter names, types, and a description. ```bash fastmcp list http://localhost:8000/mcp ``` The output looks like a Python function signature, making it easy to see at a glance what a tool expe...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/cli.mdx
main
model-context-protocol-fastmcp
[ -0.04080755636096001, 0.0137323047965765, -0.049243830144405365, 0.010942461900413036, 0.012322532944381237, -0.05807170644402504, -0.026819048449397087, -0.010677794925868511, 0.0042936112731695175, -0.06321270763874054, 0.05009065568447113, -0.03872472047805786, 0.04290805757045746, -0.0...
0.073283
parse tool results programmatically. ```bash fastmcp call server.py get\_weather city=London --json ``` ## Authentication When the server target is an HTTP URL, the CLI automatically enables OAuth authentication. If the server requires it, you will be guided through the OAuth flow (typically opening a browser for autho...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/cli.mdx
main
model-context-protocol-fastmcp
[ -0.038317229598760605, 0.028937185183167458, -0.017703764140605927, -0.029436055570840836, -0.0351785272359848, -0.13571561872959137, -0.017926165834069252, -0.028977490961551666, 0.012595115229487419, -0.08267363160848618, 0.017585020512342453, -0.020771807059645653, 0.018971141427755356, ...
-0.045196
import { VersionBadge } from '/snippets/version-badge.mdx' `fastmcp list` and `fastmcp call` let you poke at a server interactively, but they're developer tools โ€” you always have to spell out the server spec, the tool name, and the arguments. `fastmcp generate-cli` takes the next step: it connects to a server, reads it...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/generate-cli.mdx
main
model-context-protocol-fastmcp
[ -0.06287532299757004, -0.0097502451390028, 0.016983022913336754, -0.03669436275959015, 0.01741473376750946, -0.07017339020967484, -0.0340769924223423, -0.01876078173518181, -0.05410175025463104, -0.044883016496896744, 0.03380746394395828, -0.05691364407539368, 0.08436286449432373, -0.00934...
0.047105
Every invocation connects through this spec, so the script works without any external configuration. ### Parameter Handling Parameters are mapped intelligently based on their complexity: \*\*Simple types\*\* (`string`, `integer`, `number`, `boolean`) become typed Python parameters with clean flags: ```bash python cli.p...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/generate-cli.mdx
main
model-context-protocol-fastmcp
[ -0.05982023850083351, 0.009749799966812134, -0.05747824162244797, 0.035797152668237686, -0.08792927116155624, -0.10385417938232422, 0.019728191196918488, 0.011453565210103989, -0.05716629698872566, -0.05976906791329384, -0.03347652405500412, -0.040722187608480453, 0.000438124145148322, 0.0...
0.003102
import { VersionBadge } from "/snippets/version-badge.mdx" Use this when you need to run long operations asynchronously while doing other work. The MCP task protocol lets you request operations to run in the background. The call returns a Task object immediately, letting you track progress, cancel operations, or await ...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/tasks.mdx
main
model-context-protocol-fastmcp
[ -0.0574142150580883, 0.041539259254932404, -0.01803857460618019, 0.030760763213038445, 0.020653536543250084, -0.04088835045695305, -0.026182863861322403, -0.002719420474022627, 0.0052574146538972855, -0.012898150831460953, -0.022003309801220894, -0.018681852146983147, 0.051365673542022705, ...
0.035386
import { VersionBadge } from "/snippets/version-badge.mdx"; Use this when you need to respond to server requests for user input during tool execution. Elicitation allows MCP servers to request structured input from users during operations. Instead of requiring all inputs upfront, servers can interactively ask for missi...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/elicitation.mdx
main
model-context-protocol-fastmcp
[ -0.06909752637147903, 0.005394340958446264, 0.024280130863189697, 0.03446895629167557, 0.000027775775379268453, -0.024102866649627686, -0.01648642122745514, -0.010989880189299583, -0.03369986265897751, -0.06217355281114578, 0.008083902299404144, -0.07921102643013, 0.09720060974359512, -0.0...
0.031853
import { VersionBadge } from '/snippets/version-badge.mdx' Use this when you need to retrieve server-defined message templates for LLM interactions. Prompts are reusable message templates exposed by MCP servers. They can accept arguments to generate personalized message sequences for LLM interactions. ## Basic Usage Re...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/prompts.mdx
main
model-context-protocol-fastmcp
[ 0.026077156886458397, 0.0551985427737236, 0.06974351406097412, 0.04472501203417778, 0.055225919932127, 0.014984332956373692, 0.01212998665869236, 0.01025464478880167, -0.017631106078624725, -0.04454432800412178, -0.03024696372449398, -0.04800555855035782, 0.08491095155477524, -0.0051619498...
-0.032654
import { VersionBadge } from "/snippets/version-badge.mdx"; Use this when you need to respond to server requests for LLM completions. MCP servers can request LLM completions from clients during tool execution. This enables servers to delegate AI reasoning to the client, which controls which LLM is used and how requests...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/sampling.mdx
main
model-context-protocol-fastmcp
[ -0.05750463157892227, -0.015005946159362793, 0.050015516579151154, 0.01683812588453293, 0.04203343018889427, -0.07292377203702927, 0.04475979506969452, -0.03942307084798813, 0.019796060398221016, -0.016607368364930153, -0.028291895985603333, -0.021738184615969658, 0.07243262976408005, -0.0...
0.050662
import { VersionBadge } from '/snippets/version-badge.mdx' Use this when you need to track progress of long-running operations. MCP servers can report progress during operations. The client receives these updates through a progress handler. ## Progress Handler Set a handler when creating the client: ```python from fast...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/progress.mdx
main
model-context-protocol-fastmcp
[ -0.031170643866062164, 0.022597583010792732, 0.007862010970711708, 0.02837124466896057, 0.00827279407531023, -0.0194807481020689, 0.011999079026281834, -0.03165538236498833, -0.0014606995973736048, -0.0025634118355810642, 0.03899291530251503, -0.011670425534248352, 0.0651983842253685, -0.0...
0.003432
import { VersionBadge } from '/snippets/version-badge.mdx' Use this when you need to tell servers what local resources the client has access to. Roots inform servers about resources the client can provide. Servers can use this information to adjust behavior or provide more relevant responses. ## Static Roots Provide a ...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/roots.mdx
main
model-context-protocol-fastmcp
[ -0.0483899861574173, 0.01100338064134121, -0.03929745778441429, 0.016822248697280884, -0.00931889284402132, -0.1237461194396019, -0.07347074896097183, 0.036393310874700546, -0.0032201886642724276, -0.031165368854999542, 0.06463095545768738, 0.00782699417322874, 0.05827824026346207, -0.0193...
-0.051397
import { VersionBadge } from '/snippets/version-badge.mdx' The `fastmcp.Client` class provides a programmatic interface for interacting with any MCP server. It handles protocol details and connection management automatically, letting you focus on the operations you want to perform. The FastMCP Client is designed for de...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/client.mdx
main
model-context-protocol-fastmcp
[ -0.07498263567686081, -0.006124910898506641, -0.009951209649443626, 0.0035946958232671022, -0.04243266209959984, -0.11479940265417099, -0.037626851350069046, -0.0055473786778748035, -0.04923069104552269, -0.010250875726342201, 0.02485177293419838, 0.02026325836777687, 0.07468289136886597, ...
0.112727
FastMCP mcp = FastMCP(name="MyServer", instructions="Use the greet tool to say hello!") @mcp.tool def greet(name: str) -> str: """Greet a user by name.""" return f"Hello, {name}!" async with Client(mcp) as client: # Initialization already happened automatically print(f"Server: {client.initialize\_result.serverInfo.name...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/client.mdx
main
model-context-protocol-fastmcp
[ -0.09339859336614609, 0.026995239779353142, -0.0029440808575600386, 0.05807049572467804, -0.1031106486916542, -0.08673299103975296, 0.003854607231914997, 0.0069275470450520515, -0.01658550091087818, -0.05573765188455582, 0.0718580111861229, 0.013458199799060822, 0.049120303243398666, -0.03...
-0.032845
import { VersionBadge } from '/snippets/version-badge.mdx' Use this when you need to capture or process log messages sent by the server. MCP servers can emit log messages to clients. The client handles these through a log handler callback. ## Log Handler Provide a `log\_handler` function when creating the client: ```py...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/logging.mdx
main
model-context-protocol-fastmcp
[ -0.021359898149967194, 0.010567832738161087, 0.0635077953338623, 0.014947086572647095, 0.06822344660758972, -0.046541258692741394, 0.044542886316776276, -0.019776389002799988, -0.002237847540527582, 0.007309135515242815, 0.027787795290350914, -0.03435143455862999, 0.08436666429042816, -0.0...
0.001443
import { VersionBadge } from '/snippets/version-badge.mdx' Use this when you need to read data from server-exposed resources like configuration files, generated content, or external data sources. Resources are data sources exposed by MCP servers. They can be static files with fixed content, or dynamic templates that ge...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/resources.mdx
main
model-context-protocol-fastmcp
[ -0.009582867845892906, 0.05433626100420952, -0.01581498049199581, 0.04099063575267792, 0.060527700930833817, -0.01595335267484188, 0.013172969222068787, -0.012930044904351234, -0.04861827194690704, -0.028596511110663414, -0.05108927935361862, -0.013555388897657394, 0.10165156424045563, -0....
0.021509
import { VersionBadge } from "/snippets/version-badge.mdx"; Use this when you need to react to server-side changes like tool list updates or resource modifications. MCP servers can send notifications to inform clients about state changes. The message handler provides a unified way to process these notifications. ## Han...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/notifications.mdx
main
model-context-protocol-fastmcp
[ -0.04836685210466385, 0.024219227954745293, 0.09034544974565506, 0.03781944885849953, 0.07181333005428314, -0.020839793607592583, 0.06409971415996552, -0.03376109153032303, 0.01515587791800499, 0.017637822777032852, -0.017846692353487015, -0.036800567060709, 0.0783408135175705, -0.01232552...
0.033706
import { VersionBadge } from "/snippets/version-badge.mdx" Transports handle the underlying connection between your client and MCP servers. While the client can automatically select a transport based on what you pass to it, instantiating transports explicitly gives you full control over configuration. ## STDIO Transpor...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/transports.mdx
main
model-context-protocol-fastmcp
[ 0.027441365644335747, -0.001748938811942935, 0.0258459635078907, -0.025077758356928825, -0.010989341884851456, -0.04926080256700516, 0.004495266359299421, 0.02614564076066017, -0.022381622344255447, -0.02459600381553173, 0.008449540473520756, -0.022172987461090088, 0.07892794162034988, -0....
-0.036529
Tools are namespaced by server weather = await client.call\_tool("weather\_get\_forecast", {"city": "NYC"}) answer = await client.call\_tool("assistant\_ask", {"question": "What?"}) ``` ### Tool Transformations FastMCP supports tool transformations within the configuration. You can change names, descriptions, tags, and...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/transports.mdx
main
model-context-protocol-fastmcp
[ -0.0687873587012291, 0.04661695659160614, 0.012907745316624641, 0.11106165498495102, -0.01509888842701912, -0.1476319283246994, 0.009702172130346298, -0.05246715992689133, 0.01666141487658024, -0.03551246225833893, -0.019932106137275696, -0.0980299636721611, 0.042644649744033813, -0.002176...
-0.032041
import { VersionBadge } from "/snippets/version-badge.mdx" OAuth authentication is only relevant for HTTP-based transports and requires user interaction via a web browser. When your FastMCP client needs to access an MCP server protected by OAuth 2.1, and the process requires user interaction (like logging in and granti...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/auth/oauth.mdx
main
model-context-protocol-fastmcp
[ -0.08413687348365784, 0.05423731729388237, 0.009280248545110226, -0.05188567936420441, 0.007900016382336617, -0.06551436334848404, 0.002186516532674432, 0.03192633017897606, -0.007801018189638853, -0.07271309942007065, 0.016860581934452057, -0.0002224474010290578, 0.10617899149656296, -0.0...
-0.055865
to the MCP server. If the access token expires, the client will automatically use the refresh token to get a new access token. ## Token Storage By default, tokens are stored in memory and lost when your application restarts. For persistent storage, pass an `AsyncKeyValue`-compatible storage backend to the `token\_stora...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/auth/oauth.mdx
main
model-context-protocol-fastmcp
[ -0.08191315829753876, 0.0017019144725054502, -0.0017612570663914084, 0.029590819031000137, 0.0247808750718832, -0.04708242416381836, 0.017798012122511864, 0.036226920783519745, 0.06886425614356995, 0.011143608018755913, 0.021271629258990288, 0.06499477475881577, 0.10085266828536987, -0.048...
0.025478
import { VersionBadge } from "/snippets/version-badge.mdx" Bearer Token authentication is only relevant for HTTP-based transports. You can configure your FastMCP client to use \*\*bearer authentication\*\* by supplying a valid access token. This is most appropriate for service accounts, long-lived API keys, CI/CD, appl...
https://github.com/jlowin/fastmcp/blob/main//docs/clients/auth/bearer.mdx
main
model-context-protocol-fastmcp
[ -0.09900227189064026, 0.0736517384648323, -0.0030492148362100124, -0.055633947253227234, -0.01956663280725479, -0.03501017764210701, 0.03885091096162796, 0.00004822613118449226, -0.0037401560693979263, -0.052669789642095566, 0.03148674964904785, -0.002241556067019701, 0.1122540831565857, -...
0.009034
# `fastmcp.server.providers.base` Base Provider class for dynamic MCP components. This module provides the `Provider` abstraction for providing tools, resources, and prompts dynamically at runtime. Example: ```python from fastmcp import FastMCP from fastmcp.server.providers import Provider from fastmcp.tools import Too...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-base.mdx
main
model-context-protocol-fastmcp
[ -0.05328952521085739, -0.028497591614723206, -0.038580674678087234, 0.10827326774597168, -0.06406838446855545, -0.056417740881443024, 0.05156160145998001, 0.03292502835392952, -0.04704543203115463, -0.029851321130990982, 0.01788189820945263, -0.06584743410348892, 0.08572262525558472, -0.05...
-0.065209
```python get\_resource\_template(self, uri: str, version: VersionSpec | None = None) -> ResourceTemplate | None ``` Get resource template by transformed URI with all transforms applied. Note: This method does NOT filter disabled components. The Server (FastMCP) performs enabled filtering after all transforms complete....
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-base.mdx
main
model-context-protocol-fastmcp
[ -0.0006230596336536109, 0.10480695962905884, 0.0372137725353241, -0.027051618322730064, 0.03805457800626755, -0.013282732106745243, 0.003003461053594947, -0.05664434656500816, 0.015830283984541893, -0.07273658365011215, 0.005920178722590208, -0.023110011592507362, 0.0053492444567382336, -0...
-0.053957
# `fastmcp.server.tasks.keys` Task key management for SEP-1686 background tasks. Task keys encode security scoping and metadata in the Docket key format: `{session\_id}:{client\_task\_id}:{task\_type}:{component\_identifier}` This format provides: - Session-based security scoping (prevents cross-session access) - Task ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-tasks-keys.mdx
main
model-context-protocol-fastmcp
[ 0.017357585951685905, 0.10893771052360535, -0.04585160315036774, -0.02607731521129608, -0.00005806471745017916, -0.08288384228944778, 0.06874004751443863, 0.020693395286798477, 0.03811756521463394, 0.013376554474234581, -0.052023157477378845, -0.0800970122218132, 0.048581577837467194, 0.01...
0.013843
# `fastmcp.utilities.cli` ## Functions ### `is\_already\_in\_uv\_subprocess` ```python is\_already\_in\_uv\_subprocess() -> bool ``` Check if we're already running in a FastMCP uv subprocess. ### `load\_and\_merge\_config` ```python load\_and\_merge\_config(server\_spec: str | None, \*\*cli\_overrides) -> tuple[MCPServ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-cli.mdx
main
model-context-protocol-fastmcp
[ -0.06803622841835022, -0.028539935126900673, 0.024536967277526855, 0.0021792256738990545, 0.01932196319103241, -0.12638384103775024, -0.005167583469301462, 0.009840764105319977, -0.04784443974494934, -0.05123427137732506, 0.0627158060669899, -0.047207243740558624, 0.021617135033011436, -0....
-0.007756
# `fastmcp.settings` ## Classes ### `DocketSettings` Docket worker configuration. ### `ExperimentalSettings` ### `Settings` FastMCP settings. \*\*Methods:\*\* #### `get\_setting` ```python get\_setting(self, attr: str) -> Any ``` Get a setting. If the setting contains one or more `\_\_`, it will be treated as a nested ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-settings.mdx
main
model-context-protocol-fastmcp
[ -0.01475486345589161, 0.05942651256918907, 0.0071657276712358, 0.02900608815252781, -0.04644682630896568, -0.10981413722038269, 0.002409829758107662, -0.0037736084777861834, -0.08643169701099396, -0.04090176150202751, -0.005050152540206909, -0.03947615996003151, 0.07428717613220215, -0.021...
0.016052
# `fastmcp.server.auth.authorization` Authorization checks for FastMCP components. This module provides callable-based authorization for tools, resources, and prompts. Auth checks are functions that receive an AuthContext and return True to allow access or False to deny. Auth checks can also raise exceptions: - Authori...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-authorization.mdx
main
model-context-protocol-fastmcp
[ -0.08214764297008514, 0.05350043997168541, -0.0065634590573608875, -0.010924190282821655, 0.012181457132101059, -0.08048219233751297, 0.059642817825078964, -0.01440556813031435, -0.012222526594996452, -0.0010722114238888025, 0.08226986974477768, -0.0497429333627224, 0.09490909427404404, -0...
-0.024174
# `fastmcp.resources.resource` Base classes and interfaces for FastMCP resources. ## Classes ### `ResourceContent` Wrapper for resource content with optional MIME type and metadata. Accepts any value for content - strings and bytes pass through directly, other types (dict, list, BaseModel, etc.) are automatically JSON-...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-resources-resource.mdx
main
model-context-protocol-fastmcp
[ -0.060783714056015015, 0.018338588997721672, 0.023297658190131187, 0.035817328840494156, 0.005641402676701546, -0.06797433644533157, 0.020124860107898712, 0.03326966241002083, -0.04202086478471756, -0.05217355117201805, -0.0005537449615076184, -0.029491210356354713, 0.01508171483874321, 0....
0.040953
# `fastmcp.server.auth.providers.auth0` Auth0 OAuth provider for FastMCP. This module provides a complete Auth0 integration that's ready to use with just the configuration URL, client ID, client secret, audience, and base URL. Example: ```python from fastmcp import FastMCP from fastmcp.server.auth.providers.auth0 impor...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-providers-auth0.mdx
main
model-context-protocol-fastmcp
[ -0.09228615462779999, 0.06848437339067459, -0.025061195716261864, -0.036913447082042694, -0.011583865620195866, -0.04272771254181862, 0.004380348138511181, 0.01853763684630394, -0.03709623962640762, -0.04464751109480858, 0.06156492233276367, -0.03854016959667206, 0.09336282312870026, -0.01...
-0.04595
# `fastmcp.prompts.function\_prompt` Standalone @prompt decorator for FastMCP. ## Functions ### `prompt` ```python prompt(name\_or\_fn: str | Callable[..., Any] | None = None) -> Any ``` Standalone decorator to mark a function as an MCP prompt. Returns the original function with metadata attached. Register with a serve...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-prompts-function_prompt.mdx
main
model-context-protocol-fastmcp
[ -0.023715564981102943, 0.011584410443902016, 0.010648133233189583, 0.003536074422299862, -0.01899770461022854, -0.04625038802623749, 0.013281651772558689, 0.04008756950497627, -0.0338650718331337, -0.01656370982527733, 0.049422211945056915, -0.06996487826108932, 0.05078402906656265, -0.019...
0.02857
# `fastmcp.client.oauth\_callback` OAuth callback server for handling authorization code flows. This module provides a reusable callback server that can handle OAuth redirects and display styled responses to users. ## Functions ### `create\_callback\_html` ```python create\_callback\_html(message: str, is\_success: boo...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-oauth_callback.mdx
main
model-context-protocol-fastmcp
[ -0.1001778170466423, 0.08725915104150772, -0.020158208906650543, 0.02559041418135166, -0.023575080558657646, -0.12028596550226212, -0.024100488051772118, 0.010262253694236279, 0.05353866517543793, -0.1108388602733612, 0.007311217021197081, 0.009006631560623646, 0.04793035238981247, -0.0513...
-0.010971
# `fastmcp.server.auth.providers.azure` Azure (Microsoft Entra) OAuth provider for FastMCP. This provider implements Azure/Microsoft Entra ID OAuth authentication using the OAuth Proxy pattern for non-DCR OAuth flows. ## Classes ### `AzureProvider` Azure (Microsoft Entra) OAuth provider for FastMCP. This provider imple...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-providers-azure.mdx
main
model-context-protocol-fastmcp
[ -0.10252132266759872, 0.026411741971969604, -0.02041730470955372, 0.0023148844484239817, 0.00942306499928236, -0.01667470484972, 0.053302422165870667, -0.05854170024394989, 0.040017370134592056, 0.034129198640584946, 0.03074226900935173, -0.0070563992485404015, 0.08684352040290833, 0.01035...
0.032051
# `fastmcp.server.providers.skills` Skills providers for exposing agent skills as MCP resources. This module provides a two-layer architecture for skill discovery: - \*\*SkillProvider\*\*: Handles a single skill folder, exposing its files as resources. - \*\*SkillsDirectoryProvider\*\*: Scans a directory, creates a Ski...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-skills-__init__.mdx
main
model-context-protocol-fastmcp
[ -0.09626291692256927, -0.040395405143499374, -0.08321040123701096, 0.034117452800273895, -0.025955805554986, -0.029739562422037125, 0.054024837911129, 0.008230327628552914, -0.06565023213624954, -0.04816723242402077, 0.08034924417734146, 0.007948686368763447, -0.0034878093283623457, 0.0275...
0.022903
# `fastmcp.utilities.mcp\_server\_config.v1.mcp\_server\_config` FastMCP Configuration File Support. This module provides support for fastmcp.json configuration files that allow users to specify server settings in a declarative format instead of using command-line arguments. ## Functions ### `generate\_schema` ```pytho...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-mcp_server_config-v1-mcp_server_config.mdx
main
model-context-protocol-fastmcp
[ -0.08444283157587051, 0.016027502715587616, -0.010083545930683613, -0.009210331365466118, 0.0016901687486097217, -0.07875190675258636, -0.020864784717559814, -0.013070610351860523, -0.06713657081127167, -0.02287982776761055, 0.0911988914012909, -0.02254747599363327, 0.05185386538505554, 0....
0.081605
directory - `args`: Server arguments \*\*Returns:\*\* - MCPServerConfig instance #### `find\_config` ```python find\_config(cls, start\_path: Path | None = None) -> Path | None ``` Find a fastmcp.json file in the specified directory. \*\*Args:\*\* - `start\_path`: Directory to look in (defaults to current directory) \*...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-mcp_server_config-v1-mcp_server_config.mdx
main
model-context-protocol-fastmcp
[ -0.12735535204410553, 0.03205762803554535, -0.03451031073927879, 0.046037543565034866, 0.04045051336288452, -0.1055464968085289, -0.01719839498400688, 0.01638331077992916, -0.012443040497601032, -0.030648287385702133, 0.11664759367704391, -0.0069100926630198956, 0.05313483253121376, 0.0080...
-0.009341
# `fastmcp.cli.install.gemini\_cli` Gemini CLI integration for FastMCP install using Cyclopts. ## Functions ### `find\_gemini\_command` ```python find\_gemini\_command() -> str | None ``` Find the Gemini CLI command. ### `check\_gemini\_cli\_available` ```python check\_gemini\_cli\_available() -> bool ``` Check if Gemi...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-cli-install-gemini_cli.mdx
main
model-context-protocol-fastmcp
[ -0.08232394605875015, 0.018064208328723907, -0.0337374284863472, -0.05455061420798302, -0.02018296904861927, -0.08566629886627197, 0.013155197724699974, 0.005966848693788052, -0.014352093450725079, -0.05618477612733841, 0.06344784796237946, 0.013274352066218853, 0.0263232309371233, -0.0060...
-0.041572
# `fastmcp.server.apps` MCP Apps support โ€” extension negotiation and typed UI metadata models. Provides constants and Pydantic models for the MCP Apps extension (io.modelcontextprotocol/ui), enabling tools and resources to carry UI metadata for clients that support interactive app rendering. ## Functions ### `ui\_to\_m...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-apps.mdx
main
model-context-protocol-fastmcp
[ -0.07783829420804977, 0.01341661624610424, 0.021035341545939445, 0.03495097905397415, -0.015450221486389637, -0.10030829906463623, 0.024155989289283752, 0.07479098439216614, -0.031451210379600525, -0.028681635856628418, 0.029685968533158302, -0.07533235102891922, 0.030883746221661568, 0.05...
0.065017
# `fastmcp.server.providers.fastmcp\_provider` FastMCPProvider for wrapping FastMCP servers as providers. This module provides the `FastMCPProvider` class that wraps a FastMCP server and exposes its components through the Provider interface. It also provides FastMCPProvider\* component classes that delegate execution t...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-fastmcp_provider.mdx
main
model-context-protocol-fastmcp
[ -0.1135493665933609, -0.009903393685817719, 0.008967817761003971, 0.014703918248414993, 0.018126163631677628, -0.11642079800367355, -0.01570027507841587, -0.011354769580066204, -0.02842150628566742, -0.020170174539089203, 0.05334991216659546, 0.0241289883852005, 0.0258511733263731, -0.0372...
0.100532
server's middleware chain. This ensures middleware runs when components are executed. \*\*Methods:\*\* #### `get\_tasks` ```python get\_tasks(self) -> Sequence[FastMCPComponent] ``` Return task-eligible components from the mounted server. Returns the child's ACTUAL components (not wrapped) so their actual functions get...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-fastmcp_provider.mdx
main
model-context-protocol-fastmcp
[ -0.07513923943042755, 0.0028081494383513927, -0.0025093245785683393, 0.019803032279014587, 0.010095597244799137, -0.1125723123550415, -0.051511671394109726, 0.01723838783800602, 0.02968619391322136, -0.017801495268940926, 0.036637794226408005, 0.024208977818489075, 0.01898663118481636, -0....
0.117042
# `fastmcp.client.messages` ## Classes ### `MessageHandler` This class is used to handle MCP messages sent to the client. It is used to handle all messages, requests, notifications, and exceptions. Users can override any of the hooks \*\*Methods:\*\* #### `dispatch` ```python dispatch(self, message: Message) -> None ``...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-messages.mdx
main
model-context-protocol-fastmcp
[ -0.0549747459590435, 0.013027037493884563, 0.07310865819454193, 0.05273676663637161, -0.001502923434600234, -0.08869583904743195, 0.06792964786291122, -0.0008603265741840005, 0.008767394348978996, -0.006682313978672028, 0.047953397035598755, -0.0058657266199588776, 0.012569188140332699, -0...
0.158598
# `fastmcp.server.auth.providers.oci` OCI OIDC provider for FastMCP. The pull request for the provider is submitted to fastmcp. This module provides OIDC Implementation to integrate MCP servers with OCI. You only need OCI Identity Domain's discovery URL, client ID, client secret, and base URL. Post Authentication, you ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-providers-oci.mdx
main
model-context-protocol-fastmcp
[ -0.1191052794456482, -0.0007695790845900774, -0.03116152249276638, 0.00331958569586277, -0.019149037078022957, -0.12087126076221466, 0.046524036675691605, 0.044664133340120316, 0.03582550585269928, -0.010130570270121098, 0.01873137056827545, -0.05896255001425743, 0.04118357598781586, -0.03...
0.061469
# `fastmcp.cli.run` FastMCP run command implementation with enhanced type hints. ## Functions ### `is\_url` ```python is\_url(path: str) -> bool ``` Check if a string is a URL. ### `create\_client\_server` ```python create\_client\_server(url: str) -> Any ``` Create a FastMCP server from a client URL. \*\*Args:\*\* - `...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-cli-run.mdx
main
model-context-protocol-fastmcp
[ -0.04496348649263382, 0.000744256132747978, -0.025378573685884476, -0.03300335258245468, -0.07338928431272507, -0.08178036659955978, -0.055207509547472, 0.01651700772345066, -0.01702803000807762, -0.053567223250865936, 0.031237363815307617, -0.028713908046483994, 0.06602703779935837, 0.009...
-0.057648
# `fastmcp.cli.install.goose` Goose integration for FastMCP install using Cyclopts. ## Functions ### `generate\_goose\_deeplink` ```python generate\_goose\_deeplink(name: str, command: str, args: list[str]) -> str ``` Generate a Goose deeplink for installing an MCP extension. \*\*Args:\*\* - `name`: Human-readable disp...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-cli-install-goose.mdx
main
model-context-protocol-fastmcp
[ -0.11369320005178452, -0.0027295053005218506, 0.009569323621690273, 0.009916355833411217, 0.0048036398366093636, -0.1011093258857727, -0.0233391672372818, 0.02197820134460926, -0.011795848608016968, -0.07885576784610748, 0.09210897982120514, -0.03332240507006645, 0.021107729524374008, 0.00...
-0.050228
# `fastmcp.server.auth.auth` ## Classes ### `AccessToken` AccessToken that includes all JWT claims. ### `TokenHandler` TokenHandler that returns MCP-compliant error responses. This handler addresses two SDK issues: 1. Error code: The SDK returns `unauthorized\_client` for client authentication failures, but RFC 6749 Se...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-auth.mdx
main
model-context-protocol-fastmcp
[ -0.1394999474287033, 0.03322501480579376, 0.06910273432731628, -0.010610761120915413, 0.028176479041576385, -0.04971134290099144, -0.03889555111527443, 0.0031249362509697676, -0.007330754306167364, -0.020413368940353394, -0.005886758677661419, -0.0007403033669106662, 0.07024608552455902, -...
0.005753
server functionality. Token verifiers typically don't provide authentication routes by default. \*\*Methods:\*\* #### `scopes\_supported` ```python scopes\_supported(self) -> list[str] ``` Scopes to advertise in OAuth metadata. Defaults to required\_scopes. Override in subclasses when the advertised scopes differ from ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-auth.mdx
main
model-context-protocol-fastmcp
[ -0.10073205828666687, -0.011541755869984627, 0.00392197398468852, 0.010404259897768497, 0.00029131321934983134, -0.11225625872612, -0.006708033848553896, 0.018082624301314354, -0.00004899600753560662, 0.008002015762031078, -0.028492126613855362, 0.00428650202229619, 0.07448486238718033, 0....
0.06744
# `fastmcp.server.transforms.namespace` Namespace transform for prefixing component names. ## Classes ### `Namespace` Prefixes component names with a namespace. - Tools: name โ†’ namespace\_name - Prompts: name โ†’ namespace\_name - Resources: protocol://path โ†’ protocol://namespace/path - Resource Templates: same as resour...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-transforms-namespace.mdx
main
model-context-protocol-fastmcp
[ -0.07564722746610641, -0.0001474687160225585, -0.02756388671696186, 0.00754014914855361, -0.07354027032852173, -0.06686710566282272, 0.019663112238049507, -0.022057650610804558, -0.008173773996531963, -0.05775710567831993, 0.029886780306696892, -0.06383012980222702, 0.044532861560583115, 0...
-0.031657
# `fastmcp.server.auth.providers.workos` WorkOS authentication providers for FastMCP. This module provides two WorkOS authentication strategies: 1. WorkOSProvider - OAuth proxy for WorkOS Connect applications (non-DCR) 2. AuthKitProvider - DCR-compliant provider for WorkOS AuthKit Choose based on your WorkOS setup and ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-providers-workos.mdx
main
model-context-protocol-fastmcp
[ -0.11533142626285553, 0.04491282254457474, -0.026603106409311295, -0.03865653648972511, 0.014413552358746529, -0.11795638501644135, 0.019526686519384384, 0.024004802107810974, -0.0018188604153692722, -0.053182218223810196, 0.046526115387678146, -0.03490787744522095, 0.025216056033968925, 0...
0.062569
# `fastmcp.server.auth.providers.descope` Descope authentication provider for FastMCP. This module provides DescopeProvider - a complete authentication solution that integrates with Descope's OAuth 2.1 and OpenID Connect services, supporting Dynamic Client Registration (DCR) for seamless MCP client authentication. ## C...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-providers-descope.mdx
main
model-context-protocol-fastmcp
[ -0.11904096603393555, 0.017701849341392517, 0.018105067312717438, -0.01824048161506653, -0.029703591018915176, -0.049231138080358505, -0.034044794738292694, 0.0378541424870491, 0.017734182998538017, -0.04183562099933624, 0.0005528287147171795, -0.025470377877354622, 0.07083452492952347, -0...
-0.075027
# `fastmcp.server.auth.providers.google` Google OAuth provider for FastMCP. This module provides a complete Google OAuth integration that's ready to use with just a client ID and client secret. It handles all the complexity of Google's OAuth flow, token validation, and user management. Example: ```python from fastmcp i...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-providers-google.mdx
main
model-context-protocol-fastmcp
[ -0.16804403066635132, 0.001956297317519784, 0.04340442270040512, -0.04065994545817375, 0.004815843887627125, -0.06970247626304626, 0.03393426537513733, 0.007858830504119396, -0.030249586328864098, -0.05597402900457382, 0.02393432706594467, -0.047248709946870804, 0.08748938143253326, -0.106...
-0.059449
# `fastmcp.utilities.mcp\_server\_config.v1.sources.base` ## Classes ### `Source` Abstract base class for all source types. \*\*Methods:\*\* #### `prepare` ```python prepare(self) -> None ``` Prepare the source (download, clone, install, etc). For sources that need preparation (e.g., git clone, download), this method p...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-mcp_server_config-v1-sources-base.mdx
main
model-context-protocol-fastmcp
[ -0.0632481575012207, 0.0032075822819024324, 0.02429063245654106, 0.02598317712545395, 0.005922559183090925, -0.10620962828397751, -0.012587654404342175, 0.001643235213123262, -0.07051526755094528, -0.016731765121221542, 0.07532107084989548, -0.013731041923165321, 0.06591275334358215, -0.08...
-0.050109
# `fastmcp.server.elicitation` ## Functions ### `parse\_elicit\_response\_type` ```python parse\_elicit\_response\_type(response\_type: Any) -> ElicitConfig ``` Parse response\_type into schema and handling configuration. Supports multiple syntaxes: - None: Empty object schema, expect empty response - dict: `{"low": {"...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-elicitation.mdx
main
model-context-protocol-fastmcp
[ -0.01935773715376854, -0.011153708212077618, 0.08845526725053787, 0.00596016738563776, -0.025921951979398727, -0.06169497221708298, 0.050572920590639114, -0.0043717361986637115, -0.026439964771270752, -0.019749833270907402, 0.03624189645051956, -0.14635120332241058, 0.004821759648621082, -...
0.04436
# `fastmcp.server.providers.proxy` ProxyProvider for proxying to remote MCP servers. This module provides the `ProxyProvider` class that proxies components from a remote MCP server via a client factory. It also provides proxy component classes that forward execution to remote servers. ## Functions ### `default\_proxy\_...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-proxy.mdx
main
model-context-protocol-fastmcp
[ -0.07972792536020279, -0.052734434604644775, 0.0411192812025547, 0.024990353733301163, -0.022144919261336327, -0.06898900121450424, -0.01820390671491623, 0.018031826242804527, -0.0367102324962616, 0.061678916215896606, 0.030938757583498955, 0.033222369849681854, 0.051080122590065, -0.00696...
0.002222
``` Return empty list since proxy components don't support tasks. Override the base implementation to avoid calling list\_tools() during server lifespan initialization, which would open the client before any context is set. All Proxy\* components have task\_config.mode="forbidden". ### `FastMCPProxy` A FastMCP server t...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-proxy.mdx
main
model-context-protocol-fastmcp
[ -0.11344543099403381, -0.02427193894982338, 0.035595331341028214, 0.02228100784122944, -0.03536561504006386, -0.04072893410921097, 0.04591929167509079, -0.002430591033771634, -0.02364569716155529, 0.06207107752561569, -0.03119114600121975, 0.0365338996052742, 0.06373590975999832, 0.0130656...
0.024438
# `fastmcp.server.transforms.resources\_as\_tools` Transform that exposes resources as tools. This transform generates tools for listing and reading resources, enabling clients that only support tools to access resource functionality. Example: ```python from fastmcp import FastMCP from fastmcp.server.transforms import ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-transforms-resources_as_tools.mdx
main
model-context-protocol-fastmcp
[ -0.13260546326637268, 0.04057811200618744, -0.051769714802503586, 0.05456201359629631, 0.007601168472319841, -0.08915600925683975, 0.04232775419950485, -0.03391493111848831, -0.0034106781240552664, -0.05733371526002884, 0.009010366164147854, 0.015086655505001545, 0.05417189002037048, -0.01...
0.049469
# `fastmcp.server.sampling.run` Sampling types and helper functions for FastMCP servers. ## Functions ### `determine\_handler\_mode` ```python determine\_handler\_mode(context: Context, needs\_tools: bool) -> bool ``` Determine whether to use fallback handler or client for sampling. \*\*Args:\*\* - `context`: The MCP c...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-sampling-run.mdx
main
model-context-protocol-fastmcp
[ -0.11214886605739594, -0.011541111394762993, 0.02703886851668358, 0.038783423602581024, 0.036758068948984146, -0.10066249966621399, 0.051614973694086075, 0.006867783609777689, 0.016729960218071938, -0.029838914051651955, 0.025585098192095757, -0.04422881081700325, 0.045072637498378754, -0....
0.02283
# `fastmcp.utilities.inspect` Utilities for inspecting FastMCP instances. ## Functions ### `inspect\_fastmcp\_v2` ```python inspect\_fastmcp\_v2(mcp: FastMCP[Any]) -> FastMCPInfo ``` Extract information from a FastMCP v2.x instance. \*\*Args:\*\* - `mcp`: The FastMCP v2.x instance to inspect \*\*Returns:\*\* - FastMCPI...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-inspect.mdx
main
model-context-protocol-fastmcp
[ -0.11086124181747437, 0.02932647243142128, 0.02308170311152935, 0.006565198302268982, 0.06716662645339966, -0.11246386915445328, 0.01710679940879345, -0.03698452562093735, -0.004788902588188648, -0.09222446382045746, 0.08053518086671829, -0.025460757315158844, 0.004147636704146862, -0.0894...
0.010306
# `fastmcp.server.auth.providers.aws` AWS Cognito OAuth provider for FastMCP. This module provides a complete AWS Cognito OAuth integration that's ready to use with a user pool ID, domain prefix, client ID and client secret. It handles all the complexity of AWS Cognito's OAuth flow, token validation, and user managemen...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-providers-aws.mdx
main
model-context-protocol-fastmcp
[ -0.05780573934316635, 0.048256803303956985, -0.036063920706510544, -0.04457833990454674, 0.009492466226220131, -0.04215556010603905, 0.04259401187300682, -0.03740827739238739, 0.0440092459321022, 0.002510292688384652, 0.04584205523133278, -0.11186497658491135, 0.04257458820939064, -0.03945...
0.002243
# `fastmcp.resources.template` Resource template functionality. ## Functions ### `extract\_query\_params` ```python extract\_query\_params(uri\_template: str) -> set[str] ``` Extract query parameter names from RFC 6570 `{?param1,param2}` syntax. ### `build\_regex` ```python build\_regex(template: str) -> re.Pattern ```...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-resources-template.mdx
main
model-context-protocol-fastmcp
[ -0.0913529098033905, 0.08580920100212097, 0.03850117698311806, 0.001604896504431963, -0.011041763238608837, -0.026577966287732124, -0.012751879170536995, 0.007034083362668753, -0.029751811176538467, -0.0653763860464096, -0.02867523580789566, -0.05878933146595955, 0.03962186723947525, 0.021...
-0.013721
user's Depends parameters for docket to resolve. #### `add\_to\_docket` ```python add\_to\_docket(self, docket: Docket, params: dict[str, Any], \*\*kwargs: Any) -> Execution ``` Schedule this template for background execution via docket. FunctionResourceTemplate splats the params dict since .fn expects \*\*kwargs. \*\*...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-resources-template.mdx
main
model-context-protocol-fastmcp
[ -0.02471093460917473, 0.09353792667388916, -0.04084569215774536, -0.02185807377099991, -0.04771169647574425, -0.07684392482042313, 0.038466814905405045, 0.06419311463832855, 0.046165045350790024, -0.00913252029567957, -0.08541370928287506, -0.04322769492864609, -0.02958715707063675, -0.013...
0.013351
# `fastmcp.utilities.openapi.parser` OpenAPI parsing logic for converting OpenAPI specs to HTTPRoute objects. ## Functions ### `parse\_openapi\_to\_http\_routes` ```python parse\_openapi\_to\_http\_routes(openapi\_dict: dict[str, Any]) -> list[HTTPRoute] ``` Parses an OpenAPI schema dictionary into a list of HTTPRoute ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-openapi-parser.mdx
main
model-context-protocol-fastmcp
[ -0.048936955630779266, 0.017775796353816986, -0.016900742426514626, 0.009044976904988289, -0.021011970937252045, -0.14104515314102173, -0.06593553721904755, -0.013651209883391857, -0.060952045023441315, -0.03951283544301987, 0.03132742643356323, -0.05953917279839516, -0.008437417447566986, ...
0.039089
# `fastmcp.cli.install.stdio` Stdio command generation for FastMCP install using Cyclopts. ## Functions ### `install\_stdio` ```python install\_stdio(file: Path, server\_object: str | None) -> bool ``` Generate the stdio command for running a FastMCP server. \*\*Args:\*\* - `file`: Path to the server file - `server\_ob...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-cli-install-stdio.mdx
main
model-context-protocol-fastmcp
[ -0.047441743314266205, 0.020221825689077377, -0.010939870961010456, 0.0004933414165861905, -0.014194007962942123, -0.07070576399564743, -0.007665966637432575, 0.011252588592469692, -0.04076661542057991, -0.02731347270309925, 0.08211597055196762, -0.08356951177120209, 0.04742661491036415, -...
-0.025462
# `fastmcp.utilities.mcp\_server\_config.v1.environments.uv` ## Classes ### `UVEnvironment` Configuration for Python environment setup. \*\*Methods:\*\* #### `build\_command` ```python build\_command(self, command: list[str]) -> list[str] ``` Build complete uv run command with environment args and command to execute. \...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-mcp_server_config-v1-environments-uv.mdx
main
model-context-protocol-fastmcp
[ -0.04355213791131973, 0.027011215686798096, 0.014366954565048218, 0.02503821812570095, -0.033343344926834106, -0.10095945000648499, -0.04122499004006386, 0.05055004730820656, -0.10271011292934418, -0.0005787825211882591, 0.06393270939588547, -0.0914398729801178, 0.08805232495069504, -0.000...
-0.069005
# `fastmcp.server.sampling.sampling\_tool` SamplingTool for use during LLM sampling requests. ## Classes ### `SamplingTool` A tool that can be used during LLM sampling. SamplingTools bundle a tool's schema (name, description, parameters) with an executor function, enabling servers to execute agentic workflows where the...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-sampling-sampling_tool.mdx
main
model-context-protocol-fastmcp
[ -0.08841132372617722, 0.004036297556012869, -0.02596215531229973, 0.0303578469902277, -0.014011682942509651, -0.09663313627243042, 0.041210345923900604, 0.02578139305114746, 0.019754813984036446, -0.04561945050954819, 0.006353299133479595, -0.09253742545843124, 0.03877641633152962, -0.0456...
0.032021
# `fastmcp.server.providers.local\_provider.local\_provider` LocalProvider for locally-defined MCP components. This module provides the `LocalProvider` class that manages tools, resources, templates, and prompts registered via decorators or direct methods. LocalProvider can be used standalone and attached to multiple s...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-local_provider-local_provider.mdx
main
model-context-protocol-fastmcp
[ -0.06410069018602371, 0.005009709391742945, 0.010025263763964176, 0.027494197711348534, -0.03670721501111984, -0.0590740442276001, -0.0014925131108611822, 0.0050835455767810345, -0.02835450880229473, -0.041790131479501724, 0.07181042432785034, -0.0419803112745285, 0.058239489793777466, -0....
-0.036106
# `fastmcp.utilities.lifespan` Lifespan utilities for combining async context manager lifespans. ## Functions ### `combine\_lifespans` ```python combine\_lifespans(\*lifespans: Callable[[AppT], AbstractAsyncContextManager[Mapping[str, Any] | None]]) -> Callable[[AppT], AbstractAsyncContextManager[dict[str, Any]]] ``` C...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-lifespan.mdx
main
model-context-protocol-fastmcp
[ -0.11577016115188599, -0.009959091432392597, -0.0020576335955411196, 0.013236211612820625, -0.009216038510203362, -0.10383523255586624, -0.07889635860919952, 0.01871415600180626, -0.036294497549533844, -0.04845278337597847, 0.08984483033418655, -0.07351310551166534, 0.06246989220380783, -0...
0.027283
# `fastmcp.tools.tool\_transform` ## Functions ### `forward` ```python forward(\*\*kwargs: Any) -> ToolResult ``` Forward to parent tool with argument transformation applied. This function can only be called from within a transformed tool's custom function. It applies argument transformation (renaming, validation) befo...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-tools-tool_transform.mdx
main
model-context-protocol-fastmcp
[ -0.10859666019678116, -0.013425160199403763, -0.017377762123942375, -0.00408886419609189, -0.07226423919200897, -0.058139950037002563, -0.026392072439193726, -0.017765838652849197, 0.031132744625210762, -0.018364032730460167, 0.06042845547199249, -0.05060584470629692, 0.04800597205758095, ...
0.007069
type=int) ``` ### `ArgTransformConfig` A model for requesting a single argument transform. \*\*Methods:\*\* #### `to\_arg\_transform` ```python to\_arg\_transform(self) -> ArgTransform ``` Convert the argument transform to a FastMCP argument transform. ### `TransformedTool` A tool that is transformed from another tool....
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-tools-tool_transform.mdx
main
model-context-protocol-fastmcp
[ -0.13663439452648163, 0.018503427505493164, -0.07741543650627136, 0.03716231882572174, -0.05141672492027283, -0.08581176400184631, -0.015400119125843048, 0.02034652791917324, -0.0005135620012879372, -0.03713584691286087, 0.02773645520210266, -0.01627330668270588, 0.01642500050365925, -0.00...
0.180582
with partial transforms ```python async def custom(x: int, y: int) -> str: result = await forward(x=x, y=y) return f"Custom: {result}" Tool.from\_tool(parent, transform\_fn=custom, transform\_args={"a": "x", "b": "y"}) ``` # Using \*\*kwargs (gets all args, transformed and untransformed) ```python async def flexible(\*...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-tools-tool_transform.mdx
main
model-context-protocol-fastmcp
[ -0.06486786156892776, 0.05720103532075882, -0.02486041747033596, 0.09383837133646011, -0.10543130338191986, -0.007501169107854366, -0.043453846126794815, 0.003901062998920679, 0.010499374940991402, -0.05597333237528801, 0.002299326239153743, -0.05927775800228119, -0.014130442403256893, 0.0...
-0.01801
# `fastmcp.server.transforms.version\_filter` Version filter transform for filtering components by version range. ## Classes ### `VersionFilter` Filters components by version range. When applied to a provider or server, only components within the version range are visible. Within that filtered set, the highest version ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-transforms-version_filter.mdx
main
model-context-protocol-fastmcp
[ -0.023078378289937973, 0.018398413434624672, 0.08237297832965851, -0.04828593507409096, 0.030389508232474327, -0.04154828190803528, -0.03812047839164734, -0.07333189994096756, -0.013293790630996227, -0.05163700133562088, 0.031076161190867424, -0.02514628693461418, -0.021912802010774612, -0...
-0.098224
# `fastmcp.server.low\_level` ## Classes ### `MiddlewareServerSession` ServerSession that routes initialization requests through FastMCP middleware. \*\*Methods:\*\* #### `fastmcp` ```python fastmcp(self) -> FastMCP ``` Get the FastMCP instance. #### `client\_supports\_extension` ```python client\_supports\_extension(s...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-low_level.mdx
main
model-context-protocol-fastmcp
[ -0.05864966660737991, -0.02169322967529297, 0.058870211243629456, 0.003243006533011794, 0.032329097390174866, -0.10748758167028427, -0.0457550510764122, 0.04450659826397896, -0.03431357815861702, -0.049240708351135254, 0.04628455266356468, -0.0110017666593194, 0.046739913523197174, 0.01975...
0.069894
# `fastmcp.server.dependencies` Dependency injection for FastMCP. DI features (Depends, CurrentContext, CurrentFastMCP) work without pydocket using a vendored DI engine. Only task-related dependencies (CurrentDocket, CurrentWorker) and background task execution require fastmcp[tasks]. ## Functions ### `get\_task\_conte...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-dependencies.mdx
main
model-context-protocol-fastmcp
[ -0.06593040376901627, 0.04529588297009468, -0.010003210045397282, -0.0075839851051568985, 0.04483983293175697, -0.08346056938171387, 0.05076756700873375, -0.004614830482751131, 0.029477711766958237, -0.03290465846657753, -0.019251279532909393, -0.04517368972301483, 0.009065828286111355, 0....
0.033236
Returns a wrapper that excludes Context and Docket dependency parameters, making it safe to use with Pydantic TypeAdapter for schema generation and validation. The wrapper internally handles all dependency resolution and Context injection when called. Handles: - Legacy Context injection (always works) - Depends() injec...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-dependencies.mdx
main
model-context-protocol-fastmcp
[ -0.1269742101430893, 0.0707249641418457, -0.02891356870532036, -0.005549830384552479, 0.03475838527083397, -0.06916006654500961, 0.010006717406213284, 0.016404902562499046, -0.027306508272886276, -0.06026873365044594, 0.038826242089271545, -0.07191150635480881, 0.02778538130223751, 0.02548...
0.008461
if no authentication is present. \*\*Returns:\*\* - A dependency that resolves to the active AccessToken \*\*Raises:\*\* - `RuntimeError`: If no authenticated user (use get\_access\_token() for optional) ## Classes ### `TaskContextInfo` Information about the current background task context. Returned by ``get\_task\_con...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-dependencies.mdx
main
model-context-protocol-fastmcp
[ -0.043090593069791794, 0.08402768522500992, -0.0369243286550045, -0.010014181956648827, -0.0016503221122547984, -0.0831926017999649, 0.06474579870700836, 0.02286539040505886, 0.003327016718685627, 0.026176802814006805, -0.07155404984951019, -0.05325101688504219, 0.019985008984804153, -0.00...
0.106442
# `fastmcp.server.tasks.capabilities` SEP-1686 task capabilities declaration. ## Functions ### `get\_task\_capabilities` ```python get\_task\_capabilities() -> ServerTasksCapability | None ``` Return the SEP-1686 task capabilities. Returns task capabilities as a first-class ServerCapabilities field, declaring support f...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-tasks-capabilities.mdx
main
model-context-protocol-fastmcp
[ -0.007931324653327465, 0.0015833076322451234, -0.03484436497092247, -0.00739532895386219, -0.0013476178282871842, -0.05239846557378769, -0.0044378782622516155, -0.009760028682649136, 0.0014832488959655166, -0.03134618327021599, 0.002523399656638503, -0.026803363114595413, 0.03251467272639274...
0.029501
# `fastmcp.server.server` FastMCP - A more ergonomic interface for MCP servers. ## Functions ### `default\_lifespan` ```python default\_lifespan(server: FastMCP[LifespanResultT]) -> AsyncIterator[Any] ``` Default lifespan context manager that does nothing. \*\*Args:\*\* - `server`: The server instance this lifespan is ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-server.mdx
main
model-context-protocol-fastmcp
[ -0.11688899993896484, -0.0061318050138652325, -0.0054395138286054134, 0.022830277681350708, -0.08756235986948013, -0.0843522846698761, -0.013441041111946106, -0.0015199379995465279, -0.04606301337480545, -0.013914273120462894, 0.026400770992040634, 0.01870504580438137, 0.06938212364912033, ...
0.016739