io.github.DennisPrediger/slac-mcp
MCP server exposing SLAC (Simple Logic & Arithmetic Compiler) as tools for LLM agents
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
slac-mcpclaude mcp add slac-mcp -- npx -y slac-mcp@1.1.1
{
"mcpServers": {
"slac-mcp": {
"command": "npx",
"args": [
"-y",
"slac-mcp@1.1.1"
]
}
}
}
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
المحتويات
slac-mcp
MCP server exposing SLAC (Simple Logic & Arithmetic Compiler) as tools for LLM agents.
Tools
| Tool | Parameters | Description |
|---|---|---|
evaluate | expression: string | Compiles and evaluates a SLAC expression, returns the result |
get_syntax | none | Returns the full SLAC language reference (syntax, operators, functions, examples) |
Usage
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
npx @modelcontextprotocol/inspector cargo run
Example expressions
1 + 2
max(10, 20) + 1
'hello' + ' ' + 'world'
len('test') > 2 ? 'long' : 'short'
Development
cargo build
cargo 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.
الأسئلة الشائعة
ما هو io.github.DennisPrediger/slac-mcp؟
MCP server exposing SLAC (Simple Logic & Arithmetic Compiler) as tools for LLM agents
كيف أثبّت io.github.DennisPrediger/slac-mcp؟
يعمل على جهازك. في Claude Code: claude mcp add slac-mcp -- npx -y slac-mcp@1.1.1. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج io.github.DennisPrediger/slac-mcp إلى مفتاح API؟
لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.
هل io.github.DennisPrediger/slac-mcp مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص Apache-2.0.
من يصون io.github.DennisPrediger/slac-mcp؟
ينشره DennisPrediger. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.