{"id":34516896,"url":"https://github.com/bloopai/dev-manager-mcp","last_synced_at":"2026-05-26T21:02:03.377Z","repository":{"id":322003970,"uuid":"1087637592","full_name":"BloopAI/dev-manager-mcp","owner":"BloopAI","description":"Make it easy to launch multiple dev servers in parallel","archived":false,"fork":false,"pushed_at":"2025-11-06T20:16:28.000Z","size":68,"stargazers_count":129,"open_issues_count":1,"forks_count":9,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-05T06:00:07.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BloopAI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-01T10:27:40.000Z","updated_at":"2026-03-31T18:59:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/BloopAI/dev-manager-mcp","commit_stats":null,"previous_names":["bloopai/dev-manager-mcp"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/BloopAI/dev-manager-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BloopAI%2Fdev-manager-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BloopAI%2Fdev-manager-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BloopAI%2Fdev-manager-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BloopAI%2Fdev-manager-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BloopAI","download_url":"https://codeload.github.com/BloopAI/dev-manager-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BloopAI%2Fdev-manager-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33538660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-24T04:23:51.016Z","updated_at":"2026-05-26T21:02:03.372Z","avatar_url":"https://github.com/BloopAI.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MCP Dev Server Manager\n\nA daemon that accepts requests from MCP clients to start dev servers, allocating unique ports to avoid collisions and shutting down idle connections after 120s of inactivity.\n\n## Example\n\n- User starts daemon\n- User's first MCP client (eg coding CLI) requests to run a dev server\n  - Dev server is started on PORT 3010\n- User's second MCP client (eg coding CLI) requests to run a dev server\n  - Dev server is started on PORT 3011\n\n## Features\n\n- **Run multiple dev servers in parallel**: useful if you want to use automated testing tools eg [Playwright](https://github.com/microsoft/playwright-mcp) or [Google Dev Tools MCP](https://developer.chrome.com/blog/chrome-devtools-mcp)\n- **Avoid port collisions**: when working with websites, it's often necessary to specify different ports if you want to run multiple dev servers\n- **Automatic port allocation** starting at 3010 with reuse\n- **Log capture** with 512KB ring buffers per server\n- **Auto-cleanup** of idle sessions after 120 seconds (configurable via `--idle-timeout`)\n\n## Installation \u0026 Usage\n\n**Requirements:** Node.js \u003e= 18\n\nThe recommended way to use dev-manager-mcp is via `npx`:\n\n### Quick Start\n\nMake sure the daemon is running in a terminal somewhere:\n\n```bash\nnpx -y dev-manager-mcp\n```\n\nAdd this MCP config to your coding CLI:\n\n```bash\n{\n  \"mcpServers\": {\n    \"dev-manager\": {\n      \"command\": \"npx\",\n      \"args\": [\"dev-manager-mcp\", \"stdio\"]\n    }\n  }\n}\n```\n\nFinally, ask your coding CLI to start a dev server. You should see it use the MCP server.\n\n## MCP Tools\n\n### `start`\nStart a development server. Auto-generates a unique 4-character session key.\n\n**Parameters:**\n- `command` (string): Shell command to execute (e.g., \"npm run dev\", \"python -m http.server 8080\")\n- `cwd` (optional string): Working directory for the command. When using STDIO transport, defaults to client's working directory.\n\n**Returns:**\n```json\n{\n  \"status\": \"started\",\n  \"port\": 3010,\n  \"session_key\": \"A3X9\"\n}\n```\n\n### `stop`\nStop a running development server session.\n\n**Parameters:**\n- `session_key` (string): Session identifier\n\n**Returns:**\n```json\n{\n  \"status\": \"stopped\",\n  \"session_key\": \"A3X9\"\n}\n```\n\n### `status`\nGet status of one or all development server sessions.\n\n**Parameters:**\n- `session_key` (optional string): Specific session to query, or omit for all sessions\n\n**Returns:**\n```json\n{\n  \"sessions\": [\n    {\n      \"session_key\": \"B7K2\",\n      \"port\": 3010,\n      \"running\": true\n    }\n  ]\n}\n```\n\n### `tail`\nGet stdout/stderr logs for a development server session.\n\n**Parameters:**\n- `session_key` (string): Session identifier (e.g., \"A3X9\")\n\n**Returns:**\n```json\n{\n  \"session_key\": \"A3X9\",\n  \"stdout\": \"Server started on port 3010...\",\n  \"stderr\": \"\"\n}\n```\n\n## Architecture\n\n### Modules\n\n- **port_allocator.rs** - Sequential port allocation from 3010 with free list\n- **log_buffer.rs** - Bounded 512KB ring buffer with Clone support\n- **server_entry.rs** - Process wrapper with async log capture\n- **manager.rs** - Shared state manager with auto-cleanup sweeper\n- **service.rs** - MCP service with tool definitions\n- **main.rs** - HTTP/SSE daemon server\n\n### State Management\n\n- Single `Arc\u003cManager\u003e` shared across all client connections\n- Each connection gets a fresh `DevManagerService` instance\n- Mutex-protected HashMap for session storage\n- Background sweeper runs every 5 seconds to clean up idle sessions (\u003e120s by default)\n\n### Session Keys\n\n- Auto-generated 4-character uppercase alphanumeric codes (e.g., \"A3X9\", \"K7M2\")\n- Guaranteed unique across active sessions\n- 1,679,616 possible combinations (36^4)\n\n### Port Allocation\n\n- Starts at 3010 and increments sequentially\n- Maintains free list for reused ports\n- Probes availability with TcpListener before assignment\n\n### Log Capture\n\n- Each server spawns two async tasks for stdout/stderr\n- Logs stored in bounded VecDeque with byte tracking\n- Oldest entries evicted when 512KB limit reached\n- Non-blocking reads with line buffering\n\n## Testing Multi-Client Behavior\n\n1. Start daemon: `npx -y dev-manager-mcp daemon`\n2. Connect Client A and start a server session\n3. Connect Client B and query status - should see Client A's session\n4. Client B can stop Client A's session\n5. All clients share the same session state\n\n## Building from Source\n\nIf you prefer to build from source or need offline/advanced usage:\n\n```bash\ncargo build --release\n```\n\nThe binary will be at `target/release/dev-manager-mcp`.\n\nTo use the built binary, replace `npx dev-manager-mcp` with `./target/release/dev-manager-mcp` in all examples above.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloopai%2Fdev-manager-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbloopai%2Fdev-manager-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloopai%2Fdev-manager-mcp/lists"}