DevServer MCP

DevServer MCP

An MCP server that enables programmatic management and monitoring of development servers through a unified interface and interactive TUI. It provides tools for process control, log streaming, and experimental browser automation via Playwright.

Category
访问服务器

README

DevServer MCP

A Model Context Protocol (MCP) server that manages development servers for LLM-assisted workflows. Provides programmatic control over multiple development servers through a unified interface with a simple TUI, plus experimental browser automation via Playwright.

You can also turn the servers on and off by clicking via the TUI.

Screenshot

Project Status

This is both ALPHA software and an exercise in vibe coding; most of this codebase is written with the help of LLM tools.

The tests validate some of the functionality and the server is already useful if you happen to need the functionality but YMMV.

Features

  • 🚀 Process Management: Start, stop, and monitor multiple development servers
  • 📊 Rich TUI: Interactive terminal interface with real-time log streaming
  • 🌐 Browser Automation: Experimental Playwright integration for web testing and automation
  • 🔧 LLM Integration: Full MCP protocol support for AI-assisted development workflows

Installation

uv add --dev git+https://github.com/Uninen/devserver-mcp.git --tag v0.6.0

Playwright (Optional)

If you want to use the experimental Playwright browser automation features, you must install Playwright manually:

# Install Playwright
uv add playwright

# Install browser drivers
playwright install

Quick Start

Create a devservers.yml file in your project root:

servers:
  backend:
    command: 'python manage.py runserver'
    working_dir: '.'
    port: 8000

  frontend:
    command: 'npm run dev'
    working_dir: './frontend'
    port: 3000
    autostart: true

  worker:
    command: 'celery -A myproject worker -l info'
    working_dir: '.'
    port: 5555
    prefix_logs: false

# Optional: Enable experimental Playwright browser automation
experimental:
  playwright: true

Configuration

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "devserver": {
      "url": "http://localhost:3001/mcp/",
      "type": "http"
    }
  }
}

Then run the TUI in a separate terminal: devservers

Claude Code

Install the server locally:

claude mcp add --transport http devservers http://localhost:3001/mcp/

..or for a project (which saves it to a .mcp.json in the project):

claude mcp add -s project --transport http devservers http://localhost:3001/mcp/

Then run the TUI in a separate terminal: devservers

Gemini CLI

Add the server configuration in settings.json (~/.gemini/settings.json globally or .gemini/settings.json per project, see docs):

...
  "mcpServers": {
    "devservers": {
      "httpUrl": "http://localhost:3001/mcp",
      "timeout": 5000,
      "trust": true
    }
  },
...

Then run the TUI in a separate terminal: devservers

Zed

Zed doesn't yet support remote MCP servers natively so you need to use a proxy like mcp-proxy.

You can either use the UI in Assistant Setting -> Context Server -> Add Custom Server, and add name "Devservers" and command uvx mcp-proxy --transport streamablehttp http://localhost:3001/mcp/, or, you can add this manually to Zed config:

  "context_servers": {
    "devservers": {
      "command": {
        "path": "uvx",
        "args": ["mcp-proxy", "--transport", "streamablehttp", "http://localhost:3001/mcp/"]
      }
    }
  },

Then run the TUI in a separate terminal: devservers

Usage

Running the MCP Server TUI

Start the TUI in terminal:

devservers

Now you can watch and control the devservers and see the logs while also giving LLMs full access to the servers and their logs.

MCP Tools Available

The server exposes the following tools for LLM interaction:

Server Management

  1. start_server(name) - Start a configured server
  2. stop_server(name) - Stop a server (managed or external)
  3. get_devserver_statuses() - Get all server statuses
  4. get_devserver_logs(name, offset, limit, reverse) - Get logs with pagination support
    • offset: Starting position (default: 0, negative values count from end)
    • limit: Maximum logs to return (default: 100)
    • reverse: True for newest first, False for oldest first (default: True)

Browser Automation (Experimental)

When experimental.playwright is set in config:

  1. browser_navigate(url, wait_until) - Navigate browser to URL with wait conditions
  2. browser_snapshot() - Capture accessibility snapshot of current page
  3. browser_console_messages(clear, offset, limit, reverse) - Get console messages with pagination
    • clear: Clear messages after retrieval (default: False)
    • offset: Starting position (default: 0, negative values count from end)
    • limit: Maximum messages to return (default: 100)
    • reverse: True for newest first, False for oldest first (default: True)
  4. browser_click(ref) - Click an element on the page using a CSS selector or element reference
  5. browser_type(ref, text, submit, slowly) - Type text into an element with optional submit (Enter key) and slow typing mode
  6. browser_resize(width, height) - Resize the browser viewport to specified dimensions
  7. browser_screenshot(full_page, name) - Take a screenshot of the current page
    • full_page: Capture full page instead of viewport (default: False)
    • name: Optional filename for the screenshot (default: timestamped name)

Developing

Using MCP Inspector

  1. Start the server: devservers
  2. Start MCP Inspector: npx @modelcontextprotocol/inspector http://localhost:3001

Scripting MCP Inspector

  1. Start the server: devservers
  2. Use MCP Inspector in CLI mode, for example: npx @modelcontextprotocol/inspector --cli http://localhost:3001 --method tools/call --tool-name start_server --tool-arg name=frontend

Elsewhere

Contributing

Contributions are welcome! Please follow the code of conduct when interacting with others.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选