Skip to content

feat: add MCP file support for ACP server configuration#214

Closed
35C4n0r wants to merge 11 commits intomainfrom
35C4n0r/acp-mcp
Closed

feat: add MCP file support for ACP server configuration#214
35C4n0r wants to merge 11 commits intomainfrom
35C4n0r/acp-mcp

Conversation

@35C4n0r
Copy link
Copy Markdown
Collaborator

@35C4n0r 35C4n0r commented Apr 5, 2026

No description provided.

@35C4n0r 35C4n0r self-assigned this Apr 5, 2026
@35C4n0r 35C4n0r requested review from Copilot and removed request for Copilot April 5, 2026 17:56
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

✅ Preview binaries are ready!

To test with modules: agentapi_version = "agentapi_214" or download from: https://github.com/coder/agentapi/releases/tag/agentapi_214

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for supplying MCP server configuration via a JSON file when running the server in experimental ACP transport mode, and passes the filtered MCP server list into the ACP session initialization.

Changes:

  • Add --mcp-file server flag (and env var support via Viper) gated behind --experimental-acp.
  • Load and filter MCP servers from a JSON file based on agent MCP capabilities, and send them in NewSession.
  • Add unit/integration tests for MCP config loading/filtering and flag validation behavior.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
x/acpio/acpio.go Loads MCP config from file, filters unsupported server types, and passes supported MCPs to ACP NewSession.
x/acpio/mcp_internal_test.go Adds internal unit tests for MCP config loading and capability-based filtering.
x/acpio/acpio_test.go Updates NewWithPipes test helper call for new MCP file path parameter.
lib/httpapi/setup.go Plumbs MCP file path through SetupACPConfig into acpio.NewWithPipes.
cmd/server/server.go Introduces --mcp-file flag, validates it requires --experimental-acp, and passes it into ACP setup.
cmd/server/server_test.go Adds tests asserting the new flag can be set via default/CLI/env var and precedence rules.
e2e/echo_test.go Adds integration coverage ensuring --mcp-file fails without --experimental-acp.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@35C4n0r 35C4n0r removed the request for review from johnstcn April 5, 2026 18:27
@35C4n0r 35C4n0r requested review from Copilot and removed request for Copilot April 6, 2026 02:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@35C4n0r 35C4n0r marked this pull request as draft April 6, 2026 02:57
@35C4n0r 35C4n0r marked this pull request as ready for review April 6, 2026 05:42
@35C4n0r 35C4n0r closed this Apr 6, 2026
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.

2 participants