Agent Tool MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add agent-tool -- npx -y @knewstimek/agent-tool
README.md

Encoding-aware, indentation-smart file tools for AI coding agents.

agent-tool

한국어

MCP (Model Context Protocol) tool server for AI coding agents.

Why?

Built-in tools in AI coding agents (Claude Code, Cursor, Codex, etc.) have known limitations:

  • Tab indentation breaks: LLMs output spaces, but your project uses tabs. The built-in Edit tool writes spaces as-is, corrupting your indentation style.
  • Encoding corruption: Editing EUC-KR, Shift-JIS, or GB18030 files silently converts them to UTF-8, breaking legacy projects.
  • Too many separate tools: Making the agent find, install, and configure Redis CLI, MySQL client, SSH client, etc. is tedious and error-prone. agent-tool bundles 50 tools into a single binary -- one install, everything works.
  • No reverse engineering support: Built-in tools can't disassemble binaries, inspect PE/ELF headers, find function boundaries, or search cross-references. agent-tool includes static binary analysis (disassembly, xref, function detection), a DAP debugger, and CheatEngine-style memory tools -- giving your agent full reverse engineering capabilities.
  • Network censorship: In some countries, government-level web filtering breaks plain curl/wget requests. agent-tool uses ECH (Encrypted Client Hello) and DoH (DNS over HTTPS) by default to work around these restrictions.

agent-tool solves these by providing drop-in replacement tools that respect your project's conventions.

Supported Agents

Claude Code, Codex CLI, Cursor, Windsurf, Cline, Gemini CLI, and any MCP-compatible agent.

Features

Tool Description Status
Edit String replacement with smart indentation and encoding preservation (supports dry_run)
Read Encoding-aware file reading with flexible offset (integer, "N-M" range, [N,M] array)
Write Encoding-aware file creation/overwrite
Grep Encoding-aware regex content search with output modes (content/files_with_matches/count) and context lines (-B/-A/-C)
Glob File pattern matching with ** recursive support
ListDir Directory listing (flat or tree)
Diff Compare two files with unified diff output (encoding-aware)
Patch Apply unified diff patch to a file (supports dry_run)
Checksum Compute file hash (md5, sha1, sha256)
FileInfo File metadata (size, encoding, line ending, indentation, line count)
Compress Create zip / tar.gz archives
Decompress Extract zip / tar.gz archives (Zip Slip/Bomb protection)
Backup Timestamped zip backup with exclude patterns. dry_run preview with directory stats, pattern match counts, and largest files
ConvertEncoding Convert file encoding (EUC-KR ↔ UTF-8, add/remove BOM, etc.)
Delete Safe single-file deletion (no directories, no symlinks, system path protection, dry_run)
Rename Atomic file/directory rename or move (dry_run)
SysInfo System information — OS, CPU, RAM, disk, uptime, CPU usage measurement
FindTools Discover installed dev tools — compilers, runtimes, build systems (Go, .NET, Node, Python, Java, Rust, C/C++, etc.). Searches PATH, env vars, and known locations (~/bin, snap, scoop, Homebrew, SDKMAN, nvm, fnm, pyenv)
ProcList List running processes — PID, name, command line, memory. Sensitive args auto-masked. Filter by name or port
ProcKill Kill, suspend, or resume processes by PID or port. Tree kill, signal selection (kill/term/hup/int/stop/cont), zombie handling (Linux), dry_run
ProcExec Execute commands as new processes. Foreground/background/suspended start (Windows: CREATE_SUSPENDED, Linux: SIGSTOP). Timeout, env vars
EnvVar Read environment variables. Sensitive values (passwords, tokens) auto-masked
Firewall Read firewall rules — iptables/nftables/firewalld (Linux), netsh (Windows). Read-only
SSH Execute commands on remote servers via SSH. Password & key auth (PEM, OpenSSH, PuTTY PPK), session pooling, host key verification (strict/tofu/none), ProxyJump, IPv6
SFTP Transfer files and manage remote filesystems over SSH. Upload, download, ls, stat, mkdir, rm, chmod, rename. Reuses SSH session pool. Max 2 GB per transfer
Bash Persistent shell sessions with working directory and environment variable retention. Session pooling (max 5, idle timeout 30 min). Unix: bash/sh, Windows: PowerShell/git-bash/cmd (auto-detected, best available). PowerShell sessions include UTF-8 encoding and PATH enhancement
WebFetch Fetch web content as text/Markdown. ECH (Encrypted Client Hello) + DoH (DNS over HTTPS) by default. HTML→Markdown auto-conversion. SSRF protectio

Tools (5)

EditString replacement with smart indentation and encoding preservation.
ReadEncoding-aware file reading with flexible offset.
GrepEncoding-aware regex content search with output modes and context lines.
SSHExecute commands on remote servers via SSH with session pooling.
ProcListList running processes with sensitive argument masking.

Configuration

claude_desktop_config.json
{"mcpServers": {"agent-tool": {"command": "npx", "args": ["-y", "@knewstimek/agent-tool"]}}}

Try it

Read the file 'config.json' and ensure the indentation is preserved while updating the version field.
Search for all occurrences of 'TODO' in the src directory using grep and provide 2 lines of context.
List all running processes and identify any that are consuming high memory.
Connect to the remote server via SSH and execute a directory listing in the /var/www/html folder.
Convert the legacy EUC-KR encoded file to UTF-8 format.

Frequently Asked Questions

What are the key features of Agent Tool?

Encoding-aware file editing that preserves original indentation and character sets.. Comprehensive system utilities including process management, environment variable reading, and firewall inspection.. Advanced remote management via SSH and SFTP with session pooling and host key verification.. Static binary analysis tools including disassembly and header inspection.. Network-resilient web fetching using ECH and DoH to bypass filtering..

What can I use Agent Tool for?

Maintaining legacy projects that require specific non-UTF-8 file encodings.. Automating complex server administration tasks across multiple remote environments.. Performing secure file operations and code edits without corrupting project-specific indentation styles.. Debugging and monitoring system processes directly through an AI coding agent interface.. Analyzing binary files and performing reverse engineering tasks within an AI-assisted workflow..

How do I install Agent Tool?

Install Agent Tool by running: npx -y @knewstimek/agent-tool

What MCP clients work with Agent Tool?

Agent Tool works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Agent Tool docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare