Fix experimental capabilities example
See discussion in https://github.com/modelcontextprotocol/specification/pull/65.
This commit is contained in:
parent
e41482821c
commit
c6d3bdce0f
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ Common usage pattern:
|
||||||
async def handle_tool_call(ctx: RequestContext, arguments: dict[str, Any]) -> Any:
|
async def handle_tool_call(ctx: RequestContext, arguments: dict[str, Any]) -> Any:
|
||||||
# Check client capabilities before proceeding
|
# Check client capabilities before proceeding
|
||||||
if ctx.session.check_client_capability(
|
if ctx.session.check_client_capability(
|
||||||
types.ClientCapabilities(experimental={"advanced_tools": True})
|
types.ClientCapabilities(experimental={"advanced_tools": dict()})
|
||||||
):
|
):
|
||||||
# Perform advanced tool operations
|
# Perform advanced tool operations
|
||||||
result = await perform_advanced_tool_operation(arguments)
|
result = await perform_advanced_tool_operation(arguments)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue