# gabrielmaialva33/winx-code-agent [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/gabrielmaialva33/winx-code-agent  
**GitHub Stars:** 41  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gabrielmaialva33-winx-code-agent

## Description
A high-performance Rust reimplementation of WCGW for code agents, providing shell execution and advanced file management capabilities for LLMs via MCP.

## Tools
Capabilities this server exposes over MCP:

- **Initialize** — Boots the workspace, picks the mode, hands you an inseparable `thread_id`/`workspace_root` pair plus a bounded `temporary_artifact_dir` for session-local derived helpers. Call it once unless a local MCP client exposes Roots, in which case Winx can bootstrap automatically. Repeated `first_call` requ…
- **BashCommand** — Runs commands, polls long-running ones, sends Enter/Ctrl-C, and drives TUIs. Related finite fail-fast checks can be composed with `&&` in one call. `wait_policy` is generic: `adaptive` (default) keeps short calls inline and promotes an already-running foreground command when Tasks are available; `u…
- **ReadFiles** — One or many files, with line numbers. Batched reads use a bounded parallel worker pool while preserving request order and read-before-edit coverage. Each file also returns an opaque revision and its exact visible ranges for the default existing-file `line_patch` flow. Append `:10-40` to a path for…
- **EditFiles** — Creates, changes, or undoes one or many files. One edit call may contain up to 100 unique targets and validates the full batch before writing. Each entry selects an explicit mode: revision-bound `line_patch` is the default after `ReadFiles`, `search_replace` is reserved for intentional exact text a…
- **ContextSave** — Dumps task description + file globs into a single text file with workspace context, active files, and git status/diff for clean handoff and task resumption.
- **ReadImage** — Returns validated JPEG, PNG, GIF, or WebP as a native MCP image content block (not base64 text), so multimodal models actually see it. Sources are capped at 50 MiB and bounded by decoded dimensions/allocation; delivery is at most 2 MiB and 2560 px on the long edge, with oversized inputs converted t…
- **CodeMap** — Code navigation with syntax operations and optional Eulix call graphs. `outline`: a symbol map (functions, types, methods, ...) - a file returns its definitions, a directory (or empty) a relevance-ranked, token-budgeted repo symbol map, in 13 languages including Python and Elixir. `references`: whe…

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "winx-code-agent": {
    "url": "https://host/mcp"
  }
}
```

## Documentation

## What gabrielmaialva33/winx-code-agent does

gabrielmaialva33/winx-code-agent is a Rust MCP runtime for exposing a development workspace to agents that cannot directly run inside it. It combines persistent terminal execution with bounded, context-aware repository operations. Sessions retain their shell state and can be resumed after HTTP disconnects, client restarts, or adapter upgrades.

The runtime is designed for both local and remote deployments. Local MCP clients can launch it over stdio, while remote clients connect through a Streamable HTTP endpoint. The HTTP deployment keeps the service on loopback by default and uses bearer-token authentication. Separate principals can have isolated authenticated sessions and workspaces.

## How it works

A session begins with `Initialize`, which establishes a linked `thread_id` and `workspace_root` and provides a bounded directory for temporary session artifacts. The server separates its MCP adapter from the processes that own each PTY. A guardian keeps the shell alive, allowing commands to continue while the client disconnects and reconnects.

`BashCommand` supports foreground and background execution, status polling, interactive input such as Enter and Ctrl-C, and terminal user interfaces. Output is bounded and rendered for model consumption. File reads and edits use workspace and path controls, while shell and file results can include redaction and continuation information.

## Setup and configuration

Install the command with Cargo:

```bash
cargo install winx-code-agent
```

For a local HTTP endpoint, create a protected token file and start the service with an explicit loopback bind address:

```bash
mkdir -p ~/.config
install -m 600 /dev/null ~/.config/winx-http-token
openssl rand -hex 32 > ~/.config/winx-http-token
winx-code-agent serve --http --bind 127.0.0.1:8000 --token-file ~/.config/winx-http-token
```

Clients connect to `/mcp` using the token as a bearer credential. Remote or cloud clients need a reachable HTTPS endpoint; a private tunnel, VPN, or authenticated reverse proxy can provide that access while Winx remains on loopback. Stdio remains available for local MCP configurations.

## Tools and capabilities

- `ReadFiles` reads one or multiple files with line numbers, ranges, symbol-oriented paths, revisions, and visible-range metadata.
- `EditFiles` creates, modifies, patches, verifies, and undoes files. A single request can cover up to 100 unique targets, with revision-bound line patches or intentional search-and-replace operations.
- `CodeMap` produces repository or file symbol maps and can find references. Its outline mode covers 13 languages, including Python and Elixir; optional Eulix support adds callers, callees, and impact analysis.
- `ReadImage` delivers validated JPEG, PNG, GIF, or WebP files as native MCP image content, with size and dimension limits.
- `ContextSave` writes task details, file globs, workspace context, active files, and Git state into one handoff file.
- `BashCommand` and `Initialize` provide persistent execution, workspace bootstrapping, interactive terminal control, and session identity.

Tool profiles can limit discovery and authority to full, coding, read-only, terminal, or an exact per-principal allowlist. Linux deployments can optionally use Landlock for additional sandboxing.

_Full upstream README: https://allmcps.com/mcp/gabrielmaialva33-winx-code-agent/readme_

