
Arm Code Mcp
io.github.jean-johnson-zwix由 GitHub 账号 jean-johnson-zwix 发布v0.1.0更新于 Oct 25, 2026
MCP server for Arm64 Linux performance: parse perf output, suggest NEON intrinsics, audit deps.
概览
本地 MCP 服务器,帮助助手优化 Arm64 上的 Linux 工作负载:解析 perf 输出、推荐 NEON 内建函数、审计依赖清单。
- 可以做什么
- 解析 perf report 输出,按开销排序返回热点符号列表,并附带警告,可按返回数量和最低开销阈值过滤。根据对热点循环的描述,从包含 110 条目的精选知识库中推荐 NEON SIMD 内建函数,并按目标架构过滤。扫描 requirements.txt、pyproject.toml 或 Dockerfile 内容,标记缺少 arm64 wheel 的软件包,分为 error、warning、info 三个级别。三个工具均离线运行并返回结构化结果。
- 适用场景
- 适用于对 Linux 软件进行性能分析或移植到 Arm64 时,让助手解读 perf 报告、为热点循环挑选 NEON 内建函数,或在构建前检查 Python 依赖是否有 arm64 wheel。
- 运行要求
- 作为本地 stdio 进程运行,通常通过已发布的 Docker 镜像启动,因此需要 Docker;还需要兼容 MCP 的客户端,如 Claude Code、GitHub Copilot 或 Codex。无需认证或 API 密钥。可选环境变量 ARM_CODE_MCP_LOG_LEVEL、ARM_CODE_MCP_KB_PATH 和 ARM_CODE_MCP_CACHE_DIR;无配置也可使用。
安装
在 SourceWeft 中
- 打开 控制台中的 Arm Code Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
arm-code-mcp
An MCP server that helps AI assistants optimize Linux workloads on Arm64.
It parses perf report output, recommends NEON SIMD intrinsics for hot loops,
and audits Python dependency manifests for arm64 wheel availability —
all offline, all structured, all callable from Claude Code, GitHub Copilot, and Codex.
What's inside
analyze_perf_output— parseperf report --stdiointo a ranked list of hot symbolssuggest_neon_intrinsic— semantic + keyword search over 110 curated NEON intrinsicscheck_arm64_deps— flag packages inrequirements.txt,pyproject.toml, orDockerfilethat lack arm64 wheels or require special handling
Prerequisites
- Docker
- An MCP-compatible AI assistant (Claude Code, GitHub Copilot, Codex)
Quick start
Add to your MCP client config (e.g. ~/.claude/mcp.json):
Restart your client. All three tools are now available.
Tools
analyze_perf_output
Parse raw perf report --stdio output and return the top hot symbols, ranked by overhead.
Example response:
suggest_neon_intrinsic
Recommend NEON intrinsics for a hot loop using hybrid semantic + exact-name retrieval over a curated knowledge base of 110 intrinsics.
Example response:
check_arm64_deps
Scan a dependency manifest and flag packages with known arm64 compatibility issues. Fully offline — no network calls, fast, deterministic.
Example response:
Severity levels:
Configuration
All env vars are optional. The server works with no configuration.
Pass env vars to the container:
Evaluation
suggest_neon_intrinsic is evaluated against 15 hand-curated (query, expected intrinsic) pairs
using the real all-MiniLM-L6-v2 embedding model. Current baseline:
The regression guard exits non-zero if hit@3 drops below 0.70.
Run the eval harness locally:
See eval/README.md for methodology and known limitations.
Development
Makefile targets:
Multi-arch images (linux/amd64 + linux/arm64) are built and pushed automatically
by .github/workflows/release.yml on v*.*.* tags.
Knowledge base maintenance
The NEON intrinsics knowledge base lives in src/arm_code_mcp/kb/data/neon_intrinsics.jsonl
(110 entries). To add intrinsics or refresh after a model upgrade, see docs/kb-refresh.md.
Roadmap
Tools
parse_flamegraph— extract hot paths from Linux perf flamegraph SVGsuggest_sve2_intrinsic— extend retrieval to SVE2 intrinsics (Neoverse V2, Cortex-X4)
Eval
- Multi-query paraphrase expansion for each gold pair
- Reranking pass over semantic candidates
- Larger gold set (50+ queries) for lower metric variance
Demo
Coming soon.
Contributing
Stars, forks, and issues are welcome. Open a PR or file an issue on GitHub.
Good first issues:
- Add more NEON intrinsic entries to
kb/data/neon_intrinsics.jsonl - Add gold eval queries for SVE2 intrinsics
- Add
parse_flamegraphtool for Linux perf flamegraph SVG files
License
Apache 2.0 — same as arm/mcp.
来源:README.md,提交 ead6db8
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。