Skip to content

Commit c6d3bdc

Browse files
Fix experimental capabilities example
See discussion in modelcontextprotocol/modelcontextprotocol#65.
1 parent e414828 commit c6d3bdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/server/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
async def handle_tool_call(ctx: RequestContext, arguments: dict[str, Any]) -> Any:
1414
# Check client capabilities before proceeding
1515
if ctx.session.check_client_capability(
16-
types.ClientCapabilities(experimental={"advanced_tools": True})
16+
types.ClientCapabilities(experimental={"advanced_tools": dict()})
1717
):
1818
# Perform advanced tool operations
1919
result = await perform_advanced_tool_operation(arguments)

0 commit comments

Comments
 (0)