wxec
Provides a structured git lifecycle tool for workspace operations including status, add, diff, commit, push, and log.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
wxec
token-efficient execution layer and model context protocol (mcp) server for ai coding agents.
wxec is an execution engine built in pure rust that replaces raw terminal dumps with high-density, structured tool outputs. standard shell commands flood the agent's context window with compiler traces, test logs, and whole files. wxec cuts output tokens by up to 84%, eliminates ide permission dialogues, and enables single-turn multi-tool execution with lossless memory handles.
table of contents
chapter 1: core benefits
84% fewer tokens: slashes context usage from 6,257 to 1,018 tokens across real-world developer workflows.
zero permission popups: connects natively via mcp, eliminating constant ide sandbox approval prompts.
2x+ faster agent turnaround: cutting terminal junk eliminates 90+ seconds of model generation wait time.
100% self-contained: pure rust with zero external system dependencies (never crashes from missing host tools).
single-turn multi-action: bundles up to 16 operations (read, edit, test, git) in one turn using
batch.lossless memory handles: full outputs are preserved off-context and retrieved on demand with
expand.
chapter 2: how it works
session hash ledger: deduplicates file reads and searches; unchanged files return instant zero-cost hash acknowledgments.
lossless handle store (
~<id>): offloads large diffs and logs to atomic cache blobs, keeping context clean while allowing instant expansion.simd workspace cache: in-memory directory tree with vectorized substring pre-matching (
memmem) for 10x-50x faster searches.calibrated budget fitting: prioritizes actionable diagnostics and line numbers while compressing low-priority noise into handles.
chapter 3: benchmark proof
tested on real tasks with the cl100k_base tokenizer:
task | raw shell | rtk (0.37.2) | wxec mcp | token savings vs raw |
| 86 tok | 22 tok | 16 tok | -81.4% |
| 1,661 tok | 1,319 tok | 874 tok | -47.4% |
| 3,422 tok | 3,422 tok | 27 tok | -99.2% |
| 567 tok | 459 tok | 11 tok | -98.1% |
| 356 tok | 99 tok | 10 tok | -97.2% |
total benchmark tokens | 6,257 tok | 5,381 tok | 1,018 tok | -83.7% |
chapter 4: available mcp tools
tool | tier | purpose | key parameters |
| read_only | compact file & symbol inspector |
|
| write_workspace | atomic surgical code editor |
|
| read_only | simd-accelerated workspace search |
|
| write_workspace | global multi-file pattern replacement |
|
| read_only | structured directory hierarchy |
|
| execute | project compiler and test checker |
|
| git_write | complete git lifecycle |
|
| per-call | bundle up to 16 calls in 1 turn |
|
| read_only | retrieve full text from handle |
|
| execute | structured executable runner |
|
| execute | shell execution fallback |
|
chapter 5: 1-turn batching
bundle multi-step workflows into a single round-trip turn to eliminate back-and-forth prompt latency:
{
"calls": [
{
"tool": "edit",
"args": {
"path": "crates/core/src/lib.rs",
"find": "let max = 10;",
"replace": "let max = 20;"
}
},
{
"tool": "check",
"args": {"kind": "test"}
},
{
"tool": "git",
"args": {"op": "status"}
}
]
}chapter 6: security & permission tiers
workspace jailing: all paths are strictly confined inside workspace root; traversal escapes (
../) are blocked.secret redactor: credentials, aws keys, tokens, and private keys are scrubbed before reaching wire output.
permission tiers:
tier | level | authorized tools |
| 0 |
|
| 1 |
|
| 2 |
|
| 3 |
|
chapter 7: quick setup
installation
git clone https://github.com/kaeinmotion/wxec.git
cd wxec && cargo build --release
cp target/release/wxec ~/.cargo/bin/
cp target/release/w ~/.cargo/bin/mcp client configuration
add to your agent's mcp configuration (cursor, antigravity, claude desktop, or gemini cli):
{
"mcpServers": {
"wxec": {
"command": "wxec",
"args": ["--root", "/path/to/your/workspace", "--tier", "git_write"]
}
}
}chapter 8: configuration
optional .wxec.toml or wxec.toml in your workspace root:
[session]
default_tier = "git_write"
ledger_ttl_secs = 86400
[handles]
ttl_secs = 86400
max_bytes = 104857600
[exec]
allow_shell = true
timeout_ms = 120000
[output]
verbosity = "minimal"Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseAqualityAmaintenanceLocal-first persistent memory for Claude Code and OpenAI Codex CLI. A single Rust binary captures, distills, searches, and injects project memory across sessions via hooks, MCP, CLI, and localhost REST.1533MIT
- AlicenseAqualityCmaintenanceOne context engine for every AI. Persistent context from GitHub, Notion, and your decisions, delivered to Claude, ChatGPT, Cursor, VS Code, Gemini, and any MCP-compatible client.93AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceA Rust + Tauri 2 desktop application that turns local project folders into persistent MCP workspaces, enabling AI agents to read files, modify code, run commands and tests, check Git status, and maintain cross-conversation development context through historical checkpoints, with built-in WSS/FRP/Cloudflare tunnels and OAuth for connecting to ChatGPT.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceStandardize Context, Not Intelligence. An open protocol and native MCP server for preserving, organizing, and serving structured project context (architecture, decision logs, domain rules, and roadmap) to AI coding assistants (Cursor, Claude Desktop, Antigravity) with built-in CLI verificationMIT