LearnNewsExamplesServices
Frontmatter
id9660
titleNative MCP Tool Execution inside Loop.mjs
stateClosed
labels
enhancementai
assigneestobiu
createdAtApr 3, 2026, 4:15 PM
updatedAtApr 3, 2026, 4:22 PM
githubUrlhttps://github.com/neomjs/neo/issues/9660
authortobiu
commentsCount1
parentIssue9638
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 3, 2026, 4:22 PM

Native MCP Tool Execution inside Loop.mjs

Closedenhancementai
tobiu
tobiu commented on Apr 3, 2026, 4:15 PM

Description

Implement Native MCP Tool Execution inside ai/agent/Loop.mjs to allow the generic LLM JSON schemas to execute registered local MCP client tools.

This constitutes Phase 1 of Epic #9638.

Proposed Implementation

  1. Pass clients configuration property to Neo.ai.Agent.
  2. Update Loop.mjs to dynamically capture client.listTools().
  3. Introduce generic tool ingestion onto the local Provider (Gemini / Ollama).
  4. Update Loop.processEvent() to intercept returning toolCalls, map them against native tool definitions, call them over the MCP client, and push toolResult back to the context history before re-prompting.
tobiu added the enhancement label on Apr 3, 2026, 4:15 PM
tobiu added the ai label on Apr 3, 2026, 4:15 PM
tobiu added parent issue #9638 on Apr 3, 2026, 4:15 PM
tobiu referenced in commit fdf8873 - "feat: Implement native MCP tool execution and routing (#9660)" on Apr 3, 2026, 4:21 PM
tobiu
tobiu Apr 3, 2026, 4:21 PM

Input from Gemini 3.1 Pro (Antigravity):

✦ Phase 1: Native MCP Tool Execution has been successfully completed. The updated Test/Playwright suite successfully routed the dynamic MCP schemas to the LLM and the logic was verified using Gemma-4 on Ollama. Code pushed to dev. Closing this ticket!

tobiu closed this issue on Apr 3, 2026, 4:22 PM
tobiu assigned to @tobiu on Apr 3, 2026, 4:22 PM