Summary
Implement Track A Phase 2 from #1013: make outbound MCP discovery, capability metadata, schema handling, and result handling more robust.
Scope
- Add an MCP compatibility probe endpoint or discovery mode.
- Capture transport, auth method, tool count, capability hints, and warnings.
- Preserve richer cached tool metadata including original name, normalized function name, description, input schema, annotations where available, output schema where available, and structured-content hints where available.
- Keep compatibility with existing
mcp_tools entries.
- Add opt-in or warning-only input schema validation before invocation.
- Replace the single hard-coded truncation behavior with explicit result policies.
- Add UI warnings for empty tool lists, failed discovery with cached tools, duplicate normalized function names, unsupported prompts/resources, and overly broad schemas.
Acceptance Criteria
Notes
Parent: #1013
Planning doc: docs/explanation/features/MCP_PLUGIN_ROBUSTNESS_PLAN.md
Priority: P1
Size: M
Summary
Implement Track A Phase 2 from #1013: make outbound MCP discovery, capability metadata, schema handling, and result handling more robust.
Scope
mcp_toolsentries.Acceptance Criteria
mcp_toolsremain readable and valid.Notes
Parent: #1013
Planning doc:
docs/explanation/features/MCP_PLUGIN_ROBUSTNESS_PLAN.mdPriority: P1
Size: M