Commit Graph
5 Commits
Author SHA1 Message Date
nubs 0b96061793 fix(mcp): confine oauth file paths (#2272) 2026-06-04 19:10:23 +02:00
nubs 13284bb132 refactor(search): make src analytics a service shim (#2264) 2026-06-04 18:57:24 +02:00
NubsCarson 8de8b0a0b4 fix(mcp): route literal MCP requests to external schemas 2026-06-04 13:00:17 +00:00
NubsCarson 295ebd4038 fix(mcp): expose MCP tool input parameters to the agent
MCP server tools were presented to the agent with only their name and a
truncated description: get_tool_descriptions_for_prompt() emitted
"- name: description" and get_all_tools() dropped input_schema entirely.
On the fenced-block tool path (used by Ollama models), the agent could
not see a tool's declared inputs and guessed argument names from the
description alone, so tool calls failed (issue #2509). MCP inspector
showed the schemas fine, confirming the loss was on our side.

- get_all_tools() now carries each tool's input_schema.
- get_tool_descriptions_for_prompt() renders a compact args hint
  (parameter names, coarse types, required-ness) via a new
  _format_mcp_params() helper, matching the "Args (JSON): {...}" style
  the built-in tool descriptions already use.

Fixes #2509
2026-06-04 12:51:31 +00:00
nubs 44cc84cc6f fix(tests): clean agent loop import stubs 2026-06-04 03:44:49 +01:00