Skip to content

Commit 883be38

Browse files
committed
docs: clarify docstring for Context implicit injection
Resource functions do not (currently) support context injection
1 parent 0e2a341 commit 883be38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/server/fastmcp/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ class Context(BaseModel, Generic[ServerSessionT, LifespanContextT]):
897897
"""Context object providing access to MCP capabilities.
898898
899899
This provides a cleaner interface to MCP's RequestContext functionality.
900-
It gets injected into tool and resource functions that request it via type hints.
900+
It gets injected into tool functions that request it via type hints.
901901
902902
To use context in a tool function, add a parameter with the Context type annotation:
903903

0 commit comments

Comments
 (0)