Skip to content

External MCP: e2e tests and docs (#823) - #829

Merged
07prajwal2000 merged 2 commits into
Fluxify-rest:mainfrom
07prajwal2000:feat/823-mcp-e2e-docs
Oct 17, 2026
Merged

07prajwal2000 merged 2 commits into
Fluxify-rest:mainfrom
07prajwal2000:feat/823-mcp-e2e-docs

Conversation

@07prajwal2000

Copy link
Copy Markdown
Collaborator

Closes #823. Part of #799.

Why

The external MCP work (#820–#822) had no end-to-end coverage and no user docs.

What

  • E2E (testing/e2e/tests/externalMcp.test.ts): admin creates an mcp integration with a cfg: header and test connection lists the 6 tools; wrong key fails; creator gets 403 on create/update/delete and can read; settings.ai.agentMcpIntegrations saves; dev uses devConfig unless "same as prod" is on.
  • Agent job path (apps/ai-gateway/src/agent/externalMcp.test.ts): real executeRun + buildAgent + MCP clients against the math server with a scripted model, no Postgres/NATS. Covers approval pause and approve (result 5, one call), deny, @ mention preload, servers outside the setting invisible, abort during slow_add closes clients. "Always" is checked with runAgent directly, since jobs never carry it.
  • Docs: new integrations/mcp-servers.md (sidebar + index link); getting-started/ai-agents.md gets "Use other MCP servers" and a Safety bullet (external calls always ask).

Notes

  • The dev/prod e2e case can't see the server name (test connection returns tools only), so production points at a server that refuses the call and development at one that answers.
  • @fluxify/mcp-math added to e2e devDependencies; CI filters already covered it.

@07prajwal2000
07prajwal2000 merged commit 12692f0 into Fluxify-rest:main Oct 17, 2026
14 checks passed
@07prajwal2000
07prajwal2000 deleted the feat/823-mcp-e2e-docs branch October 17, 2026 19:48
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.

External MCP: e2e and docs

1 participant