| fix(gateway): harden MCP timeout recovery, soften router config, expand web_search
- mcp: on -32001 Request timed out, recycle the stdio transport so the
next call respawns the subprocess. Stops @playwright/mcp-style
wedges where the server-side page.goto keeps running and every
follow-up call from the same session also times out.
- router: stop treating a partial router: block from the UI as fatal.
parseRouterConfig now keeps the rest of the config when scenarios
is absent; ensureRouterConfig fills scenarios.default from
agent.model so RouterRuntime always sees a valid map.
- web_search: route tools.webSearch.{apiKey,endpoint} from yaml into
the builtin tool; add hostname-based auth-mode auto-detection so
*.serp.hk / *.serp.global endpoints use POST + Bearer (their
current API shape) while SerpAPI keeps the legacy GET ?api_key=.
- ui/server: add POST /api/config/test-web-search mirroring the same
dialect rules so the Settings → Search Test button probes the exact
shape the agent tool will use.
Co-authored-by: Cursor <cursoragent@cursor.com>
| 18 天前 |