Slac Mcp

io.github.DennisPrediger由 GitHub 帳號 DennisPrediger 發布v1.1.1更新於 Oct 24, 2026

MCP server exposing SLAC (Simple Logic & Arithmetic Compiler) as tools for LLM agents

已驗證STDIO僅桌面開發者工具

概覽

AI 產生的概覽

一個本機 MCP 伺服器,將 SLAC 表達式編譯器以工具形式提供給助理,用來求值邏輯與算術表達式並查詢語言語法。

可以做什麼
對 SLAC 表達式進行編譯求值並回傳結果,預設回傳 Rust 的 Display 表示,設定 OUTPUT_FORMAT 為 JSON 時改回傳序列化 JSON。取得完整的 SLAC 語言參考,包含語法、運算子、函式與範例。支援算術、字串與條件表達式,例如 max(10, 20) + 1 或 len('test') > 2 ? 'long' : 'short'。
適用情境
適合助理需要計算或驗證 SLAC 表達式,或需要語言參考來寫出合法 SLAC 語法時使用,而不是自行推算。
執行需求
以本機程序透過 stdio 執行。README 的使用與開發章節以 Cargo 建置與執行,並說明需要 Rust 1.85+(edition 2024);清單中列有 npm 套件 slac-mcp。未宣告帳號、API 金鑰或標頭。可選設定 OUTPUT_FORMAT=JSON 以取得 JSON 輸出。
安裝前請注意
README 說明以 cargo run 啟動,而清單列出的是 npm 套件,安裝前應確認適用哪一種方式。表達式在本機編譯求值,只傳入你願意被求值的表達式。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Slac Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

slac-mcp

MCP server exposing SLAC (Simple Logic & Arithmetic Compiler) as tools for LLM agents.

Tools

ToolParametersDescription
evaluateexpression: stringCompiles and evaluates a SLAC expression, returns the result
get_syntaxnoneReturns the full SLAC language reference (syntax, operators, functions, examples)

Usage

sh
cargo run

The server communicates over stdio using the Model Context Protocol.

Output Format

By default, evaluate returns the Rust Display representation of the result. Set OUTPUT_FORMAT=JSON to get serialized JSON instead

With MCP Inspector

sh
npx @modelcontextprotocol/inspector cargo run

Example expressions

1 + 2max(10, 20) + 1'hello' + ' ' + 'world'len('test') > 2 ? 'long' : 'short'

Development

sh
cargo buildcargo run

Requires Rust 1.85+ (edition 2024).

License

Copyright 2026 Dennis Prediger

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

來源:npm/slac-mcp/README.md,提交 a130e01

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分