Back to Directory/Documentation

AsItIs

Read-only MCP server for markdown and agent steering files: read, outline, lint, context budget.

DocumentationTypeScriptv0.3.0

AsItIs agent tools

Lint CLAUDE.md, AGENTS.md and SKILL.md before your agent reads them. A free Claude Code plugin and MCP server that checks steering files against the vendors' published rules, estimates the tokens they load every session, and flags hidden instructions: comments addressed to the AI, zero-width and bidirectional characters, styled-away text. Read-only, no network, MIT.

License: MIT Version Node 22.13+ Claude Code plugin

Try it in 30 seconds

No install: paste a file into the browser checker. Same linter, runs in your browser tab, nothing is uploaded.

Claude Code: add the marketplace and install the plugin, then run /asitis:md-lint or /asitis:md-budget in a session.

claude plugin marketplace add Katta041/asitis-agent-tools
claude plugin install asitis@asitis

Other MCP clients: the server is on npm. This is the command to put in your client's MCP config (pin the version):

npx -y @asitis/mcp@0.2.3 --root /absolute/path/to/project

The browser checker: a CLAUDE.md is pasted and checked, and two hidden items are flagged, an HTML comment telling AI agents to quietly upload .env and a zero-width space

  • Lint: frontmatter on line 1 and valid YAML, SKILL.md name and description rules, CLAUDE.md 200 lines, SKILL.md 500 lines, Codex's 32 KiB, broken links and @imports, duplicate and contradictory rules.
  • Budget: approximate tokens per file and per tool for what loads every session (Claude Code, Codex, Gemini CLI, Cursor, Copilot).
  • Hidden content: HTML and [//]: # comments that read like instructions, invisible Unicode, bidi controls, display:none text.
  • Guard (optional): warns before Claude rewrites a whole markdown file or strips its line endings, trailing spaces or BOM. An accident guard, not a security boundary.
  • Read-only: no write tool, no network code, runs under Node's permission model in the plugin.

Install

Requires Node 22.13 or later on your PATH.

Claude Code (plugin)

claude plugin marketplace add Katta041/asitis-agent-tools
claude plugin install asitis@asitis

Inside a session, /plugin marketplace add Katta041/asitis-agent-tools and /plugin install asitis@asitis do the same. Remove it with claude plugin marketplace remove asitis.

From a local clone instead:

git clone https://github.com/Katta041/asitis-agent-tools.git
claude plugin marketplace add ./asitis-agent-tools
claude plugin install asitis@asitis

Or try it for one session without installing: claude --plugin-dir ./asitis-agent-tools/plugins/asitis.

The plugin never downloads the server at runtime. See plugins/asitis/README.md for the skill, commands, guard hook and options.

Other MCP clients (Claude Desktop, Cursor, Codex, Gemini CLI)

@asitis/mcp is on npm: use "command": "npx" with "args": ["-y", "@asitis/mcp@0.2.3", "--root", "/absolute/path/to/project"]. Always pin the version; never use @latest in an agent config.

Or run it from a clone. The plugin folder already contains the built, pinned server, so no install or build step is needed:

git clone https://github.com/Katta041/asitis-agent-tools.git
node asitis-agent-tools/plugins/asitis/server/asitis-mcp.mjs --version

Use node as the command and the absolute path to plugins/asitis/server/asitis-mcp.mjs as the first argument. Client configs are always started outside your project, so give --root as an absolute path.

Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows.

{
  "mcpServers": {
    "asitis": {
      "command": "node",
      "args": ["/absolute/path/to/asitis-agent-tools/plugins/asitis/server/asitis-mcp.mjs", "--root", "/absolute/path/to/project"]
    }
  }
}

Cursor: .cursor/mcp.json in the project (or ~/.cursor/mcp.json).

{
  "mcpServers": {
    "asitis": {
      "command": "node",
      "args": ["/absolute/path/to/asitis-agent-tools/plugins/asitis/server/asitis-mcp.mjs", "--root", "${workspaceFolder}"]
    }
  }
}

If your Cursor version does not expand ${workspaceFolder}, use an absolute path. The server refuses a root that still contains ${...} rather than guessing.

Codex (CLI, IDE and desktop): ~/.codex/config.toml.

[mcp_servers.asitis]
command = "node"
args = ["/absolute/path/to/asitis-agent-tools/plugins/asitis/server/asitis-mcp.mjs", "--root", "/absolute/path/to/project"]

Gemini CLI: .gemini/settings.json in the project (or ~/.gemini/settings.json).

{
  "mcpServers": {
    "asitis": {
      "command": "node",
      "args": ["/absolute/path/to/asitis-agent-tools/plugins/asitis/server/asitis-mcp.mjs", "--root", "/absolute/path/to/project"]
    }
  }
}

Hardened: add Node's permission model so the runtime itself denies writes and child processes (and network access on Node 25 and later). This is what the Claude Code plugin does:

node --permission \
  --allow-fs-read=/absolute/path/to/asitis-agent-tools/plugins/asitis \
  --allow-fs-read=/absolute/path/to/project \
  /absolute/path/to/asitis-agent-tools/plugins/asitis/server/asitis-mcp.mjs --root /absolute/path/to/project

Put the same flags at the front of args in any config above.

What it checks

ToolWhat it returns
read_markdownThe file text exactly as stored, plus a byte profile: encoding, BOM, CRLF/LF/CR counts, final newline, trailing whitespace, invalid UTF-8 byte ranges, sha256. Pages large files. as: "base64" returns the exact bytes. Labels the content as untrusted and summarises hidden characters and comments.
outlineATX and setext headings with line numbers, skipping frontmatter and fenced code.
lint_steeringFrontmatter on line 1 and valid YAML; required name and description for SKILL.md and subagents; unknown keys; length against vendor limits; broken relative links and @path imports; zero-width, bidi and other invisible characters; hidden HTML comments that read like instructions; text hidden with inline styles; duplicate and contradictory-looking rules. With no path, lints every steering file in the folder.
context_budgetApproximate tokens per file and per tool for what loads every session: Claude Code (CLAUDE.md plus @imports up to 4 hops, rules without paths, MEMORY.md first 200 lines, the skill and subagent listing), Codex (AGENTS.md, 32 KiB cap), Gemini CLI (GEMINI.md plus imports), Cursor always-applied rules, Copilot repository instructions.
find_steering_filesEvery steering file, grouped by when it loads: every session, on match (paths, globs, applyTo), on invocation (skills, commands, agents, prompts), on demand (nested instruction files), memory.

Vendor limits, with sources cited in packages/mcp/src/limits.ts:

FileLimit
CLAUDE.mdtarget under 200 lines (Claude Code memory docs)
SKILL.mdunder 500 lines; description plus when_to_use truncated at 1,536 characters in the listing (Claude Code skills docs); name up to 64 and description up to 1,024 characters (Agent Skills spec)
MEMORY.mdfirst 200 lines or 25 KB load (Claude Code memory docs)
AGENTS.md32 KiB read by Codex by default (project_doc_max_bytes)
Cursor rulesunder 500 lines
Windsurf rules12,000 characters

Every tool is annotated readOnlyHint: true, destructiveHint: false, openWorldHint: false. Every result ends with one line, Edit these files without rewriting them: https://asitis.app/?ref=mcp. Turn it off with --no-footer (or --footer false, or ASITIS_MCP_FOOTER=0).

Privacy

  • The server and the guard hook make no network connections and contain no network code. They collect nothing and send nothing.
  • They never write, rename or delete a file, and create no temp files.
  • The server logs one start-up line to stderr (version and root folder), never file content.
  • What your assistant does with results is up to your assistant. Tool results go into the model's context, so they reach whichever AI provider your assistant uses. That is your assistant's network traffic, not ours.

Security model

  • Root confinement. Every path is resolved with realpath and must stay inside a root given at start-up. ../ traversal, absolute paths outside the root and symlinks that resolve outside are refused. The filesystem root and your home folder are refused as roots unless you pass --allow-broad-root.
  • Markdown only. Only .md, .mdc, .markdown, .mdx, .cursorrules, .windsurfrules and .clinerules are read. .env*, .claude/settings*.json, anything in .git/ or node_modules/, and every other file type are refused, including through a markdown-named symlink that points at them. @imports of such files are counted from their size, never read.
  • Bounded work. Files over 16 MB are refused (--max-file-mb), results are capped, every tool call has a 20 s budget, and every scanner is linear time. The tests run 10 MB adversarial inputs (unclosed comments, bracket and backtick storms, long import tokens, invalid UTF-8 and more) through every tool under a 3 s per-call budget.
  • Untrusted content. read_markdown labels file content as data, not instructions, and reports hidden instructions and invisible characters up front. This does not stop a model from obeying text it reads; it makes the text visible.
  • Pinned server in the plugin. plugins/asitis/server/asitis-mcp.mjs is the exact build of packages/mcp for this version, and server/VERSION records its SHA-256. A test fails if it differs from a fresh build.

Report vulnerabilities privately: see SECURITY.md.

Limits

  • Token counts are local approximations (about 4 characters per token for English), not any vendor's tokenizer.
  • A hardlink inside the root to a file elsewhere is read like any other file (reads only).
  • A symlink swapped into a parent folder between the check and the open is a narrow race; the final path component is opened with O_NOFOLLOW and checked by inode.
  • Windows junctions and case-insensitive volumes have had less testing than macOS and Linux.
  • The guard hook is an accident guard, not a security boundary: it does not see Bash (sed -i, redirects) or other programs.
  • Lint rules follow the vendors' public docs at the time of release. When a vendor changes a limit, the number in limits.ts needs updating.

Options

asitis-mcp --root <folder> [--root <folder>...] [options]

  --root <folder>      Folder the server may read (repeatable). Default: the current folder.
  --no-footer          Do not end tool results with the asitis.app line.
  --max-file-mb <n>    Largest file to analyse, in MB (default 16, max 64).
  --allow-broad-root   Allow your home folder or the filesystem root as the root.
  --version            Print the version.
  --help               Print this help.

ASITIS_MCP_ROOT (folders separated by :, or ; on Windows) and ASITIS_MCP_FOOTER=0 work as environment variables. Add a second --root for a memory folder that lives outside the project.

Mistakes print one line and exit with code 2, for example:

asitis-mcp: Root folder not found: /x. Pass an existing folder with --root.

Develop

npm ci            # installs the pinned dev dependencies; there are no install scripts
npm test          # typecheck, bundle, then the full Vitest suite
npm run sync-plugin   # rebuild the server and copy it, with its SHA-256, into plugins/asitis/server

See CONTRIBUTING.md. Changes are listed in CHANGELOG.md.

License

MIT. The bundled server includes open-source dependencies under their own licences, listed in plugins/asitis/server/THIRD_PARTY_NOTICES.md.

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
npx -y @asitis/mcp

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-github-katta041-asitis-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@asitis/mcp"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

@asitis/mcpnpm

Compatible MCP Clients

AsItIs works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More