Brainfaq Mcp

io.github.labarilem由 GitHub 账号 labarilem 发布v1.0.0更新于 Oct 27, 2026

MCP server for the BrainFuck programming language

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

AI 生成的概览

本地 MCP 服务器,让助手在解释器中加载、单步执行并调试 Brainfuck 程序。

可以做什么
  • 加载并重置 Brainfuck 源代码,可配置纸带大小、单元取值上下限和初始输入
  • 按指定指令数单步执行,并查看详细的解释器状态
  • 运行程序直至结束或等待输入,可设置指令数上限
  • 程序等待输入时向输入缓冲区追加字符
  • 读取当前内存、指针与输出,或获取目前已产生的完整输出
适用场景
适合让助手逐步跟踪、测试或讲解小型 Brainfuck 程序,而不必手工推演,例如学习该语言或检查程序的内存与输出行为时。
运行要求
作为本地 stdio 进程运行,通过 npx brainfaq-mcp 启动,因此需要 Node.js 与 npm。未声明任何账号、API 密钥、环境变量或请求头。
安装前请注意
它只在本地解释器中执行 Brainfuck 代码;README 未说明会访问文件、发起网络请求或向第三方发送数据。加载新代码会重置调试器状态,丢弃当前会话。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Brainfaq Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

brainfaq-mcp

MCP server for the Brainfuck programming language that allows your favourite LLM to debug Brainfuck programs.

Usage

Use this command to run the MCP server:

npx brainfaq-mcp

To use it in VS Code, add the following JSON snippet to .vscode/mcp.json (create the file if you don't have it):

json
{  "servers": {    "brainfaq-mcp": {      "command": "npx",      "args": ["brainfaq-mcp"]    }  }}

The MCP can be added to other IDEs with LLM agents support (e.g. Cursor) in similar ways. Check their documentation and configure them to run npx brainfaq-mcp. It will start the MCP server in stdio mode.

Features

MCP Tools

  • load_code - Reset the debugger and load new Brainfuck source code. Supports configurable tape size, min/max cell values, and initial input.
  • step - Execute a specified number of instructions (default 1) with detailed state output.
  • run - Run the program until it finishes or waits for input, with optional instruction limit.
  • add_input - Append characters to the input buffer when the program is waiting for input.
  • get_state - Get the current interpreter state (memory, pointers, output) with optional windowing.
  • read_output - Get the complete output string generated so far.

Capabilities

  • Full Brainfuck support (8 operations: >, <, +, -, ., ,, [, ])
  • Overflow/underflow detection with configurable value limits
  • Bracket matching validation and loop control
  • Step-by-step execution and debugging
  • Memory protection with configurable tape size

Development

Setup:

npm i

Build:

npm run build

Tests:

npm run test

Tests are inspired by the Brainfuck test suite by Daniel Cristofani.

Release

Build first the source code using the command above.

Login to NPM:

npm login

Publish to NPM:

npm publish

License

All work in this repos is licensed under "Creative Commons Attribution-ShareAlike 4.0 International License".

来源:README.md,提交 7b33f0b

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分