caseSHY/aicoreutils
AICoreUtils is a JSON-first, LLM-agent-friendly CLI toolkit exposing ~114 utilities inspired by GNU Coreutils via MCP, with structured JSON output, dry-run support, overwrite protection, and stable exit codes.
File & Directory Operations
ls, cat, cp, mv, rm, mkdir, touch, stat, ln, readlink, realpath, mktemp, install, mkfifo, mknod — with dry-run, overwrite protection, and bounded output.
Text Processing
head, tail, sort, cut, tr, paste, join, comm, nl, tac, fmt, fold, expand, pr, od, split, csplit, ptx, shuf, tee, wc.
Hashing & Checksums
md5sum, sha1/224/256/384/512sum, b2sum, cksum, sum — compute cryptographic hashes and checksums.
Encoding & Conversion
base32, base64, basenc (base16/64url), numfmt (SI/IEC units), seq.
System & Environment
env, printenv, pwd, date, uname, arch, hostname, hostid, id, groups, logname, whoami, pinky, nproc, df, du, sync.
Process & Execution
timeout, nice, nohup, kill, stdbuf, sleep (capped at 60s), chroot, runcon — with explicit confirmation for destructive/privileged operations.
Permissions & Ownership
chmod, chown, chgrp, chcon (SELinux).
Expressions & Logic
test/[, expr, factor, true, false, echo, printf, basename, dirname, pathchk.
Agent & Meta Tools
tool-list— export tool definitions in aicoreutils, OpenAI, or Anthropic function-calling formatsschema— print the full JSON protocol and exit codescatalog— list prioritized Coreutils categories for agentscoreutils— list or describe the full command surface
Key Design Principles
All output defaults to JSON;
--rawavailable for plain text pipingErrors reported as structured JSON with stable exit codes
--dry-runon destructive commands; explicit--allow_overwriteflagsBounded output for security and resource management
Native MCP integration for Claude Desktop and compatible agent frameworks
Provides OpenAI Function Calling format output via tool-list --format openai, enabling integration with any Agent framework that supports function calling.
AICoreUtils
Glama 92% | TDQS A-grade (mean 4.6) | All 114 tools A-grade | CI passed on all platforms
⚠️ Stability: This project is actively evolving. While the JSON output schema and MCP tool interface are stable, internal CLI argument parsing and per-command flags may change. Read Stability Notes for details.
🤖 MCP directory listed: Glama · ModelScope · awesome-mcp-servers
Chinese Description
AICoreUtils is a JSON-first command-line toolkit prototype for LLM Agents. It is inspired by common GNU Coreutils commands, but it is not a complete GNU-compatible replacement.
The project goal is to provide deterministic, low-noise, and easy-to-parse CLI interfaces for machine callers:
Default JSON output
Errors written to stderr as JSON
Stable exit code semantics
--dry-runsupport for file modification commandsExplicit use of
--rawwhen pipeline composition is required
Quick Start
pip install aicoreutils
aicoreutils schema --pretty
aicoreutils ls . --limit 20
aicoreutils rm build --recursive --dry-run🤖 Claude Desktop / MCP Integration
One-line configuration to let Claude operate your filesystem directly:
Edit the Claude Desktop configuration file (detailed instructions →):
System | Config File |
macOS |
|
Windows |
|
Linux |
|
{
"mcpServers": {
"aicoreutils": {
"command": "python",
"args": ["-m", "aicoreutils.mcp_server"]
}
}
}Restart Claude Desktop, then ask it:
"List all Python files in the project and count the lines of code"
Claude automatically calls aicoreutils ls + aicoreutils wc, with JSON interaction throughout.
For more integration methods: aicoreutils tool-list --format openai outputs in OpenAI Function Calling format, which can be used directly in any Agent framework. If you need to retain risk tags for schedulers or audit systems, you can append --include-risk.
⚠️ Security Note: It is recommended to run with minimum privileges in production environments.
aicoreutils-mcp --profile readonly # 推荐:只读工具 aicoreutils-mcp --profile workspace-write # 仅允许低风险 cwd 内写入
🤖 AI IDE Integration
Use aicoreutils directly in Cursor / Windsurf / Continue.dev: AI IDE Integration Guide →
// ~/.cursor/mcp.json
{ "mcpServers": { "aicoreutils": { "command": "python", "args": ["-m", "aicoreutils.mcp_server"] } } }🔗 More: Claude Desktop Integration | AI IDE Integration | Agent Task Examples | LangChain Wrapper
Run Tests
# 推荐主入口(pytest,含 Hypothesis property-based 测试和 GNU 对照测试)
uv run pytest tests/ -v --tb=short
# Legacy 入口(unittest,部分运行器)
uv run python -m unittest discover -s tests -vProject Structure
.
|-- src/aicoreutils/ # Python 包源码
|-- docs/ # 文档入口
| |-- reference/ # 协议、命令面和安全生产契约
| |-- guides/ # 使用指南
| |-- architecture/ # 架构决策记录 (ADR) 和 AI 代理规则
| |-- development/ # 测试和开发说明
| |-- status/ # 当前项目状态(唯一权威来源)
| |-- audits/ # 兼容性和质量审计
| |-- analysis/ # 项目分析日志(历史归档)
| `-- reports/ # 测试报告等生成/归档文档
|-- tests/ # 测试套件
|-- examples/ # 示例
|-- scripts/ # CI/审计/发布脚本
|-- .github/ # CI workflows 和 issue 模板
`-- vendor/ # 本地上游源码缓存Documentation
Current Project Status ← Authoritative status source
Release Status
Current implementation: 114 CLI commands registered in aicoreutils schema (including agent meta-commands like tool-list).
Important limitation: This project is an agent-friendly subset inspired by GNU Coreutils, not a full GNU Coreutils clone.
Related MCP server: nexus-mcp
English
AICoreUtils is a JSON-first command-line toolkit prototype for LLM agents. It is inspired by common GNU Coreutils commands, but it is not a complete GNU-compatible replacement.
The goal is a deterministic, low-noise interface for machine callers:
JSON output by default
JSON errors on stderr
Stable semantic exit codes
--dry-runfor mutation commandsExplicit
--rawoutput for pipeline composition
Quick Start
pip install aicoreutils
aicoreutils schema --pretty
aicoreutils ls . --limit 20
aicoreutils rm build --recursive --dry-run🤖 Claude Desktop / MCP Integration
One config line to let Claude operate your filesystem:
Edit Claude Desktop config (full guide →):
OS | Config File |
macOS |
|
Windows |
|
Linux |
|
{
"mcpServers": {
"aicoreutils": {
"command": "python",
"args": ["-m", "aicoreutils.mcp_server"]
}
}
}Restart Claude Desktop, then ask:
"List all Python files in the project and count lines of code"
Claude calls aicoreutils ls + aicoreutils wc automatically.
For other frameworks: aicoreutils tool-list --format openai outputs OpenAI Function Calling format directly.
Add --include-risk when an orchestrator or audit system needs machine-readable risk metadata.
⚠️ Security: Run with least privilege in production.
aicoreutils-mcp --profile readonly # Recommended: read-only tools aicoreutils-mcp --profile workspace-write # Low-risk cwd-local writes only
Run tests
# Recommended primary entry (pytest, includes Hypothesis property-based and GNU differential tests)
uv run pytest tests/ -v --tb=short
# Legacy entry (unittest, partial runner)
uv run python -m unittest discover -s tests -vProject Layout
.
|-- src/aicoreutils/ # Python package
|-- docs/ # documentation index
| |-- reference/ # protocol, command-surface and security contracts
| |-- guides/ # usage guides
| |-- architecture/ # ADRs and AI agent governance rules
| |-- development/ # testing and development notes
| |-- status/ # current project status (single authoritative source)
| |-- audits/ # compatibility and quality audits
| |-- analysis/ # project analysis logs (historical archive)
| `-- reports/ # test reports and archived generated docs
|-- tests/ # test suite
|-- examples/ # examples
|-- scripts/ # CI/audit/release scripts
|-- .github/ # CI workflows and issue templates
`-- vendor/ # local upstream source cacheDocumentation
Current project status ← authoritative status source
Release Status
Current implementation: 114 CLI commands in aicoreutils schema (including agent-native meta-commands like tool-list).
Important limitation: this project is an agent-friendly subset inspired by GNU Coreutils, not a full GNU Coreutils clone.
Stability and SemVer
aicoreutils uses semantic versioning starting from v1.0.0, with the following commitments:
Patch (1.0.x): Bug fixes, improved error messages, documentation updates. JSON output structure remains unchanged.
Minor (1.x.0): New commands, new parameters. JSON output structure for existing commands remains backward compatible.
Major (x.0.0): Breaking changes — JSON schema changes, command renaming, MCP tool schema changes.
⚠️ Current status: The project is still under active development. Internal CLI argument parsing and per-command flags may change frequently due to argparse refactoring, but the JSON envelope (ok, result, error, command, version) and MCP tool schema are stable. For production use, please pin the version number (pip install aicoreutils==1.2.0). v1.2.0 is the LTS version, and critical bug and security fixes will be backported for at least 12 months.
Maintenance
Related MCP Servers
- FlicenseBqualityDmaintenanceA config-driven, zero-dependency MCP server with plugin architecture that enables filesystem operations, shell commands, HTTP requests, and utilities through simple JSON configuration.31
- AlicenseAqualityAmaintenanceMCP server that lets AI models invoke CLI agents (Gemini, Codex, Claude, OpenCode) as tools — with parallel execution, retries, and structured output parsing.54MIT
- AlicenseNot gradedqualityAmaintenanceProvides MCP servers that wrap common developer tools (git, npm, docker, etc.) returning structured JSON output, enabling AI agents to reliably interact with these tools without parsing fragile terminal text.7138MIT
- AlicenseNot gradedqualityCmaintenanceUniversal MCP server that wraps any CLI tool, enabling AI assistants to run commands via natural language.MIT
Related MCP Connectors
Free public MCP for AI agents — 193 tools, 44 workflows. No API key.
Package intelligence MCP for AI agents — 22 tools, 19 ecosystems, AGPL SDK, free.
Artifact store for AI agents. Hosted OAuth at mcp.artifacta.io/mcp; local stdio via npm/PyPI.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/caseSHY/AI-CLI'
If you have feedback or need assistance with the MCP directory API, please join our Discord server