fix mcp in notebook

This commit is contained in:
Xi Yan 2025-03-25 15:20:48 -07:00
parent 2f38851751
commit 83562e5530

View file

@ -2519,11 +2519,11 @@
"outputs": [],
"source": [
"# NBVAL_SKIP\n",
"from llama_stack_client.types.shared_params.url import URL\n",
"from llama_stack_client.types.tool_group import McpEndpoint\n",
"client.toolgroups.register(\n",
" toolgroup_id=\"mcp::filesystem\",\n",
" provider_id=\"model-context-protocol\",\n",
" mcp_endpoint=URL(uri=\"http://localhost:8000/sse\"),\n",
" mcp_endpoint=McpEndpoint(uri=\"http://localhost:8000/sse\"),\n",
")"
]
},