#!/usr/bin/env bash set -eo pipefail cd "$(dirname "$0")/../../.." source scripts/lib.sh MODEL="${MODEL:-claude-haiku-4-5-20251001}" # MCP connector (beta mcp-client-2025-11-20): remote public MCP server (DeepWiki) via mcp_servers + mcp_toolset. Blocks: mcp_tool_use -> mcp_tool_result. # STATUS: LIVE_VERIFIED 2026-09-18 (i1: read_wiki_structure call + result, ~$0.003). Without the header -> 400 (i2). R=$(ant POST /v1/messages -H 'anthropic-beta: mcp-client-2025-11-20' -d "$(jq -n --arg m "$MODEL" '{model:$m,max_tokens:200,mcp_servers:[{type:"url",url:"https://mcp.deepwiki.com/mcp",name:"deepwiki"}],tools:[{type:"mcp_toolset",mcp_server_name:"deepwiki"}],messages:[{role:"user",content:"Call the read_wiki_structure tool for the GitHub repo anthropics/anthropic-sdk-python and reply with only the first 3 topic names."}]}')") log_request anthropic POST /v1/messages "$ANT_STATUS" 0.003 "mcp/mcp_connector.sh" echo "$R" | jq -c '.content[]|{type,name,server_name,input,is_error,text}'