buildmymcpserver/apps
Marco Sadjadi 147ba69968
Some checks failed
Deploy to Production / deploy (push) Has been cancelled
fix(runner): alias params/input to args so tool implementations don't ReferenceError
Auth chain finally landed but tool calls crashed in the wetter server
with "Error: params is not defined". The MCP SDK passes the validated
tool args as a single parameter; our template names that parameter
`args` but the model frequently writes `params.location` / `input.x`
because that's how OpenAPI and JSON-RPC reference docs read.

Two-sided fix:
- render.ts wraps every implementation with `const params = args; const
  input = args;` inside the try block. Whichever alias the model
  picked, the variable resolves to the same validated object.
- SYSTEM_PROMPT now states the variable name EXPLICITLY ("variable
  named EXACTLY `args`, e.g. args.location") so new generations stop
  drifting on that detail.

Existing wetter runner needs a rebuild to pick up the alias shim.
2026-05-28 21:39:11 +02:00
..
api fix(oauth): accept client_secret_basic on /oauth/token (RFC 6749 §2.3.1) 2026-05-28 21:28:23 +02:00
generator fix(runner): alias params/input to args so tool implementations don't ReferenceError 2026-05-28 21:39:11 +02:00
runner-template fix(docker): healthcheck must hit 127.0.0.1, not localhost 2026-05-21 18:07:01 +02:00
web feat(preview): SSE-streamed generation, no CF 100s edge cap 2026-05-28 21:11:05 +02:00