Skip to content

[codex] Add an evolve-mcp launcher with SSE support#175

Merged
gaodan-fang merged 1 commit intomainfrom
support-mcp-launcher
Apr 9, 2026
Merged

[codex] Add an evolve-mcp launcher with SSE support#175
gaodan-fang merged 1 commit intomainfrom
support-mcp-launcher

Conversation

@gaodan-fang
Copy link
Copy Markdown
Collaborator

Summary

This PR adds a dedicated evolve-mcp console script for launching the MCP server and extends the launcher so it can run over either stdio or sse.

What Changed

  • added evolve-mcp = "altk_evolve.frontend.mcp.__main__:main" in pyproject.toml
  • updated the MCP launcher to parse --transport, --host, and --port
  • kept the existing UI background thread behavior for stdio
  • routed sse mode directly through mcp.run(...) without starting the UI thread
  • updated README commands to use the exported launcher
  • added unit tests covering script export, stdio behavior, and SSE behavior

Why

The previous docs pointed at module or fastmcp invocations directly. This change provides a single supported entrypoint for local usage and MCP client configuration, while also making SSE launch behavior available from the same command.

Impact

  • users can launch the MCP server with uv run evolve-mcp
  • SSE transport can be started with uv run evolve-mcp --transport sse --port 8201
  • the documented MCP startup flow is simpler and more consistent

Validation

  • uv run pytest -v tests/unit/test_mcp_launcher.py

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 9, 2026

Warning

Rate limit exceeded

@gaodan-fang has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 19 minutes and 44 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 19 minutes and 44 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9f61d062-b063-4fff-8cde-62155c9a1e47

📥 Commits

Reviewing files that changed from the base of the PR and between 805886a and bddaaa0.

📒 Files selected for processing (4)
  • README.md
  • altk_evolve/frontend/mcp/__main__.py
  • pyproject.toml
  • tests/unit/test_mcp_launcher.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch support-mcp-launcher

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gaodan-fang gaodan-fang force-pushed the support-mcp-launcher branch from dca7cd2 to bddaaa0 Compare April 9, 2026 14:59
@gaodan-fang gaodan-fang marked this pull request as ready for review April 9, 2026 15:15
@gaodan-fang gaodan-fang merged commit 965af44 into main Apr 9, 2026
16 checks passed
@visahak visahak deleted the support-mcp-launcher branch April 9, 2026 21:57
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