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
add visibility filtering, auth filtering, and middleware execution. Returns all versions (no deduplication). Protocol handlers deduplicate for MCP wire format. #### `get\_resource` ```python get\_resource(self, uri: str, version: VersionSpec | None = None) -> Resource | None ``` Get a resource by URI, filtering disable...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-server.mdx
main
model-context-protocol-fastmcp
[ -0.11621801555156708, 0.09790755808353424, 0.039291493594646454, -0.014195119962096214, 0.06325608491897583, -0.0471966378390789, 0.04104336351156235, -0.04273708537220955, -0.032666224986314774, -0.010506605729460716, -0.012939566746354103, -0.0015820717671886086, -0.00525522930547595, 0....
0.060522
execute synchronously and return ResourceResult. \*\*Returns:\*\* - ResourceResult when task\_meta is None. - CreateTaskResult when task\_meta is provided. \*\*Raises:\*\* - `NotFoundError`: If resource not found or disabled - `ResourceError`: If resource read fails #### `render\_prompt` ```python render\_prompt(self, ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-server.mdx
main
model-context-protocol-fastmcp
[ 0.030592596158385277, -0.005629370920360088, -0.03433708846569061, 0.06746315956115723, 0.0044016288593411446, -0.05965910106897354, 0.027378302067518234, 0.013398397713899612, 0.025416603311896324, -0.00338892824947834, -0.052906036376953125, -0.08612692356109619, 0.0585043802857399, -0.0...
0.00454
-> str: return str(x) @server.tool("custom\_name") def my\_tool(x: int) -> str: return str(x) @server.tool(name="custom\_name") def my\_tool(x: int) -> str: return str(x) # Direct function call server.tool(my\_function, name="custom\_name") ``` #### `add\_resource` ```python add\_resource(self, resource: Resource | Cal...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-server.mdx
main
model-context-protocol-fastmcp
[ -0.05900706723332405, 0.02027883008122444, -0.060939572751522064, 0.05696921795606613, -0.09598364681005478, -0.06685981899499893, 0.04456351324915886, 0.008659343235194683, 0.0007294741808436811, -0.017710722982883453, -0.011367850936949253, -0.03771203011274338, 0.05124282091856003, -0.0...
0.021973
Examples: ```python @server.prompt def analyze\_table(table\_name: str) -> list[Message]: schema = read\_table\_schema(table\_name) return [ { "role": "user", "content": f"Analyze this schema: {schema}" } ] @server.prompt() async def analyze\_with\_context(table\_name: str, ctx: Context) -> list[Message]: await ctx.inf...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-server.mdx
main
model-context-protocol-fastmcp
[ 0.02946026623249054, 0.046980321407318115, -0.09777100384235382, 0.09737082570791245, -0.00480602728202939, -0.07177496701478958, 0.09443747997283936, 0.032299239188432693, -0.04576791450381279, 0.004630181938409805, 0.01483642216771841, -0.05993696302175522, 0.045069266110658646, 0.068846...
0.074759
tool named "get\_weather", it will be available as "prefix\_get\_weather" - The resources are imported with prefixed URIs using the new format Example: If server has a resource with URI "weather://forecast", it will be available as "weather://prefix/forecast" - The templates are imported with prefixed URI templates usi...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-server.mdx
main
model-context-protocol-fastmcp
[ -0.07769177109003067, 0.028792252764105797, 0.014681941829621792, 0.025578610599040985, -0.003359398106113076, -0.07656662166118622, 0.009380428120493889, -0.03457751125097275, 0.04059908539056778, -0.03356136009097099, 0.01275329478085041, -0.05115252733230591, 0.06560109555721283, -0.045...
0.045576
-> str ```
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-server.mdx
main
model-context-protocol-fastmcp
[ -0.0290550347417593, 0.06010303646326065, -0.041053760796785355, -0.010153709910809994, -0.06419321894645691, -0.0330030731856823, 0.030700022354722023, 0.05000213533639908, 0.04461671784520149, -0.027621088549494743, 0.09617675095796585, -0.0034695679787546396, 0.03421406447887421, -0.012...
0.05525
# `fastmcp.server.auth.oauth\_proxy.ui` OAuth Proxy UI Generation Functions. This module contains HTML generation functions for consent and error pages. ## Functions ### `create\_consent\_html` ```python create\_consent\_html(client\_id: str, redirect\_uri: str, scopes: list[str], txn\_id: str, csrf\_token: str, client...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-oauth_proxy-ui.mdx
main
model-context-protocol-fastmcp
[ -0.07965909689664841, 0.10839710384607315, -0.05573226884007454, 0.00878238957375288, 0.027216117829084396, -0.1096157357096672, -0.03244263678789139, -0.011859055608510971, 0.027931440621614456, -0.041210003197193146, 0.04410802572965622, -0.013628245331346989, 0.07945482432842255, -0.042...
0.002353
# `fastmcp.server.tasks.config` TaskConfig for MCP SEP-1686 background task execution modes. This module defines the configuration for how tools, resources, and prompts handle task-augmented execution as specified in SEP-1686. ## Classes ### `TaskMeta` Metadata for task-augmented execution requests. When passed to call...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-tasks-config.mdx
main
model-context-protocol-fastmcp
[ -0.014289003796875477, 0.015184744261205196, -0.012874681502580643, 0.01650380901992321, 0.005977356340736151, -0.07606814056634903, -0.0005048984312452376, -0.03313485160470009, 0.039278823882341385, 0.024739781394600868, -0.030737509950995445, -0.043773453682661057, -0.010256046429276466, ...
0.067924
# `fastmcp.prompts.prompt` Base classes for FastMCP prompts. ## Classes ### `Message` Wrapper for prompt message with auto-serialization. Accepts any content - strings pass through, other types (dict, list, BaseModel) are JSON-serialized to text. \*\*Methods:\*\* #### `to\_mcp\_prompt\_message` ```python to\_mcp\_promp...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-prompts-prompt.mdx
main
model-context-protocol-fastmcp
[ 0.01468337420374155, 0.025515886023640633, 0.04365166276693344, -0.0030977418646216393, 0.017821872606873512, -0.04569462314248085, 0.041517022997140884, 0.05841502547264099, -0.04310351982712746, -0.033574655652046204, 0.0409286804497242, -0.09036143124103546, 0.08117219805717468, 0.01125...
0.020449
# `fastmcp.server.telemetry` Server-side telemetry helpers. ## Functions ### `get\_auth\_span\_attributes` ```python get\_auth\_span\_attributes() -> dict[str, str] ``` Get auth attributes for the current request, if authenticated. ### `get\_session\_span\_attributes` ```python get\_session\_span\_attributes() -> dict[...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-telemetry.mdx
main
model-context-protocol-fastmcp
[ -0.06618721783161163, 0.07842595875263214, 0.022910160943865776, 0.022234566509723663, -0.014750613830983639, -0.14509786665439606, 0.05365637689828873, -0.014146554283797741, -0.009567889384925365, -0.00840009469538927, 0.05738626420497894, -0.057690203189849854, 0.05973538011312485, -0.0...
-0.027361
# `fastmcp.server.http` ## Functions ### `set\_http\_request` ```python set\_http\_request(request: Request) -> Generator[Request, None, None] ``` ### `create\_base\_app` ```python create\_base\_app(routes: list[BaseRoute], middleware: list[Middleware], debug: bool = False, lifespan: Callable | None = None) -> Starlett...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-http.mdx
main
model-context-protocol-fastmcp
[ -0.11047492921352386, -0.03590461239218712, -0.03884560614824295, 0.02298828959465027, 0.011433418840169907, -0.11102151870727539, -0.06534752249717712, 0.03171572834253311, -0.04828404635190964, 0.008060971274971962, 0.014107471331954002, -0.015623022802174091, 0.03072000853717327, -0.022...
0.097271
# `fastmcp.server.tasks.handlers` SEP-1686 task execution handlers. Handles queuing tool/prompt/resource executions to Docket as background tasks. ## Functions ### `submit\_to\_docket` ```python submit\_to\_docket(task\_type: Literal['tool', 'resource', 'template', 'prompt'], key: str, component: Tool | Resource | Reso...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-tasks-handlers.mdx
main
model-context-protocol-fastmcp
[ 0.0018905466422438622, 0.01718597486615181, -0.009150194935500622, 0.06350629031658173, -0.011838573031127453, -0.08574610948562622, 0.04323415458202362, -0.00045790127478539944, 0.038949668407440186, 0.01526946946978569, -0.0329190231859684, -0.057504892349243164, 0.013886900618672371, -0...
0.059803
# `fastmcp.cli.install.mcp\_json` MCP configuration JSON generation for FastMCP install using Cyclopts. ## Functions ### `install\_mcp\_json` ```python install\_mcp\_json(file: Path, server\_object: str | None, name: str) -> bool ``` Generate MCP configuration JSON for manual installation. \*\*Args:\*\* - `file`: Path ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-cli-install-mcp_json.mdx
main
model-context-protocol-fastmcp
[ -0.08173593133687973, 0.0007013255963101983, 0.01811082288622856, -0.030935941264033318, 0.000049325280997436494, -0.0550081841647625, -0.008736476302146912, 0.0355878509581089, -0.08183290809392929, -0.042662858963012695, 0.11583103239536285, -0.040000006556510925, 0.03650956228375435, 0....
-0.017246
# `fastmcp.utilities.components` ## Functions ### `get\_fastmcp\_metadata` ```python get\_fastmcp\_metadata(meta: dict[str, Any] | None) -> FastMCPMeta ``` Extract FastMCP metadata from a component's meta dict. Handles both the current `fastmcp` namespace and the legacy `\_fastmcp` namespace for compatibility with olde...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-components.mdx
main
model-context-protocol-fastmcp
[ -0.06763948500156403, 0.04493188112974167, -0.02487066574394703, -0.01735987700521946, 0.01986747793853283, -0.09005694091320038, -0.0008837235509417951, -0.007107629906386137, -0.02664901874959469, -0.06020800396800041, 0.05663791671395302, -0.051590293645858765, 0.04068942368030548, -0.0...
-0.019618
# `fastmcp.utilities.tests` ## Functions ### `temporary\_settings` ```python temporary\_settings(\*\*kwargs: Any) ``` Temporarily override FastMCP setting values. \*\*Args:\*\* - `\*\*kwargs`: The settings to override, including nested settings. ### `run\_server\_in\_process` ```python run\_server\_in\_process(server\_...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-tests.mdx
main
model-context-protocol-fastmcp
[ -0.11694851517677307, 0.015257096849381924, -0.04794043302536011, 0.02555122599005699, -0.03712723031640053, -0.12167680263519287, -0.003992968704551458, -0.02235148847103119, -0.016344433650374413, -0.02396717481315136, 0.04416826367378235, -0.04633577913045883, 0.0718911737203598, -0.063...
0.015522
# `fastmcp.server.tasks.routing` Task routing helper for MCP components. Provides unified task mode enforcement and docket routing logic. ## Functions ### `check\_background\_task` ```python check\_background\_task(component: Tool | Resource | ResourceTemplate | Prompt, task\_type: TaskType, arguments: dict[str, Any] |...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-tasks-routing.mdx
main
model-context-protocol-fastmcp
[ 0.007978038862347603, 0.020720770582556725, -0.0023999507538974285, 0.010584762319922447, 0.05397021397948265, -0.10189653187990189, 0.005278751254081726, -0.018205149099230766, 0.002099432982504368, 0.03877266123890877, -0.027615873143076897, -0.03920282796025276, -0.0037754022050648928, ...
0.058134
# `fastmcp.server.tasks.subscriptions` Task subscription helpers for sending MCP notifications (SEP-1686). Subscribes to Docket execution state changes and sends notifications/tasks/status to clients when their tasks change state. This module requires fastmcp[tasks] (pydocket). It is only imported when docket is availa...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-tasks-subscriptions.mdx
main
model-context-protocol-fastmcp
[ -0.0665859505534172, 0.009129309095442295, 0.024642694741487503, 0.0026246721390634775, 0.035020798444747925, -0.08533500880002975, 0.029082199558615685, -0.044039733707904816, 0.049440715461969376, 0.046323392540216446, -0.041055046021938324, -0.025897089391946793, 0.04991945996880531, 0....
0.07046
# `fastmcp.client.mixins.resources` Resource-related methods for FastMCP Client. ## Classes ### `ClientResourcesMixin` Mixin providing resource-related methods for Client. \*\*Methods:\*\* #### `list\_resources\_mcp` ```python list\_resources\_mcp(self: Client) -> mcp.types.ListResourcesResult ``` Send a resources/list...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-mixins-resources.mdx
main
model-context-protocol-fastmcp
[ -0.15777058899402618, 0.003579281736165285, 0.0506577342748642, 0.019378971308469772, 0.0038408832624554634, -0.058232180774211884, 0.035044752061367035, -0.0279039666056633, -0.021505819633603096, -0.05067260190844536, 0.024957194924354553, -0.012640634551644325, 0.06871380656957626, -0.0...
0.072865
a ResourceTask object if task=True. \*\*Raises:\*\* - `RuntimeError`: If called while the client is not connected. - `McpError`: If the request results in a TimeoutError | JSONRPCError
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-mixins-resources.mdx
main
model-context-protocol-fastmcp
[ -0.11600738018751144, 0.10821033269166946, -0.00952454935759306, 0.07782024890184402, -0.02095344476401806, -0.07563349604606628, 0.0020135699305683374, 0.001481120940297842, 0.06368397176265717, 0.0011694555869325995, -0.05726443603634834, -0.02307102456688881, 0.03724558278918266, 0.0536...
0.132068
# `fastmcp.server.auth.oidc\_proxy` OIDC Proxy Provider for FastMCP. This provider acts as a transparent proxy to an upstream OIDC compliant Authorization Server. It leverages the OAuthProxy class to handle Dynamic Client Registration and forwarding of all OAuth flows. This implementation is based on: OpenID Connect Di...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-oidc_proxy.mdx
main
model-context-protocol-fastmcp
[ -0.1303926259279251, 0.029945379123091698, -0.045709192752838135, 0.0358709879219532, 0.010324188508093357, -0.13016359508037567, 0.031086556613445282, -0.018616827204823494, 0.0333394929766655, -0.09060777723789215, 0.015610398724675179, 0.024268178269267082, 0.04372846335172653, -0.05028...
0.011127
# `fastmcp.server.context` ## Functions ### `set\_transport` ```python set\_transport(transport: TransportType) -> Token[TransportType | None] ``` Set the current transport type. Returns token for reset. ### `reset\_transport` ```python reset\_transport(token: Token[TransportType | None]) -> None ``` Reset transport to...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-context.mdx
main
model-context-protocol-fastmcp
[ -0.07499556988477707, -0.015138032846152782, 0.0029070591554045677, 0.08083397150039673, -0.02553628943860531, -0.09986042976379395, 0.14363761246204376, 0.00879854615777731, -0.019362330436706543, -0.03561662137508392, 0.009920244105160236, -0.027807725593447685, 0.04471208155155182, 0.03...
0.066298
| None = None, message: str | None = None) -> None ``` Report progress for the current operation. \*\*Args:\*\* - `progress`: Current progress value e.g. 24 - `total`: Optional total value e.g. 100 #### `list\_resources` ```python list\_resources(self) -> list[SDKResource] ``` List all available resources from the serv...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-context.mdx
main
model-context-protocol-fastmcp
[ 0.042231544852256775, 0.046862028539180756, -0.061267346143722534, 0.026964042335748672, 0.004364253953099251, -0.0314951129257679, 0.06600883603096008, 0.02791757695376873, 0.024969570338726044, 0.034546371549367905, 0.013779399916529655, -0.09302432835102081, 0.05420732498168945, -0.0496...
0.044123
| None = None, extra: Mapping[str, Any] | None = None) -> None ``` Send a `INFO`-level message to the connected MCP Client. Messages sent to Clients are also logged to the `fastmcp.server.context.to\_client` logger with a level of `DEBUG`. #### `warning` ```python warning(self, message: str, logger\_name: str | None = ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-context.mdx
main
model-context-protocol-fastmcp
[ 0.017528891563415527, 0.021320249885320663, 0.039893876761198044, 0.03373066335916519, 0.03071114420890808, -0.0963960662484169, 0.03664934262633324, 0.0014402109663933516, 0.03060862608253956, -0.03126862272620201, 0.07177620381116867, -0.05192919448018074, 0.09212805330753326, 0.00377207...
0.025356
LLM returns a tool use request, the tools are executed and the results are sent back to the LLM. This continues until the LLM provides a final text response. When result\_type is specified, a synthetic `final\_response` tool is created. The LLM calls this tool to provide the structured response, which is validated agai...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-context.mdx
main
model-context-protocol-fastmcp
[ -0.029436059296131134, 0.009546637535095215, -0.01393803209066391, 0.0502578467130661, 0.05673191696405411, -0.07577843964099884, 0.01096411980688572, 0.02288161776959896, -0.012033865787088871, 0.020539266988635063, -0.02051990106701851, -0.06626307219266891, 0.04816160723567009, -0.07183...
0.090262
with the session identifier. State expires after 1 day to prevent unbounded memory growth. #### `get\_state` ```python get\_state(self, key: str) -> Any ``` Get a value from the session-scoped state store. Returns None if the key is not found. #### `delete\_state` ```python delete\_state(self, key: str) -> None ``` Del...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-context.mdx
main
model-context-protocol-fastmcp
[ -0.07317397743463516, 0.03970157355070114, -0.041937410831451416, 0.06801070272922516, -0.003732060082256794, -0.019964080303907394, 0.08563748747110367, -0.022768422961235046, 0.045585453510284424, 0.06556295603513718, -0.050399299710989, -0.01625935547053814, 0.02100444585084915, 0.05550...
0.125585
# `fastmcp.utilities.auth` Authentication utility helpers. ## Functions ### `decode\_jwt\_header` ```python decode\_jwt\_header(token: str) -> dict[str, Any] ``` Decode JWT header without signature verification. Useful for extracting the key ID (kid) for JWKS lookup. \*\*Args:\*\* - `token`: JWT token string (header.pa...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-auth.mdx
main
model-context-protocol-fastmcp
[ -0.14978954195976257, 0.07735957950353622, 0.008097843267023563, -0.04673541337251663, 0.030295876786112785, -0.11813928931951523, 0.04787764325737953, 0.013800527900457382, -0.017913084477186203, -0.07259993255138397, 0.031314194202423096, -0.050011154264211655, 0.06909304857254028, -0.05...
0.02359
# `fastmcp.cli.install.claude\_code` Claude Code integration for FastMCP install using Cyclopts. ## Functions ### `find\_claude\_command` ```python find\_claude\_command() -> str | None ``` Find the Claude Code CLI command. Checks common installation locations since 'claude' is often a shell alias that doesn't work wit...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-cli-install-claude_code.mdx
main
model-context-protocol-fastmcp
[ -0.06846394389867783, -0.0060792528092861176, -0.05968014895915985, -0.05571528524160385, -0.022693023085594177, -0.08457247167825699, 0.0011266337241977453, 0.026751358062028885, -0.00044893042650073767, -0.01932653971016407, 0.06625935435295105, -0.033661920577287674, 0.0414678230881691, ...
-0.033666
# `fastmcp.utilities.json\_schema` ## Functions ### `dereference\_refs` ```python dereference\_refs(schema: dict[str, Any]) -> dict[str, Any] ``` Resolve all $ref references in a JSON schema by inlining definitions. This function resolves $ref references that point to $defs, replacing them with the actual definition co...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-json_schema.mdx
main
model-context-protocol-fastmcp
[ -0.10166320204734802, 0.007408466190099716, 0.04709644615650177, -0.002699701813980937, 0.012733463197946548, -0.06686850637197495, -0.03311408683657646, -0.000607892929110676, 0.01261083222925663, 0.0028306003659963608, 0.07292887568473816, -0.04454902932047844, 0.018091222271323204, 0.02...
0.005904
# `fastmcp.client.client` ## Classes ### `ClientSessionState` Holds all session-related state for a Client instance. This allows clean separation of configuration (which is copied) from session state (which should be fresh for each new client instance). ### `CallToolResult` Parsed result from a tool call. ### `Client` ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-client.mdx
main
model-context-protocol-fastmcp
[ -0.11872699111700058, -0.0035767180379480124, 0.03824089094996452, 0.005706732627004385, -0.004958158824592829, -0.029615238308906555, 0.08279174566268921, -0.026320768520236015, 0.04447415843605995, 0.016256095841526985, 0.012625519186258316, 0.020609231665730476, 0.027163773775100708, -0...
0.09977
| int | None = None) -> mcp.types.InitializeResult ``` Send an initialize request to the server. This method performs the MCP initialization handshake with the server, exchanging capabilities and server information. It is idempotent - calling it multiple times returns the cached result from the first call. The initiali...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-client.mdx
main
model-context-protocol-fastmcp
[ -0.05726983770728111, 0.018196312710642815, 0.019215291365981102, 0.05006786435842514, -0.03882686421275139, -0.10822354257106781, -0.00804963055998087, 0.022801687940955162, -0.02934240736067295, -0.006200057920068502, -0.017062025144696236, 0.026235472410917282, 0.035450104624032974, -0....
0.095152
# `fastmcp.utilities.timeout` Timeout normalization utilities. ## Functions ### `normalize\_timeout\_to\_timedelta` ```python normalize\_timeout\_to\_timedelta(value: int | float | datetime.timedelta | None) -> datetime.timedelta | None ``` Normalize a timeout value to a timedelta. \*\*Args:\*\* - `value`: Timeout valu...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-timeout.mdx
main
model-context-protocol-fastmcp
[ -0.05400482192635536, 0.09156840294599533, -0.023061508312821388, 0.02807283028960228, -0.0614706315100193, -0.05425122007727623, -0.05546838790178299, -0.03149212896823883, -0.0012659123167395592, -0.05801877751946449, 0.03995687887072563, -0.0916878804564476, -0.01014371495693922, -0.010...
0.073314
# `fastmcp.cli.install.claude\_desktop` Claude Desktop integration for FastMCP install using Cyclopts. ## Functions ### `get\_claude\_config\_path` ```python get\_claude\_config\_path() -> Path | None ``` Get the Claude config directory based on platform. ### `install\_claude\_desktop` ```python install\_claude\_deskto...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-cli-install-claude_desktop.mdx
main
model-context-protocol-fastmcp
[ -0.03545502945780754, 0.0339064747095108, -0.04917072877287865, -0.058161310851573944, -0.023788824677467346, -0.061276186257600784, -0.00423822458833456, 0.050144895911216736, -0.03859980031847954, -0.03993484377861023, 0.08582395315170288, -0.03264378383755684, 0.056946370750665665, -0.0...
-0.081873
# `fastmcp.client.auth.oauth` ## Functions ### `check\_if\_auth\_required` ```python check\_if\_auth\_required(mcp\_url: str, httpx\_kwargs: dict[str, Any] | None = None) -> bool ``` Check if the MCP endpoint requires authentication by making a test request. \*\*Returns:\*\* - True if auth appears to be required, False...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-auth-oauth.mdx
main
model-context-protocol-fastmcp
[ -0.06283330917358398, 0.03752906993031502, 0.041894566267728806, -0.009323079138994217, 0.01377063151448965, -0.09494803100824356, -0.02141350694000721, -0.020421965047717094, 0.01483139954507351, -0.04193859547376633, 0.05142123997211456, -0.017116045579314232, 0.06279170513153076, -0.006...
-0.055231
# `fastmcp.utilities.version\_check` Version checking utilities for FastMCP. ## Functions ### `get\_latest\_version` ```python get\_latest\_version(include\_prereleases: bool = False) -> str | None ``` Get the latest version of FastMCP from PyPI, using cache when available. \*\*Args:\*\* - `include\_prereleases`: If Tr...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-version_check.mdx
main
model-context-protocol-fastmcp
[ -0.03919108584523201, 0.0228855200111866, 0.04353361949324608, -0.051805321127176285, 0.06851322948932648, -0.09108587354421616, -0.04755362868309021, -0.040970880538225174, 0.013553785160183907, -0.07416609674692154, 0.06995847821235657, -0.0008616698905825615, -0.029444998130202293, -0.0...
-0.07331
# `fastmcp.server.lifespan` Composable lifespans for FastMCP servers. This module provides a `@lifespan` decorator for creating composable server lifespans that can be combined using the `|` operator. Example: ```python from fastmcp import FastMCP from fastmcp.server.lifespan import lifespan @lifespan async def db\_lif...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-lifespan.mdx
main
model-context-protocol-fastmcp
[ -0.08511931449174881, 0.018330968916416168, -0.03659714385867119, 0.08815402537584305, -0.046780914068222046, -0.0779552236199379, -0.04657790809869766, -0.032624270766973495, -0.032868776470422745, -0.011653074063360691, 0.04199642315506935, 0.0003162088105455041, 0.07834254205226898, -0....
0.013053
# `fastmcp.server.mixins.mcp\_operations` MCP protocol handler setup and wire-format handlers for FastMCP Server. ## Classes ### `MCPOperationsMixin` Mixin providing MCP protocol handler setup and wire-format handlers. Note: Methods registered with SDK decorators (e.g., \_list\_tools\_mcp, \_call\_tool\_mcp) cannot use...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-mixins-mcp_operations.mdx
main
model-context-protocol-fastmcp
[ -0.09458795934915543, 0.005532534793019295, 0.07931812852621078, 0.011445162817835808, 0.016652969643473625, -0.055570948868989944, 0.06674003601074219, 0.00810584332793951, -0.00993275735527277, -0.05972694978117943, 0.08286651223897934, -0.07643843442201614, -0.02696182020008564, -0.0644...
0.022603
# `fastmcp.server.providers` Providers 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 Tool class Databas...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-__init__.mdx
main
model-context-protocol-fastmcp
[ -0.04972028359770775, -0.023699698969721794, -0.03971852734684944, 0.10934858024120331, -0.07539040595293045, -0.06974531710147858, 0.05977374315261841, 0.017748571932315826, -0.022471800446510315, -0.03917338699102402, 0.014236357063055038, -0.0745706632733345, 0.08450846374034882, -0.057...
-0.049832
# `fastmcp.server.openapi.server` FastMCPOpenAPI - backwards compatibility wrapper. This class is deprecated. Use FastMCP with OpenAPIProvider instead: from fastmcp import FastMCP from fastmcp.server.providers.openapi import OpenAPIProvider import httpx client = httpx.AsyncClient(base\_url="https://api.example.com") pr...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-openapi-server.mdx
main
model-context-protocol-fastmcp
[ -0.0738891139626503, 0.035747405141592026, 0.01201912946999073, -0.004971962887793779, -0.025703994557261467, -0.1275777965784073, -0.03943866118788719, -0.017933642491698265, 0.019827784970402718, -0.07358033955097198, 0.0990840345621109, -0.029667841270565987, 0.04317723214626312, -0.020...
-0.028059
# `fastmcp.utilities.async\_utils` Async utilities for FastMCP. ## Functions ### `call\_sync\_fn\_in\_threadpool` ```python call\_sync\_fn\_in\_threadpool(fn: Callable[..., Any], \*args: Any, \*\*kwargs: Any) -> Any ``` Call a sync function in a threadpool to avoid blocking the event loop. Uses anyio.to\_thread.run\_sy...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-async_utils.mdx
main
model-context-protocol-fastmcp
[ -0.14600583910942078, -0.016414137557148933, -0.04199855402112007, 0.049864232540130615, 0.00398916145786643, -0.08955009281635284, 0.025436313822865486, -0.045627936720848083, 0.011466292664408684, -0.07895459234714508, 0.04742107912898064, -0.020640850067138672, 0.0344855897128582, -0.00...
0.152958
# `fastmcp.server.providers.filesystem\_discovery` File discovery and module import utilities for filesystem-based routing. This module provides functions to: 1. Discover Python files in a directory tree 2. Import modules (as packages if \_\_init\_\_.py exists, else directly) 3. Extract decorated components (Tool, Reso...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-filesystem_discovery.mdx
main
model-context-protocol-fastmcp
[ -0.09092887490987778, -0.006850469391793013, -0.010318980552256107, 0.008466131053864956, 0.05740012973546982, -0.08391311764717102, 0.046645984053611755, 0.010441116988658905, -0.038486920297145844, -0.0067674205638468266, 0.07981657981872559, 0.075453020632267, 0.054561514407396317, 0.04...
0.015454
# `fastmcp.server.providers.aggregate` AggregateProvider for combining multiple providers into one. This module provides `AggregateProvider`, a utility class that presents multiple providers as a single unified provider. Useful when you want to combine custom providers without creating a full FastMCP server. Example: `...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-aggregate.mdx
main
model-context-protocol-fastmcp
[ -0.08632893115282059, -0.04548601433634758, 0.002153842244297266, 0.06398981809616089, -0.03888286277651787, -0.04209516942501068, -0.008502834476530552, -0.008030622266232967, -0.01684846170246601, -0.03763730823993683, 0.0553874745965004, -0.05456347018480301, 0.042347051203250885, -0.04...
-0.02533
# `fastmcp.server.middleware.tool\_injection` A middleware for injecting tools into the MCP server context. ## Functions ### `list\_prompts` ```python list\_prompts(context: Context) -> list[Prompt] ``` List prompts available on the server. ### `get\_prompt` ```python get\_prompt(context: Context, name: Annotated[str, ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-middleware-tool_injection.mdx
main
model-context-protocol-fastmcp
[ -0.019005125388503075, 0.009148646146059036, 0.010447011329233646, 0.008786340244114399, 0.06127927079796791, -0.05434617027640343, 0.03741732984781265, 0.023955611512064934, -0.020003769546747208, -0.00469411164522171, 0.010646370239555836, -0.0594550259411335, 0.09330397099256516, -0.018...
0.062859
# `fastmcp.server.providers.skills.vendor\_providers` Vendor-specific skills providers for various AI coding platforms. ## Classes ### `CursorSkillsProvider` Cursor skills from ~/.cursor/skills/. ### `VSCodeSkillsProvider` VS Code skills from ~/.copilot/skills/. ### `CodexSkillsProvider` Codex skills from /etc/codex/sk...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-skills-vendor_providers.mdx
main
model-context-protocol-fastmcp
[ -0.09184978902339935, -0.10361362993717194, -0.035601887851953506, -0.028160460293293, 0.00016192829934880137, -0.07540202885866165, 0.06934480369091034, -0.03745684772729874, -0.0681292936205864, -0.04718921706080437, 0.07611212134361267, 0.0451444648206234, -0.008268177509307861, 0.01462...
0.032867
# `fastmcp.server.transforms` Transform system for component transformations. Transforms modify components (tools, resources, prompts). List operations use a pure function pattern where transforms receive sequences and return transformed sequences. Get operations use a middleware pattern with `call\_next` to chain look...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-transforms-__init__.mdx
main
model-context-protocol-fastmcp
[ -0.12488263845443726, 0.030101828277111053, -0.012706759385764599, -0.04480923339724541, -0.04307953268289566, -0.09205659478902817, -0.047607019543647766, 0.023751897737383842, 0.03796692192554474, -0.025825699791312218, 0.014918191358447075, -0.024902351200580597, 0.017110412940382957, -...
0.078071
# `fastmcp.server.tasks.elicitation` Background task elicitation support (SEP-1686). This module provides elicitation capabilities for background tasks running in Docket workers. Unlike regular MCP requests, background tasks don't have an active request context, so elicitation requires special handling: 1. Set task sta...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-tasks-elicitation.mdx
main
model-context-protocol-fastmcp
[ -0.04743291437625885, -0.017051687464118004, -0.022382698953151703, 0.008666656911373138, 0.032859232276678085, -0.13811780512332916, 0.011199825443327427, 0.003421938978135586, 0.023499678820371628, 0.013623806647956371, -0.06405718624591827, -0.054725416004657745, 0.02198609709739685, -0...
0.136841
# `fastmcp.client.transports.config` ## Classes ### `MCPConfigTransport` Transport for connecting to one or more MCP servers defined in an MCPConfig. This transport provides a unified interface to multiple MCP servers defined in an MCPConfig object or dictionary matching the MCPConfig schema. It supports two key scenar...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-transports-config.mdx
main
model-context-protocol-fastmcp
[ -0.067245714366436, -0.050960294902324677, 0.0023495873901993036, 0.006484419107437134, -0.03204815834760666, -0.09335360676050186, -0.004676475655287504, 0.005967354867607355, -0.009716902859508991, -0.05620032176375389, 0.037287067621946335, -0.015726935118436813, 0.06904726475477219, 0....
0.104845
# `fastmcp.server.auth.providers.discord` Discord OAuth provider for FastMCP. This module provides a complete Discord OAuth integration that's ready to use with just a client ID and client secret. It handles all the complexity of Discord's OAuth flow, token validation, and user management. Example: ```python from fastm...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-providers-discord.mdx
main
model-context-protocol-fastmcp
[ -0.11936913430690765, 0.0006819261470809579, 0.031015481799840927, -0.015935823321342468, 0.0270344540476799, -0.044979508966207504, 0.03521919995546341, 0.04496515914797783, 0.034388087689876556, -0.06274183094501495, 0.02088385634124279, -0.04255415499210358, 0.07406800240278244, -0.0626...
0.058281
# `fastmcp.resources.function\_resource` Standalone @resource decorator for FastMCP. ## Functions ### `resource` ```python resource(uri: str) -> Callable[[F], F] ``` Standalone decorator to mark a function as an MCP resource. Returns the original function with metadata attached. Register with a server using mcp.add\_re...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-resources-function_resource.mdx
main
model-context-protocol-fastmcp
[ -0.12537091970443726, 0.033586934208869934, 0.012817902490496635, 0.06946912407875061, 0.007113664876669645, -0.11058593541383743, -0.0021921051666140556, -0.019077777862548828, -0.03017185442149639, -0.06587189435958862, 0.005343921482563019, 0.02213337831199169, 0.012534902431070805, 0.0...
0.089319
# `fastmcp.server.auth.providers.jwt` TokenVerifier implementations for FastMCP. ## Classes ### `JWKData` JSON Web Key data structure. ### `JWKSData` JSON Web Key Set data structure. ### `RSAKeyPair` RSA key pair for JWT testing. \*\*Methods:\*\* #### `generate` ```python generate(cls) -> RSAKeyPair ``` Generate an RSA...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-providers-jwt.mdx
main
model-context-protocol-fastmcp
[ -0.1192178726196289, 0.05330183729529381, -0.01623484306037426, 0.014125398360192776, -0.02805296517908573, -0.08639366179704666, -0.027439266443252563, -0.018404072150588036, 0.008694379590451717, -0.054891180247068405, 0.050263144075870514, -0.04222455993294716, 0.07608497142791748, -0.0...
-0.024962
# `fastmcp.server.middleware.caching` A middleware for response caching. ## Classes ### `CachableResourceContent` A wrapper for ResourceContent that can be cached. ### `CachableResourceResult` A wrapper for ResourceResult that can be cached. \*\*Methods:\*\* #### `get\_size` ```python get\_size(self) -> int ``` #### `w...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-middleware-caching.mdx
main
model-context-protocol-fastmcp
[ -0.09771540015935898, 0.02812688611447811, 0.007718711160123348, 0.05906820669770241, -0.04156388342380524, -0.09827892482280731, 0.017087966203689575, 0.008715168572962284, -0.02452000230550766, 0.012152234092354774, 0.005826213397085667, -0.024375496432185173, 0.05584864690899849, -0.012...
0.041696
Get the statistics for the cache.
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-middleware-caching.mdx
main
model-context-protocol-fastmcp
[ 0.054344333708286285, -0.0034105414524674416, -0.060292139649391174, 0.01126033440232277, 0.00376611459068954, -0.09841081500053406, 0.021121826022863388, 0.017490291967988014, 0.0073281461372971535, 0.0386466346681118, -0.00586709612980485, 0.004428471438586712, -0.038215506821870804, -0....
0.072731
# `fastmcp.server.tasks.requests` SEP-1686 task request handlers. Handles MCP task protocol requests: tasks/get, tasks/result, tasks/list, tasks/cancel. These handlers query and manage existing tasks (contrast with handlers.py which creates tasks). This module requires fastmcp[tasks] (pydocket). It is only imported whe...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-tasks-requests.mdx
main
model-context-protocol-fastmcp
[ -0.05810470134019852, 0.022166835144162178, -0.01128595881164074, 0.026387754827737808, -0.010009950026869774, -0.10587731003761292, -0.013570377603173256, -0.01920248381793499, 0.011407279409468174, 0.007165577728301287, -0.003360890317708254, -0.03368828818202019, 0.016468508169054985, 0...
0.004201
# `fastmcp.client.transports.base` ## Classes ### `SessionKwargs` Keyword arguments for the MCP ClientSession constructor. ### `ClientTransport` Abstract base class for different MCP client transport mechanisms. A Transport is responsible for establishing and managing connections to an MCP server, and providing a Clien...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-transports-base.mdx
main
model-context-protocol-fastmcp
[ -0.1398760974407196, 0.03343181684613228, 0.005890113767236471, 0.07293842732906342, -0.06152766942977905, -0.05485287681221962, 0.10746414959430695, -0.004563299007713795, -0.018656287342309952, -0.018115125596523285, 0.018547216430306435, 0.003296234644949436, 0.017202841117978096, 0.031...
0.080077
# `fastmcp.utilities.json\_schema\_type` Convert JSON Schema to Python types with validation. The json\_schema\_to\_type function converts a JSON Schema into a Python type that can be used for validation with Pydantic. It supports: - Basic types (string, number, integer, boolean, null) - Complex types (arrays, objects)...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-json_schema_type.mdx
main
model-context-protocol-fastmcp
[ -0.039380449801683426, 0.0478784553706646, 0.00504023814573884, -0.02157101035118103, -0.0327007994055748, -0.050729505717754364, -0.01577029377222061, 0.020144622772932053, -0.08361496776342392, -0.039068903774023056, 0.021905019879341125, -0.09268074482679367, 0.05408501625061035, 0.0591...
-0.029886
# `fastmcp.client.transports.stdio` ## Classes ### `StdioTransport` Base transport for connecting to an MCP server via subprocess with stdio. This is a base class that can be subclassed for specific command-based transports like Python, Node, Uvx, etc. \*\*Methods:\*\* #### `connect\_session` ```python connect\_session...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-transports-stdio.mdx
main
model-context-protocol-fastmcp
[ -0.08368385583162308, 0.01623147912323475, -0.031936537474393845, 0.048433199524879456, -0.052014317363500595, -0.09254847466945648, 0.04931890591979027, 0.03526813164353371, -0.012458293698728085, -0.028112946078181267, 0.006844415329396725, -0.02222663350403309, 0.017164083197712898, 0.0...
0.095476
# `fastmcp.server.middleware.logging` Comprehensive logging middleware for FastMCP servers. ## Functions ### `default\_serializer` ```python default\_serializer(data: Any) -> str ``` The default serializer for Payloads in the logging middleware. ## Classes ### `BaseLoggingMiddleware` Base class for logging middleware. ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-middleware-logging.mdx
main
model-context-protocol-fastmcp
[ -0.06409987807273865, 0.0016913387225940824, 0.0524834543466568, -0.02838321030139923, 0.06795929372310638, -0.1319480985403061, -0.009729797020554543, 0.034227192401885986, -0.02474464848637581, 0.03201746940612793, 0.011019116267561913, -0.01994038186967373, 0.013504392467439175, 0.01164...
0.186361
# `fastmcp.server.providers.skills.directory\_provider` Directory scanning provider for discovering multiple skills. ## Classes ### `SkillsDirectoryProvider` Provider that scans directories and creates a SkillProvider per skill folder. This extends AggregateProvider to combine multiple SkillProviders into one. Each sub...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-skills-directory_provider.mdx
main
model-context-protocol-fastmcp
[ -0.08524108678102493, -0.03453660383820534, -0.034214410930871964, 0.05701744183897972, 0.029528537765145302, -0.019474927335977554, 0.06444442272186279, -0.015110056847333908, -0.06986814737319946, -0.01566649042069912, 0.09253194183111191, 0.03731149062514305, 0.05177352577447891, 0.0524...
0.009014
# `fastmcp.server.middleware.authorization` Authorization middleware for FastMCP. This module provides middleware-based authorization using callable auth checks. AuthMiddleware applies auth checks globally to all components on the server. Example: ```python from fastmcp import FastMCP from fastmcp.server.auth import re...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-middleware-authorization.mdx
main
model-context-protocol-fastmcp
[ -0.08436453342437744, 0.026919128373265266, -0.022406579926609993, -0.06600899249315262, 0.0665208026766777, -0.10847394913434982, 0.05182800814509392, 0.005923285149037838, -0.03155549243092537, 0.01449129730463028, 0.029923947528004646, -0.04656444862484932, 0.08487550914287567, 0.020985...
0.041641
# `fastmcp.utilities.logging` Logging utilities for FastMCP. ## Functions ### `get\_logger` ```python get\_logger(name: str) -> logging.Logger ``` Get a logger nested under FastMCP namespace. \*\*Args:\*\* - `name`: the name of the logger, which will be prefixed with 'FastMCP.' \*\*Returns:\*\* - a configured logger in...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-logging.mdx
main
model-context-protocol-fastmcp
[ -0.03822345286607742, 0.00011131678184028715, 0.0017188298515975475, 0.02906002849340439, 0.06680643558502197, -0.11224513500928879, -0.004403813276439905, -0.010809161700308323, -0.00231066532433033, -0.02028012089431286, 0.05482055991888046, -0.07061313837766647, 0.05560373142361641, 0.0...
-0.018165
# `fastmcp.server.auth.providers.debug` Debug token verifier for testing and special cases. This module provides a flexible token verifier that delegates validation to a custom callable. Useful for testing, development, or scenarios where standard verification isn't possible (like opaque tokens without introspection). ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-providers-debug.mdx
main
model-context-protocol-fastmcp
[ -0.11156203597784042, -0.00033951300429180264, -0.05003514140844345, 0.036820828914642334, -0.00417974591255188, -0.13106262683868408, 0.03513118624687195, 0.012494415044784546, 0.01576441153883934, -0.032808128744363785, 0.029821651056408882, -0.04222705960273743, 0.031206801533699036, -0...
0.067975
# `fastmcp.server.providers.local\_provider.decorators.tools` Tool decorator mixin for LocalProvider. This module provides the ToolDecoratorMixin class that adds tool registration functionality to LocalProvider. ## Classes ### `ToolDecoratorMixin` Mixin class providing tool decorator functionality for LocalProvider. Th...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-local_provider-decorators-tools.mdx
main
model-context-protocol-fastmcp
[ -0.12263837456703186, -0.03890974819660187, -0.011698762886226177, 0.045620836317539215, -0.03898479789495468, -0.05781209096312523, 0.018250934779644012, -0.002920520957559347, -0.031249919906258583, -0.035159531980752945, 0.08867910504341125, -0.07568197697401047, 0.02155143953859806, 0....
-0.00466
# `fastmcp.server.event\_store` EventStore implementation backed by AsyncKeyValue. This module provides an EventStore implementation that enables SSE polling/resumability for Streamable HTTP transports. Events are stored using the key\_value package's AsyncKeyValue protocol, allowing users to configure any compatible b...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-event_store.mdx
main
model-context-protocol-fastmcp
[ -0.09590732306241989, 0.01342525240033865, -0.0683712437748909, 0.07453238219022751, -0.022794747725129128, -0.03102744370698929, 0.047615233808755875, -0.007349384482949972, 0.07761818915605545, -0.0036439381074160337, -0.04441292583942413, 0.02767258509993553, 0.00022684306895826012, -0....
0.061051
# `fastmcp.server.auth.providers.github` GitHub OAuth provider for FastMCP. This module provides a complete GitHub OAuth integration that's ready to use with just a client ID and client secret. It handles all the complexity of GitHub'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-github.mdx
main
model-context-protocol-fastmcp
[ -0.12464117258787155, -0.009230759926140308, -0.01957647316157818, -0.0010910831624642015, 0.03867620229721069, -0.05553893372416496, -0.007863327860832214, 0.012618943117558956, 0.039156898856163025, -0.05280077084898949, 0.04885417968034744, -0.007814780808985233, 0.10892041027545929, -0...
-0.006462
# `fastmcp.client.transports.inference` ## Functions ### `infer\_transport` ```python infer\_transport(transport: ClientTransport | FastMCP | FastMCP1Server | AnyUrl | Path | MCPConfig | dict[str, Any] | str) -> ClientTransport ``` Infer the appropriate transport type from the given transport argument. This function at...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-transports-inference.mdx
main
model-context-protocol-fastmcp
[ -0.09593957662582397, -0.021180227398872375, 0.02001405693590641, 0.02390247955918312, 0.02572985365986824, -0.05610906705260277, 0.03188407048583031, 0.0173671655356884, -0.012637927196919918, -0.06898516416549683, 0.0020891486201435328, 0.004986157640814781, 0.0014936765655875206, 0.0799...
0.057956
# `fastmcp.resources.types` Concrete resource implementations. ## Classes ### `TextResource` A resource that reads from a string. \*\*Methods:\*\* #### `read` ```python read(self) -> ResourceResult ``` Read the text content. ### `BinaryResource` A resource that reads from bytes. \*\*Methods:\*\* #### `read` ```python r...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-resources-types.mdx
main
model-context-protocol-fastmcp
[ -0.06722629070281982, 0.011898278258740902, -0.012227647006511688, 0.023506099358201027, -0.012753632850944996, -0.07680441439151764, 0.08383676409721375, 0.06763643026351929, -0.050631072372198105, -0.05522146075963974, 0.009716205298900604, -0.02780098468065262, 0.08220129460096359, 0.00...
0.041577
# `fastmcp.server.transforms.visibility` Visibility transform for marking component visibility state. Each Visibility instance marks components via internal metadata. Multiple visibility transforms can be stacked - later transforms override earlier ones. Final filtering happens at the Provider level. ## Functions ### `...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-transforms-visibility.mdx
main
model-context-protocol-fastmcp
[ -0.07988585531711578, 0.037972819060087204, 0.001286822371184826, 0.0577394925057888, 0.06693689525127411, -0.03243600204586983, 0.04075995087623596, -0.047437600791454315, -0.009343793615698814, -0.04555029794573784, 0.06614115089178085, -0.027690019458532333, 0.031491514295339584, 0.0208...
-0.012607
can override earlier marks. Final filtering happens at the Provider level after all transforms run. \*\*Methods:\*\* #### `list\_tools` ```python list\_tools(self, tools: Sequence[Tool]) -> Sequence[Tool] ``` Mark tools by visibility state. #### `get\_tool` ```python get\_tool(self, name: str, call\_next: GetToolNext) ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-transforms-visibility.mdx
main
model-context-protocol-fastmcp
[ -0.10322298109531403, 0.03775976970791817, 0.04144394397735596, 0.050701700150966644, 0.004252772778272629, -0.03187336400151253, 0.03974522650241852, -0.04138517007231712, -0.03135015815496445, -0.05562632158398628, -0.016679618507623672, -0.02108832448720932, 0.021018197759985924, 0.0183...
-0.034203
# `fastmcp.utilities.mcp\_server\_config.v1.environments.base` ## Classes ### `Environment` Base class for environment configuration. \*\*Methods:\*\* #### `build\_command` ```python build\_command(self, command: list[str]) -> list[str] ``` Build the full command with environment setup. \*\*Args:\*\* - `command`: Base ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-mcp_server_config-v1-environments-base.mdx
main
model-context-protocol-fastmcp
[ -0.03860652819275856, 0.009310826659202576, 0.0007182336412370205, 0.023910926654934883, 0.0038510551676154137, -0.10034584254026413, -0.031188709661364555, 0.0355064757168293, -0.09427882730960846, -0.0216812901198864, 0.04031745344400406, -0.07142499089241028, 0.08407995104789734, -0.024...
-0.04119
# `fastmcp.client.mixins.prompts` Prompt-related methods for FastMCP Client. ## Classes ### `ClientPromptsMixin` Mixin providing prompt-related methods for Client. \*\*Methods:\*\* #### `list\_prompts\_mcp` ```python list\_prompts\_mcp(self: Client) -> mcp.types.ListPromptsResult ``` Send a prompts/list request and ret...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-mixins-prompts.mdx
main
model-context-protocol-fastmcp
[ -0.08860711753368378, 0.004339761566370726, 0.06036742776632309, -0.02062651701271534, -0.0035793280694633722, -0.02597360499203205, 0.03164063021540642, -0.000305131368804723, -0.0261849295347929, -0.02159021608531475, 0.05470593646168709, -0.02984103374183178, 0.07737810164690018, -0.043...
0.022689
# `fastmcp.server.providers.local\_provider.decorators.resources` Resource decorator mixin for LocalProvider. This module provides the ResourceDecoratorMixin class that adds resource and template registration functionality to LocalProvider. ## Classes ### `ResourceDecoratorMixin` Mixin class providing resource decorato...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-local_provider-decorators-resources.mdx
main
model-context-protocol-fastmcp
[ -0.11382725089788437, 0.024112118408083916, 0.006414344999939203, 0.06645046174526215, 0.013108661398291588, -0.013824936002492905, 0.03138231113553047, -0.010235282592475414, -0.03327150642871857, -0.05197121202945709, 0.045716460794210434, -0.067348413169384, 0.004189495928585529, 0.0491...
0.045148
# `fastmcp.utilities.openapi.json\_schema\_converter` Clean OpenAPI 3.0 to JSON Schema converter for the experimental parser. This module provides a systematic approach to converting OpenAPI 3.0 schemas to JSON Schema, inspired by py-openapi-schema-to-json-schema but optimized for our specific use case. ## Functions ##...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-openapi-json_schema_converter.mdx
main
model-context-protocol-fastmcp
[ -0.03690975531935692, 0.033026885241270065, 0.01448314543813467, 0.005727733951061964, 0.002298783976584673, -0.15147921442985535, -0.07609937340021133, -0.04098000377416611, -0.034996479749679565, -0.03916861489415169, 0.09890366345643997, -0.09687384963035583, 0.001997295767068863, 0.036...
0.043739
# `fastmcp.server.auth.jwt\_issuer` JWT token issuance and verification for FastMCP OAuth Proxy. This module implements the token factory pattern for OAuth proxies, where the proxy issues its own JWT tokens to clients instead of forwarding upstream provider tokens. This maintains proper OAuth 2.0 token audience boundar...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-jwt_issuer.mdx
main
model-context-protocol-fastmcp
[ -0.15631285309791565, 0.04227527976036072, 0.08729967474937439, -0.030141593888401985, 0.023104621097445488, -0.10140825808048248, 0.03185826167464256, 0.010543862357735634, -0.005955900531262159, -0.08992063254117966, 0.03868527710437775, 0.02354651689529419, 0.08213647454977036, -0.06352...
0.03535
# `fastmcp.telemetry` OpenTelemetry instrumentation for FastMCP. This module provides native OpenTelemetry integration for FastMCP servers and clients. It uses only the opentelemetry-api package, so telemetry is a no-op unless the user installs an OpenTelemetry SDK and configures exporters. Example usage with SDK: ```p...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-telemetry.mdx
main
model-context-protocol-fastmcp
[ -0.02557585947215557, 0.002626989968121052, -0.023373616859316826, -0.01394460629671812, 0.025056321173906326, -0.13529741764068604, 0.0025615475606173277, 0.05415767803788185, 0.03993663936853409, 0.0037221356760710478, 0.0516904778778553, -0.05877489969134331, -0.02524729073047638, -0.05...
0.032651
# `fastmcp.server.auth.oauth\_proxy.proxy` OAuth Proxy Provider for FastMCP. This provider acts as a transparent proxy to an upstream OAuth Authorization Server, handling Dynamic Client Registration locally while forwarding all other OAuth flows. This enables authentication with upstream providers that don't support DC...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-oauth_proxy-proxy.mdx
main
model-context-protocol-fastmcp
[ -0.14599381387233734, 0.018561512231826782, 0.042717065662145615, -0.012962310574948788, 0.013373222202062607, -0.08269551396369934, 0.0339263491332531, -0.008971757255494595, 0.07766273617744446, -0.04874885082244873, -0.008080637082457542, 0.03249046206474304, 0.058663032948970795, -0.02...
0.036964
rotation if upstream issues new refresh token - Update local token mappings State Management --------------- The proxy maintains minimal but crucial state via pluggable storage (client\_storage): - \_oauth\_transactions: Active authorization flows with client context - \_client\_codes: Authorization codes with PKCE cha...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-oauth_proxy-proxy.mdx
main
model-context-protocol-fastmcp
[ -0.0818530023097992, -0.019190460443496704, -0.009022500365972519, -0.014439375139772892, -0.05027749761939049, -0.027921168133616447, -0.01869744062423706, 0.032144252210855484, 0.009607787244021893, 0.024870529770851135, 0.012499424628913403, 0.08919589966535568, 0.028556853532791138, -0...
0.060958
Extracts user identity from upstream token 3. Encrypts and stores upstream tokens 4. Issues FastMCP-signed JWT tokens 5. Returns FastMCP tokens (NOT upstream tokens) PKCE validation is handled by the MCP framework before this method is called. #### `load\_refresh\_token` ```python load\_refresh\_token(self, client: OAu...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-oauth_proxy-proxy.mdx
main
model-context-protocol-fastmcp
[ -0.14121213555335999, 0.04120785370469093, 0.07125785946846008, 0.003583354176953435, 0.0653911605477333, -0.14400742948055267, 0.03987257555127144, 0.05055944249033928, 0.04871022701263428, -0.02853390946984291, -0.0014233359834179282, -0.03726352006196976, 0.03432394191622734, -0.0343393...
0.006015
# `fastmcp.client.mixins.tools` Tool-related methods for FastMCP Client. ## Classes ### `ClientToolsMixin` Mixin providing tool-related methods for Client. \*\*Methods:\*\* #### `list\_tools\_mcp` ```python list\_tools\_mcp(self: Client) -> mcp.types.ListToolsResult ``` Send a tools/list request and return the complete...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-mixins-tools.mdx
main
model-context-protocol-fastmcp
[ -0.1483587920665741, -0.012222458608448505, 0.04667248576879501, 0.015549777075648308, -0.026422498747706413, -0.06258611381053925, -0.0028525691013783216, -0.004020314663648605, -0.03167594224214554, -0.04800425097346306, 0.05002446100115776, -0.026821916922926903, 0.0584067702293396, -0....
0.054712
may influence server-side processing. The server can access this via `context.request\_context.meta`. Defaults to None. - `task`: If True, execute as background task (SEP-1686). Defaults to False. - `task\_id`: Optional client-provided task ID (auto-generated if not provided). - `ttl`: Time to keep results available in...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-mixins-tools.mdx
main
model-context-protocol-fastmcp
[ -0.08070515096187592, 0.015497134998440742, -0.0962023213505745, 0.07398471236228943, 0.03334398195147514, -0.10523176938295364, -0.021784085780382156, -0.022608373314142227, 0.06018799543380737, -0.004823688417673111, -0.02621479332447052, -0.012357453815639019, 0.006289944052696228, -0.0...
0.101386
# `fastmcp.server.middleware.rate\_limiting` Rate limiting middleware for protecting FastMCP servers from abuse. ## Classes ### `RateLimitError` Error raised when rate limit is exceeded. ### `TokenBucketRateLimiter` Token bucket implementation for rate limiting. \*\*Methods:\*\* #### `consume` ```python consume(self, t...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-middleware-rate_limiting.mdx
main
model-context-protocol-fastmcp
[ -0.12896943092346191, 0.03908199816942215, 0.0015580785693600774, -0.03372305631637573, 0.04070359468460083, -0.10953192412853241, 0.021422062069177628, 0.0046438369899988174, 0.02844899706542492, 0.013842313550412655, 0.019668925553560257, -0.05514303594827652, 0.04838859662413597, -0.034...
0.135579
# `fastmcp.utilities.openapi.director` Request director using openapi-core for stateless HTTP request building. ## Classes ### `RequestDirector` Builds httpx.Request objects from HTTPRoute and arguments using openapi-core. \*\*Methods:\*\* #### `build` ```python build(self, route: HTTPRoute, flat\_args: dict[str, Any],...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-openapi-director.mdx
main
model-context-protocol-fastmcp
[ -0.06984180957078934, 0.09225934743881226, 0.003173604141920805, -0.0042236968874931335, -0.0442819707095623, -0.15612231194972992, -0.0709400326013565, 0.015443369746208191, -0.020814934745430946, -0.04190284386277199, 0.02425656095147133, -0.04664408415555954, 0.019763460382819176, -0.05...
0.044981
# `fastmcp.cli.tasks` FastMCP tasks CLI for Docket task management. ## Functions ### `check\_distributed\_backend` ```python check\_distributed\_backend() -> None ``` Check if Docket is configured with a distributed backend. The CLI worker runs as a separate process, so it needs Redis/Valkey to coordinate with the main...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-cli-tasks.mdx
main
model-context-protocol-fastmcp
[ -0.05628581345081329, -0.0007944203680381179, -0.06691566854715347, -0.03346792235970497, -0.0012751315953209996, -0.13432961702346802, 0.012596163898706436, 0.0014318287139758468, 0.030580848455429077, -0.0031053696293383837, -0.028686005622148514, -0.026880895718932152, 0.06250954419374466...
0.043308
# `fastmcp.server.auth.redirect\_validation` Utilities for validating client redirect URIs in OAuth flows. ## Functions ### `matches\_allowed\_pattern` ```python matches\_allowed\_pattern(uri: str, pattern: str) -> bool ``` Check if a URI matches an allowed pattern with wildcard support. Patterns support \* wildcard ma...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-redirect_validation.mdx
main
model-context-protocol-fastmcp
[ -0.05172473564743996, 0.08411464840173721, 0.03143269196152687, -0.06261498481035233, 0.014175436459481716, -0.13616131246089935, -0.030951006338000298, -0.04844322055578232, 0.008954981341958046, -0.06376089155673981, -0.0051904101856052876, -0.0504278726875782, 0.03063461370766163, 0.058...
0.010088
# `fastmcp.utilities.versions` Version comparison utilities for component versioning. This module provides utilities for comparing component versions. Versions are strings that are first attempted to be parsed as PEP 440 versions (using the `packaging` library), falling back to lexicographic string comparison. Examples...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-versions.mdx
main
model-context-protocol-fastmcp
[ -0.0446944497525692, 0.0006480644806288183, 0.029929613694548607, -0.04000624641776085, 0.03782948851585388, -0.0656760185956955, -0.040756795555353165, 0.027601420879364014, -0.02223910018801689, -0.061898376792669296, 0.06292807310819626, 0.010180135257542133, 0.006523996591567993, -0.03...
-0.001666
the exact spec. \*\*Args:\*\* - `other`: Another spec to intersect with, or None. \*\*Returns:\*\* - A VersionSpec that matches only versions satisfying both specs. ### `VersionKey` A comparable version key that handles None, PEP 440 versions, and strings. Comparison order: 1. None (unversioned) sorts lowest 2. PEP 440...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-versions.mdx
main
model-context-protocol-fastmcp
[ 0.001836465555243194, 0.0011041384423151612, 0.03135200962424278, -0.032560449093580246, -0.017674440518021584, -0.026620859280228615, 0.004778867121785879, -0.013678700663149357, -0.02140631712973118, -0.0156750176101923, 0.015230817720293999, 0.01388375461101532, 0.02168918587267399, -0....
0.049924
# `fastmcp.server.auth.providers.in\_memory` ## Classes ### `InMemoryOAuthProvider` An in-memory OAuth provider for testing purposes. It simulates the OAuth 2.1 flow locally without external calls. \*\*Methods:\*\* #### `get\_client` ```python get\_client(self, client\_id: str) -> OAuthClientInformationFull | None ``` ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-providers-in_memory.mdx
main
model-context-protocol-fastmcp
[ -0.07838881760835648, 0.05572659149765968, -0.016721421852707863, 0.023677146062254906, -0.012339016422629356, -0.1400308758020401, 0.00335686351172626, 0.03262918069958687, 0.016974933445453644, -0.05571117252111435, 0.03230280429124832, -0.0016456434968858957, 0.06357581168413162, -0.032...
-0.00691
# `fastmcp.server.auth.providers.scalekit` Scalekit authentication provider for FastMCP. This module provides ScalekitProvider - a complete authentication solution that integrates with Scalekit's OAuth 2.1 and OpenID Connect services, supporting Resource Server authentication for seamless MCP client authentication. ## ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-providers-scalekit.mdx
main
model-context-protocol-fastmcp
[ -0.07550127804279327, 0.0326443649828434, 0.012653889134526253, 0.018496258184313774, 0.02162110060453415, -0.05782215669751167, -0.02337387204170227, 0.02714485302567482, -0.010296969674527645, -0.03530048951506615, 0.017525970935821533, -0.057671207934617996, 0.031585272401571274, -0.004...
-0.004116
# `fastmcp.server.providers.filesystem` FileSystemProvider for filesystem-based component discovery. FileSystemProvider scans a directory for Python files, imports them, and registers any Tool, Resource, ResourceTemplate, or Prompt objects found. Components are created using the standalone decorators from fastmcp.tools...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-filesystem.mdx
main
model-context-protocol-fastmcp
[ -0.11696040630340576, 0.021072035655379295, -0.025918899103999138, 0.025538712739944458, 0.025778943672776222, -0.07364079356193542, 0.037728648632764816, 0.054636150598526, 0.01092375535517931, -0.027836419641971588, 0.09697014838457108, -0.0114202369004488, 0.06290806829929352, 0.0049531...
-0.024534
# `fastmcp.utilities.skills` Client utilities for discovering and downloading skills from MCP servers. ## Functions ### `list\_skills` ```python list\_skills(client: Client) -> list[SkillSummary] ``` List all available skills from an MCP server. Discovers skills by finding resources with URIs matching the `skill://{nam...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-skills.mdx
main
model-context-protocol-fastmcp
[ -0.10191520303487778, 0.03537562116980553, 0.008258508518338203, 0.013650459237396717, -0.02664896845817566, -0.062109798192977905, 0.06951575726270676, -0.044837694615125656, -0.07018492370843887, -0.01741797849535942, 0.02945655956864357, -0.009824072010815144, 0.038668494671583176, 0.00...
0.023955
# `fastmcp.server.providers.local\_provider.decorators.prompts` Prompt decorator mixin for LocalProvider. This module provides the PromptDecoratorMixin class that adds prompt registration functionality to LocalProvider. ## Classes ### `PromptDecoratorMixin` Mixin class providing prompt decorator functionality for Local...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-local_provider-decorators-prompts.mdx
main
model-context-protocol-fastmcp
[ -0.034274786710739136, -0.021456697955727577, 0.007577576208859682, 0.006665842141956091, 0.0019314797827973962, -0.010552199557423592, 0.04138116165995598, 0.03856506198644638, -0.018729347735643387, -0.026978354901075363, 0.07554159313440323, -0.10914307832717896, 0.043826110661029816, 0...
-0.001139
# `fastmcp.cli.discovery` Discover MCP servers configured in editor config files. Scans filesystem-readable config files from editors like Claude Desktop, Claude Code, Cursor, Gemini CLI, and Goose, as well as project-level ``mcp.json`` files. Each discovered server can be resolved by name (or ``source:name``) so the C...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-cli-discovery.mdx
main
model-context-protocol-fastmcp
[ -0.13374076783657074, -0.031001649796962738, 0.00212422595359385, 0.022168567404150963, -0.021876851096749306, -0.12044651061296463, 0.0015789601020514965, -0.039934031665325165, 0.01414292212575674, -0.02948242798447609, 0.04592842608690262, 0.021108942106366158, 0.07113290578126907, 0.00...
0.035921
# `fastmcp.cli.install.shared` Shared utilities for install commands. ## Functions ### `parse\_env\_var` ```python parse\_env\_var(env\_var: str) -> tuple[str, str] ``` Parse environment variable string in format KEY=VALUE. ### `process\_common\_args` ```python process\_common\_args(server\_spec: str, server\_name: str...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-cli-install-shared.mdx
main
model-context-protocol-fastmcp
[ -0.07113257795572281, -0.006253296509385109, -0.016347099095582962, -0.029131554067134857, 0.013952423818409443, -0.10653194785118103, -0.002358965342864394, 0.029763242229819298, -0.051002711057662964, -0.05057721957564354, 0.09453076869249344, -0.014465689659118652, 0.004480272065848112, ...
0.021656
# `fastmcp.server.auth.providers.introspection` OAuth 2.0 Token Introspection (RFC 7662) provider for FastMCP. This module provides token verification for opaque tokens using the OAuth 2.0 Token Introspection protocol defined in RFC 7662. It allows FastMCP servers to validate tokens issued by authorization servers that...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-providers-introspection.mdx
main
model-context-protocol-fastmcp
[ -0.12049616873264313, 0.041450340300798416, 0.050519950687885284, -0.03589310869574547, 0.07143577933311462, -0.12222959101200104, 0.009579109959304333, 0.003048597602173686, 0.025365255773067474, -0.07960475236177444, 0.039489664137363434, -0.019908946007490158, 0.06542415171861649, -0.03...
0.016416
# `fastmcp.server.providers.skills.claude\_provider` Claude-specific skills provider for Claude Code skills. ## Classes ### `ClaudeSkillsProvider` Provider for Claude Code skills from ~/.claude/skills/. A convenience subclass that sets the default root to Claude's skills location. \*\*Args:\*\* - `reload`: If True, re-...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-skills-claude_provider.mdx
main
model-context-protocol-fastmcp
[ -0.08407188206911087, 0.05113713815808296, -0.06125374883413315, 0.02943768911063671, 0.034494299441576004, 0.00460799690335989, 0.06699696183204651, -0.004853297956287861, -0.03424467146396637, -0.005817499477416277, 0.045574482530355453, 0.05950569733977318, 0.004312383010983467, 0.00402...
-0.002641
# `fastmcp.server.auth.oauth\_proxy.models` OAuth Proxy Models and Constants. This module contains all Pydantic models and constants used by the OAuth proxy. ## Classes ### `OAuthTransaction` OAuth transaction state for consent flow. Stored server-side to track active authorization flows with client context. Includes C...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-auth-oauth_proxy-models.mdx
main
model-context-protocol-fastmcp
[ -0.13292446732521057, 0.05470132455229759, 0.008617634885013103, 0.013266944326460361, 0.05218874290585518, -0.06292416900396347, 0.06155453249812126, 0.03452255204319954, 0.08417164534330368, -0.014419889077544212, -0.031999293714761734, 0.03054392710328102, 0.06520969420671463, -0.041870...
0.024047
# `fastmcp.server.middleware.error\_handling` Error handling middleware for consistent error responses and tracking. ## Classes ### `ErrorHandlingMiddleware` Middleware that provides consistent error handling and logging. Catches exceptions, logs them appropriately, and converts them to proper MCP error responses. Also...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-middleware-error_handling.mdx
main
model-context-protocol-fastmcp
[ -0.0716327354311943, 0.008057267405092716, 0.057652805000543594, 0.01576811447739601, 0.0434773825109005, -0.1379583775997162, 0.0028541816864162683, 0.040900684893131256, -0.0428590252995491, 0.023940814658999443, 0.026406342163681984, -0.03656204417347908, 0.0661565437912941, -0.01770813...
0.13276
# `fastmcp.utilities.ui` Shared UI utilities for FastMCP HTML pages. This module provides reusable HTML/CSS components for OAuth callbacks, consent pages, and other user-facing interfaces. ## Functions ### `create\_page` ```python create\_page(content: str, title: str = 'FastMCP', additional\_styles: str = '', csp\_pol...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-ui.mdx
main
model-context-protocol-fastmcp
[ -0.13042323291301727, 0.1204817146062851, -0.03659101203083992, 0.0473366342484951, 0.019762355834245682, -0.05951608344912529, -0.050975993275642395, -0.032853852957487106, 0.004958247300237417, -0.06064094603061676, 0.04289492592215538, 0.01160472258925438, 0.11659206449985504, -0.069796...
-0.015417
# `fastmcp.utilities.types` Common types used across FastMCP. ## Functions ### `get\_fn\_name` ```python get\_fn\_name(fn: Callable[..., Any]) -> str ``` ### `get\_cached\_typeadapter` ```python get\_cached\_typeadapter(cls: T) -> TypeAdapter[T] ``` TypeAdapters are heavy objects, and in an application context we'd typ...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-utilities-types.mdx
main
model-context-protocol-fastmcp
[ -0.11168792843818665, -0.013151250779628754, -0.009502138011157513, 0.020813386887311935, -0.009288918226957321, -0.06118001788854599, 0.058547355234622955, 0.0320405513048172, -0.030529601499438286, -0.09441494196653366, -0.007754480931907892, -0.014752782881259918, 0.007477159146219492, ...
0.063829
# `fastmcp.cli.install.cursor` Cursor integration for FastMCP install using Cyclopts. ## Functions ### `generate\_cursor\_deeplink` ```python generate\_cursor\_deeplink(server\_name: str, server\_config: StdioMCPServer) -> str ``` Generate a Cursor deeplink for installing the MCP server. \*\*Args:\*\* - `server\_name`:...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-cli-install-cursor.mdx
main
model-context-protocol-fastmcp
[ -0.11951474845409393, -0.026368023827672005, 0.026354193687438965, -0.024805458262562752, -0.006374788004904985, -0.09387702494859695, -0.03853583335876465, 0.032526418566703796, -0.01777510903775692, -0.02326124720275402, 0.07104241847991943, -0.028982026502490044, 0.05062944442033768, -0...
0.00494
# `fastmcp.server.providers.openapi.provider` OpenAPIProvider for creating MCP components from OpenAPI specifications. ## Classes ### `OpenAPIProvider` Provider that creates MCP components from an OpenAPI specification. Components are created eagerly during initialization by parsing the OpenAPI spec. Each component mak...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-server-providers-openapi-provider.mdx
main
model-context-protocol-fastmcp
[ -0.09174039214849472, 0.0020179948769509792, 0.0022545496467500925, 0.06533204019069672, -0.02284672111272812, -0.12583063542842865, -0.057809073477983475, -0.015254887752234936, -0.018460644409060478, -0.03705567494034767, 0.0129533177241683, -0.031247003003954887, 0.036271508783102036, 0...
0.061249
# `fastmcp.client.tasks` SEP-1686 client Task classes. ## Classes ### `TaskNotificationHandler` MessageHandler that routes task status notifications to Task objects. \*\*Methods:\*\* #### `dispatch` ```python dispatch(self, message: Message) -> None ``` Dispatch messages, including task status notifications. ### `Task`...
https://github.com/jlowin/fastmcp/blob/main//docs/python-sdk/fastmcp-client-tasks.mdx
main
model-context-protocol-fastmcp
[ -0.06350208818912506, -0.012517444789409637, 0.03501138836145401, 0.05379460006952286, 0.012886269949376583, -0.09311015903949738, 0.012114452198147774, -0.02113877609372139, 0.0029560739640146494, 0.0034471768885850906, 0.009843339212238789, -0.0024132642429322004, 0.03141891956329346, 0....
0.154843