WFDASH-WEBAPP/src/app/api
Dave e7672ab7c9 feat(mcp): implement structured MCP error handling for upstream fetches
- Introduced structured error handling for MCP upstream fetches, distinguishing between network errors (`-32010`) and upstream errors (`-32011`). This allows the agent to provide more informative feedback based on the type of failure encountered.
- Updated the `fetchUpstreamJson` function to throw `McpUpstreamError` with detailed error data, including hints and next actions for specific tools.
- Enhanced the `TOOL_HINTS` mapping to provide tool-specific guidance for handling errors, improving the agent's ability to respond to various failure scenarios.
- Added comprehensive unit tests to validate the new error handling logic and ensure correct behavior across different error cases.
- Updated documentation in `docs/agents/hermes-skill.md` to include a new section on structured MCP errors, detailing the error codes and their meanings.
2026-08-15 22:32:11 +02:00
..
counter feat(counter): add standalone counter order PWA 2026-08-13 09:27:20 +02:00
dashboard feat(tv): add TV dashboard + refine workflows 2026-08-13 20:55:22 +02:00
invoicing fix(orders,delivery-notes): resolve build type errors after supplier removal 2026-08-12 01:42:19 +02:00
mcp feat(mcp): implement structured MCP error handling for upstream fetches 2026-08-15 22:32:11 +02:00
tv feat(tv): add TV dashboard + refine workflows 2026-08-13 20:55:22 +02:00
v1 feat(quotes): introduce quotes.submit tool for approval transition 2026-08-15 19:01:52 +02:00