mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
* Update repository references from jlowin/fastmcp to prefecthq/fastmcp * Retrigger CI after repo transfer * chore: Update SDK documentation * Only run deep triage on bug issues for jlowin --------- Co-authored-by: marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com>
39 lines
1.1 KiB
Text
39 lines
1.1 KiB
Text
---
|
|
title: decorators
|
|
sidebarTitle: decorators
|
|
---
|
|
|
|
# `fastmcp.decorators`
|
|
|
|
|
|
Shared decorator utilities for FastMCP.
|
|
|
|
## Functions
|
|
|
|
### `resolve_task_config` <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/decorators.py#L17" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
|
|
|
|
```python
|
|
resolve_task_config(task: bool | TaskConfig | None) -> bool | TaskConfig
|
|
```
|
|
|
|
|
|
Resolve task config, defaulting None to False.
|
|
|
|
|
|
### `get_fastmcp_meta` <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/decorators.py#L29" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
|
|
|
|
```python
|
|
get_fastmcp_meta(fn: Any) -> Any | None
|
|
```
|
|
|
|
|
|
Extract FastMCP metadata from a function, handling bound methods and wrappers.
|
|
|
|
|
|
## Classes
|
|
|
|
### `HasFastMCPMeta` <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/decorators.py#L23" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
|
|
|
|
|
|
Protocol for callables decorated with FastMCP metadata.
|
|
|