mcp-explorer AGENTS.md

mcp-explorer AGENTS.md is an instructions file for Codex, OpenCode from MausRundung/mcp-explorer. It costs 1,038 tokens per session, scanned A, original, MIT.

A set of repository instructions for exploring a codebase with the project-explorer tool. It explains which tool calls to make first and how to inspect files, searches, and dependencies.

In plain words
What is it for?
It helps agents scan project structure, find imports and symbols, search files, check outdated npm packages, and perform approved file renames.
Why use it?
It gives an agent a map of the project before it changes code, reducing the need to inspect files one by one or work outside the allowed directories.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions OpenCode.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/mausrundung/mcp-explorer/agents-md
Clone the repo
git clone --depth 1 https://github.com/MausRundung/mcp-explorer

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-explorer AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mausrundung/mcp-explorer/agents-md.svg)](https://agentmods.dev/instructions/mausrundung/mcp-explorer/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/mausrundung/mcp-explorer/agents-md"><img src="https://agentmods.dev/badge/instructions/mausrundung/mcp-explorer/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,038 This file is loaded in full into every session.
When invoked 1,038 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01038 $0.01038
Opus 5 $0.00519 $0.00519
Sonnet 5 $0.00208 $0.00208
Haiku 4.5 $0.00104 $0.00104

Measured today against content hash 6f573aa88024, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

mcp-explorer AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Guidance for AI coding agents working in this repository.

Start of every chat

At the start of every chat, call explore_project on the project root (registered in opencode as project-explorer_explore_project) to understand the project structure, imports/exports/functions, and dependency graph before doing anything else.

explore_project({ "directory": "." })

Use project-explorer_list_allowed_directories first if you are unsure of the working directory scope. Follow up with search_files for anything you need to inspect in detail.

Tools

This MCP server (project-explorer) exposes 6 tools. In opencode every tool is prefixed with the server name: project-explorer_<tool>.

list_allowed_directories

  • Purpose: Returns the sandboxed directories the server may access. Call it first to confirm scope before any operation.
  • Args: none.
  • Note: if the list is empty, the server has unrestricted filesystem access.

explore_project

  • Purpose: Full project scan. Lists every file with size, detects config files, parses imports/exports/functions for code files, and builds a local dependency graph (edges, most-imported/importing files) resolved via tsconfig baseUrl/paths for JS/TS.
  • Args:
    • directory / path (string): target dir, relative to the first allowed dir or absolute. Defaults to allowedDirectories[0].
    • subDirectory (string): optional subdir joined onto directory.
    • includeHidden (boolean): include dot-files, default false.
  • Always excluded: .next, node_modules, #export, .git, dist, build, .vscode, .gradle, .idea.

search_files

  • Purpose: Advanced full-text/regex search across files in allowed dirs, with size/date/extension filters and comment/string exclusion.
  • Args:
    • pattern (string, default .*): text or regex to match.
    • searchPath / path (string): directory to search, default first allowed dir.
    • extensions / excludeExtensions (string[]): include/exclude file types (dot-prefixed).
    • excludePatterns (string[]): filename patterns to skip (simple wildcards).
    • regexMode (boolean): treat pattern as regex.
    • caseSensitive, wordBoundary, multiline (boolean): matching behavior.
    • minSize / maxSize (integer): byte-size range for files.
    • modifiedAfter / modifiedBefore (string): ISO 8601 mtime window.
    • maxDepth (integer): recursion depth limit.
    • followSymlinks (boolean): traverse symlinks.
    • includeBinary (boolean): also search binary files.
    • snippetLength (integer, default 50): chars around each match.
    • maxResults (integer, default 100): result cap.
    • sortBy (string): relevance | file | lineNumber | modified | size.
    • groupByFile (boolean): group output per file.
    • excludeComments (boolean): skip language-aware comments.
    • excludeStrings (boolean): skip string literals.
    • outputFormat (string): text | json | structured.

Read the full file on GitHub · 90 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 90 lines · 1,038 tokens per session scan A 6f573aa88024

Subscribe to this mod's changes

mcp-explorer AGENTS.md is an instructions file published in the GitHub repository MausRundung/mcp-explorer (1 stars, last pushed yesterday), licensed MIT. It adds 1,038 tokens to every session, about $0.0052 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.