Add /eu-law-chat endpoint and MCP dispatcher hook

↗ view on GitHub · Lucian.schw · 2026-05-17 · 3f39cef1

- chatTools.ts: optional mcpTools parameter on runLLMStream (intercepts
  named tool calls and routes them to an external dispatcher before they
  fall through to runToolCalls)
- euLawMcp.ts: thin HTTP client for the eu-law MCP server, plus
  dispatchEuLawCalls wired into chatTools.ts's mcpTools.dispatch slot
- euLawChat.ts: copy of /chat with EU_LAW_SYSTEM_PROMPT_EXTRA, 4
  hand-written tool schemas, and the MCP dispatcher
- index.ts: register /eu-law-chat router and apply chat rate limiters
Repository lucianschw-dev/eumike
Author Lucian.schw <lucian.lucian26@gmail.com>
Authored
Parents f513b61a
Stats 4 files changed , +959 , -1
Part of Backend /eu-law-chat endpoint and MCP dispatcher

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-3f39cef1.md from inside the repo you want the change in.

⬇ Download capture-commit-3f39cef1.md