BYO Server

BYO Server

Headless local stdio MCP server for board-debug operations, allowing compatible clients to use tools for firmware debugging and board management.

Category
访问服务器

README

BYO Server

BYO Server is the headless, local stdio MCP server for Firmware-CLI's board-debug substrate. Any compatible MCP client can use its ordinary tools. The optional R11 harness is a separate Codex-specific benchmark; it is not the definition of normal BYO use.

The server owns the safety boundary. Clients request operations, while server.py, the guardrails, and the board-facing services validate arguments, enforce flash/recover policy, record sessions, and block repeated unsafe mutation patterns. MCP tool names, schemas, and operation contracts live in the tool docstrings in src/pyocd_debug_mcp/server.py; this project intentionally does not maintain duplicate per-tool sidecar documentation.

Supported deployment

Operational use is checkout-only. Run commands from this BYO-Server/ directory. Board profiles, firmware, pinned-pack metadata, bootstrap scripts, R11 cases, and benchmark workspaces are checkout-owned resources and are not bundled into the wheel. The wheel is built and fresh-installed only to verify metadata, console entrypoints, and importability; an installed wheel is not a supported board-control or benchmark deployment.

Python 3.12 is the team pin in .python-version; package metadata retains the runtime's Python 3.10 minimum. Windows and macOS have bounded setup scripts. Linux is not currently covered by a host setup script.

Start here

  1. Read init.md for host prerequisites and initial setup.

  2. Follow stage0_setup.md for board-scoped readiness and Stage 0/1 validation.

  3. Register the stdio server with an MCP client. A generic command shape is:

    {
      "mcpServers": {
        "pyocd-debug": {
          "command": "uv",
          "args": [
            "run",
            "--project",
            "<absolute-path-to-BYO-Server>",
            "--locked",
            "pyocd-debug-mcp"
          ]
        }
      }
    }
    

    Use the client's normal configuration mechanism and replace the placeholder with this checkout's absolute path. The server uses stdio; stdout belongs to MCP framing.

The retained public console scripts are:

  • pyocd-debug-mcp: start the stdio MCP server. It has no conventional --help mode; its contract is the MCP initialize/list-tools surface.
  • pyocd-pack-repair --help: inspect or repair selected CMSIS-Pack index descriptors.
  • pyocd-zephyr-build --help: provision or use a Zephyr build environment.

Board bootstrap, Stage 0, Stage 1, and R11 remain checkout commands rather than new public entrypoints:

uv run --locked python host_bootstrap.py --help
uv run --locked python stage0_check.py --help
uv run --locked python -m tests.harness.stage1_smoke --help
uv run --locked python -m tests.harness.r11_benchmark --help

Product boundary

Included here are the local MCP server, adapters, guardrails, shared board-facing services, board and firmware data, pack/bootstrap support, and the R10/R11 test and benchmark closure. The turnkey brain, UX, provider-memory runtime, Codex app-server services, R12 harness, skills/playbooks bundles, Rich, and prompt_toolkit are excluded.

The ordinary server is model-agnostic. R11 launches codex exec, requires Codex registration/provider access plus live hardware, enforces its own frozen prompt/result/scoring contract, and writes benchmark artifacts under runs/. Passing R11 demonstrates that benchmark path only; it is not universal proof for every MCP client.

Current state and limits

  • Sessions use a process-local InMemorySessionStore plus durable JSONL and summary files under runs/. There is no Redis implementation in this copy.
  • A server restart loses the in-memory session index even though prior run files remain on disk.
  • Explicit disconnect and normal service paths close owned pyOCD/serial handles, but full descendant process-tree and interrupted-run cleanup proof remains open. A timeout must not be interpreted as proof that every child or hardware-adjacent resource was cleaned up.
  • The official proof pair is nrf52833dk plus nucleo_l476rg. nrf52840dk is retained alternate Nordic evidence and does not substitute for exact nrf52833dk or official-pair proof.
  • This extraction ran non-hardware checks only. Fresh standalone hardware, provider, MCP Inspector, and cross-host proof remain pending; see docs/verification.md.

Distribution and licensing

No authoritative project-root LICENSE or NOTICE file was available to copy. This project does not invent one and pyproject.toml makes no license claim. Publishing or redistributing the standalone artifact is blocked on a human decision identifying the authoritative license and required notices.

More detail

Verified

The S1-S4 extraction, ordinary MCP contract parity, standalone resource roots, R11 corpus isolation, and the BYO-only packaging/documentation contract have non-hardware evidence recorded in the extraction artifacts.

Pending verification

Complete clean-room integration (S6), independent review, fresh Windows/macOS, official-board hardware, live Codex/R11, MCP Inspector, cleanup, layout/drift, and authoritative licensing decisions remain pending.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选