Tool — Remote MCP server, no auth (type: mcp)
Attach a public remote MCP server (no credentials) to a toolbox. A no-auth server still needs a connection (--kind remote-tool --auth-type none) — the toolbox references it by name and the created toolbox tool carries a populated project_connection_id.
🚦 Before creating a toolbox/connection either way, read create-hosted.md → Toolbox creation boundary.
A. Imperative CLI
Steps 1–3 of toolbox.md § The flow. Write the toolbox spec to a file — azd ai toolbox create --from-file takes a path (stdin - is not supported).
# 0. Install the CLI extension (once)
azd extension install azure.ai.toolboxes
# 1. Create the no-auth connection
azd ai connection create learn-mcp-conn \
--kind remote-tool --target https://learn.microsoft.com/api/mcp \
--auth-type none --project-endpoint "$FOUNDRY_PROJECT_ENDPOINT"
# Write the toolbox spec to a file
cat > learn-mcp.yaml <<'EOF'
description: learn-mcp toolbox
connections:
- name: learn-mcp-conn
EOFCreate a new toolbox (first version auto-promoted):
azd ai toolbox create learn-tools --from-file learn-mcp.yaml --project-endpoint "$FOUNDRY_PROJECT_ENDPOINT"
azd ai toolbox create/deleterequire an azd environment (run inside anazd init'd directory), unlikeconnection create/toolbox showwhich work with just--project-endpoint.
Add to an existing toolbox (new version — then promote):
azd ai toolbox connection add learn-tools learn-mcp-conn --project-endpoint "$FOUNDRY_PROJECT_ENDPOINT"