Skip to content

Add MCP server facade module#481

Closed
knoxHuang wants to merge 3 commits intococos:mainfrom
knoxHuang:task
Closed

Add MCP server facade module#481
knoxHuang wants to merge 3 commits intococos:mainfrom
knoxHuang:task

Conversation

@knoxHuang
Copy link
Copy Markdown
Contributor

@knoxHuang knoxHuang commented Apr 14, 2026

Summary

  • Add new src/lib/mcp/mcp.ts facade module that provides startServer, stopServer, and getStatus APIs for MCP server lifecycle management
  • Export the new Mcp module from src/lib/index.ts
  • The facade is designed to be called from the utility process, assuming core modules (project/engine/assets/scripting/builder) are already initialized

Test plan

  • Verify Mcp.startServer() launches the Express server and registers MCP middleware
  • Verify Mcp.stopServer() cleanly shuts down the server
  • Verify Mcp.getStatus() returns correct running state and URL
  • Verify duplicate startServer() calls return the existing URL without restarting

knoxHuang and others added 3 commits April 14, 2026 19:32
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@knoxHuang knoxHuang closed this Apr 14, 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.

1 participant