Skip to content

ADFA-5149 | Add MCP client plugin and contributed tools routing - #69

Open
jatezzz wants to merge 1 commit into
mainfrom
feat/ADFA-5149-mcp-tool-provider
Open

ADFA-5149 | Add MCP client plugin and contributed tools routing#69
jatezzz wants to merge 1 commit into
mainfrom
feat/ADFA-5149-mcp-tool-provider

Conversation

@jatezzz

@jatezzz jatezzz commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Description

Introduces the ai-agent-mcp plugin, allowing the CodeOnTheGo Agent to connect to external Model Context Protocol (MCP) servers. This enables the agent to discover and interact with remote tools dynamically. Additionally, this PR updates ai-core to expose a ToolSourceRegistry, allowing other plugins to contribute tools directly to the agent's context. Security measures such as Keystore-backed encrypted tokens, prompt tool budgeting, and mandatory user approvals for remote tool execution are included.

Details

  • Transport: Implements MCP's Streamable HTTP transport over HttpURLConnection and parses JSON-RPC/SSE chunks.
  • Settings UI: Adds a full CRUD interface under Preferences for managing MCP servers, headers, encrypted tokens, and per-tool toggles (which are disabled by default to save prompt space).
  • AI Core Integration: Rebuilds the agent's router, executor, and grammar dynamically when tool sources change, ensuring remote tools are strictly mapped and controlled.

🎦 Demo in the ticket

Ticket

Parent: ADFA-2592
ADFA-5149

Observation

  • Dependencies: Deliberately avoided using OkHttp (to prevent classloader collisions with the host IDE's older copy) and the official MCP Kotlin SDK (due to lack of Android targets and strict Kotlin 2.4.10 pinning).
  • Permissions: The ai-agent-mcp plugin relies solely on network.access. It does not request file or project permissions, isolating network operations from local core tools.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@jatezzz
jatezzz force-pushed the feat/ADFA-5149-mcp-tool-provider branch from 059e605 to 14a465c Compare August 17, 2026 18:36
Base automatically changed from refactor/ADFA-5096-split-ai-backend-plugins to main August 18, 2026 14:56
New server settings, secure token storage and JSON-RPC/SSE transport; agent namespaces, budgets and approves contributed tool calls.
@jatezzz
jatezzz force-pushed the feat/ADFA-5149-mcp-tool-provider branch from 14a465c to 343f6f8 Compare August 18, 2026 15:02
@jatezzz

jatezzz commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

This depends on appdevforall/CodeOnTheGo#1685 to be merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant