
Brainfaq Mcp
io.github.labarilem由 GitHub 帳號 labarilem 發布v1.0.0更新於 Oct 27, 2026
MCP server for the BrainFuck programming language
概覽
本機 MCP 伺服器,讓助理在解譯器中載入、單步執行並除錯 Brainfuck 程式。
- 可以做什麼
- 載入並重設 Brainfuck 原始碼,可設定紙帶大小、儲存格數值上下限與初始輸入
- 依指定指令數單步執行,並檢視詳細的解譯器狀態
- 執行程式直到結束或等待輸入,可設定指令數上限
- 程式等待輸入時,將字元附加到輸入緩衝區
- 讀取目前的記憶體、指標與輸出,或取得目前為止的完整輸出
- 適用情境
- 適合讓助理逐步追蹤、測試或解說小型 Brainfuck 程式,而不必手動推演,例如學習該語言或檢查程式的記憶體與輸出行為時。
- 執行需求
- 以本機 stdio 程序執行,透過 npx brainfaq-mcp 啟動,因此需要 Node.js 與 npm。未宣告任何帳號、API 金鑰、環境變數或標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Brainfaq Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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:
To use it in VS Code, add the following JSON snippet to .vscode/mcp.json (create the file if you don't have it):
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:
Build:
Tests:
Tests are inspired by the Brainfuck test suite by Daniel Cristofani.
Release
Build first the source code using the command above.
Login to NPM:
Publish to NPM:
License
All work in this repos is licensed under "Creative Commons Attribution-ShareAlike 4.0 International License".
來源:README.md,提交 7b33f0b
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分