Skip to content

feat(setup mcp): add initial mcp integration - #678

Open
akulistus wants to merge 8 commits into
masterfrom
feat/setup-mcp
Open

akulistus wants to merge 8 commits into
masterfrom
feat/setup-mcp

Conversation

@akulistus

Copy link
Copy Markdown

Setup MCP server integration

@akulistus
akulistus added this pull request to stack #682 September 16, 2026 00:43
Comment thread src/integrations/mcp/mcp.ts Resolved
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.13%. Comparing base (0f8dad9) to head (1e7520c).
⚠️ Report is 113 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #678      +/-   ##
==========================================
- Coverage   58.30%   52.13%   -6.17%     
==========================================
  Files          19       64      +45     
  Lines         518     3063    +2545     
  Branches       95      729     +634     
==========================================
+ Hits          302     1597    +1295     
- Misses        216     1387    +1171     
- Partials        0       79      +79     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Approval is blocked by an inconsistent committed lockfile and unresolved MCP authentication and integration-test gaps.

3 open issues
What changed in this PR

Adds initial Model Context Protocol (MCP) support to the Hawk API, including a test hello_world tool and an Express endpoint at /integration/mcp.

Changes:

  • Adds MCP server and Node adapter dependencies.
  • Implements the MCP server and hello_world tool.
  • Registers the MCP route during application startup.
  • Updates package metadata and dependency lockfile.

This pull request requires changes.

File Summary
yarn.lock Adds MCP-related dependency entries, but its resolved selectors do not match the MCP dependency ranges declared in package.json.
src/​integrations/​mcp/​mcp.ts Creates the MCP server and request handler; the server instance should be created per request to avoid shared transport state.
src/​integrations/​mcp/​index.ts Mounts the MCP handler on Express; authentication/authorization and integration coverage are still required.
src/​index.ts Registers the MCP route during application startup after database initialization.
package.json Adds MCP dependencies and updates the package version; the declared dependency ranges require a regenerated lockfile.

Review effort: Lite

Comment thread package.json
Comment on lines +46 to +47
"@modelcontextprotocol/node": "^2.1.2",
"@modelcontextprotocol/server": "^2.4.0",
Comment on lines +11 to +14
export function appendMCPRoutes(app: express.Application, factories: ContextFactories): void {
const handler = createMCPHandler(factories);

app.use('/integration/mcp', (req, res) => handler(req, res, req.body));
export function appendMCPRoutes(app: express.Application, factories: ContextFactories): void {
const handler = createMCPHandler(factories);

app.use('/integration/mcp', (req, res) => handler(req, res, req.body));
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.

4 participants