mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-19 14:54:24 +01:00
Fix experimental capabilities example
See discussion in https://github.com/modelcontextprotocol/specification/pull/65.
This commit is contained in:
committed by
GitHub
parent
e41482821c
commit
c6d3bdce0f
@@ -13,7 +13,7 @@ Common usage pattern:
|
||||
async def handle_tool_call(ctx: RequestContext, arguments: dict[str, Any]) -> Any:
|
||||
# Check client capabilities before proceeding
|
||||
if ctx.session.check_client_capability(
|
||||
types.ClientCapabilities(experimental={"advanced_tools": True})
|
||||
types.ClientCapabilities(experimental={"advanced_tools": dict()})
|
||||
):
|
||||
# Perform advanced tool operations
|
||||
result = await perform_advanced_tool_operation(arguments)
|
||||
|
||||
Reference in New Issue
Block a user