Repository navigation
External MCP servers: integration + agent tools (#820, #821) - #826
Merged
07prajwal2000 merged 4 commits intoOct 16, 2026
Merged
Conversation
Shared MCP client in @fluxify/adapters (connect, listTools, callTool, close; cfg: header resolution), now used by test-connection too. settings.ai.agentMcpIntegrations lists the mcp integrations the agent may use. Each job opens one client per allowed server and closes them when it ends. Tools are ext_<server>__<tool>; list_mcp_tools lists servers and their tools (an unreachable one shows its error); load_tools takes ext_ names; a message's `mentions` preloads a server's tools. Every ext_ call asks in every mode and is never approved for the session; the approval carries the server name.
Streamable HTTP math server (add, subtract, multiply, divide, sum, slow_add) with optional required headers and a call log, so MCP integration and e2e tests share one server instead of ad-hoc ones.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #799. Closes #820, closes #821.
Why
The internal agent can only act inside Fluxify. Projects can now connect external MCP servers (GitHub, Linear, internal APIs) as integrations, and the agent can use their tools. Every external call asks the user.
What
#820 MCP integration
mcp(varianthttp):url+headerslist. Dev/prod config like other groups. Header values can reference app config.mcpintegration. Creators can read it.#821 Agent tools
packages/adapters/mcp(Streamable HTTP), reusable by AI agent blocks later.settings.ai.agentMcpIntegrationspicks which servers the agent can use.ext_<server>__<tool>. The new core toollist_mcp_tools({ server? })finds them, andload_toolsloads them.mentions(integration ids). A mentioned server's tools are preloaded for the run.ext_call asks in every mode and is never covered by "always allow". The approval event carriesserver.Test helper
@fluxify/mcp-math: a small math MCP server for integration and e2e tests, with its own CI job.Not in this PR
Portal (#822), e2e and docs (#823), OAuth (#824).
Tests
modes.specandmodesProduction.spec; tool tests inexternal.spec.mcp-mathserver tests.