userFRM/rpg-encoder
MCP server that gives AI coding agents semantic understanding of any codebase. Search by intent, auto-sync on edits, whole-repo context in one call. Rust + tree-sitter, 15 languages, 28 tools.
26b24ee4e5e1rpg-encoder0.8.3 in npm/package.jsonio.github.userFRM/rpg-encoderPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 28 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 4 source files could be read only in part
Top risks in plain words
- HIGH24 production dependencies have known vulnerabilities (worst: high).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
anyhow1.0.103 or later,cookie0.18.3 or later,crossbeam-epoch0.9.20 or later,git20.21.0 or later and 15 more. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 28 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
analyze_health, auto_lift, build_rpg, context_pack, detect_cycles, explore_rpg and 15 morefetch_nodeauto_liftset_project_rootauto_liftNo tool was seen to: start other programs on the machine.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files21 tools · analyze_health, auto_lift, build_rpg +18
Not all three are present in the tools the scanner traced.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (28: 28 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
analyze_healthtool PREFER THIS OVER EYEBALLING FOR ARCHITECTURAL SMELLS. Analyzes code health: coupling, instability, centrality, god object detection, optional clone detection. RFilesoutside text
PREFER THIS OVER EYEBALLING FOR ARCHITECTURAL SMELLS. Analyzes code health: coupling, instability, centrality, god object detection, optional clone detection. Returns entities with architectural issues and refactoring recommendations. Use `include_duplication=true` for token-level Rabin-Karp clones (reads source, slower). Use `include_semantic_duplication=true` for Jaccard-similarity conceptual duplicates on lifted features (in-memory, fast). Replaces manual review of cross-file patterns.
auto_lifttool Autonomous lifting via LLM API — lifts all unlifted entities, synthesizes file features, and builds semantic hierarchy in one call. Uses a cheap external LLM (HFilesCredentialsSensitive pathsoutside text
Autonomous lifting via LLM API — lifts all unlifted entities, synthesizes file features, and builds semantic hierarchy in one call. Uses a cheap external LLM (Haiku, GPT-4o-mini) instead of consuming your coding agent's subscription tokens. Providers: 'anthropic' (default model: claude-haiku-4-5), 'openai' (default: gpt-4o-mini). For OpenRouter or Gemini, use provider='openai' with a custom base_url. Set dry_run=true to estimate cost first. Requires an API key.
build_rpgtool Build an RPG (Repository Planning Graph) from the codebase. Indexes all code entities, builds a file-path hierarchy, and resolves dependencies. Completes in secFilesoutside text
Build an RPG (Repository Planning Graph) from the codebase. Indexes all code entities, builds a file-path hierarchy, and resolves dependencies. Completes in seconds without requiring an LLM. To add semantic features (LLM-extracted intent descriptions), use get_entities_for_lifting afterwards. Run this once when first connecting to a repository. Respects .rpgignore files (gitignore syntax) for excluding files from the graph.
build_semantic_hierarchytool Get file-level features and instructions for building a semantic hierarchy. Returns Module (file) entities with their aggregated features, plus the domain disco
Get file-level features and instructions for building a semantic hierarchy. Returns Module (file) entities with their aggregated features, plus the domain discovery and hierarchy assignment prompts. YOU (the LLM) analyze the features, identify functional domains, and assign each file to a 3-level hierarchy path. Then call submit_hierarchy with your assignments.
context_packtool PREFER THIS OVER MANUAL search → fetch → explore CHAINS. Single-call context pack: searches for entities matching your query, fetches their details and source cFilesoutside text
PREFER THIS OVER MANUAL search → fetch → explore CHAINS. Single-call context pack: searches for entities matching your query, fetches their details and source code, expands neighbors to the specified depth (default 1), and trims to a token budget. Returns primary entities with source + features + deps, plus neighborhood entities for broader context. Replaces 3-5 chained tool calls with 1.
detect_cyclestool PREFER THIS OVER MANUAL CYCLE HUNTING. Detects circular dependencies: A→B→C→A chains anywhere in the graph. Returns cycles with entity chains, file counts, and Filesoutside text
PREFER THIS OVER MANUAL CYCLE HUNTING. Detects circular dependencies: A→B→C→A chains anywhere in the graph. Returns cycles with entity chains, file counts, and cross-area filtering. First call returns summary + area breakdown; pass filters (area, min_cycle_length, cross_file_only) to get specific cycles. One call replaces hours of import-chain reading.
explore_rpgtool PREFER THIS OVER CHAINED GREPS FOR DEPENDENCY QUESTIONS. Explore the dependency graph starting from an entity. Traverses import, invocation, inheritance, composFilesoutside text
PREFER THIS OVER CHAINED GREPS FOR DEPENDENCY QUESTIONS. Explore the dependency graph starting from an entity. Traverses import, invocation, inheritance, composition, render, state-read/state-write, and dispatch edges. Use direction='downstream' to see what the entity calls, 'upstream' to see what calls it, 'both' for full picture. Replaces the manual "grep for X, then grep each result, then grep those" loop with one graph walk.
fetch_nodetool PREFER THIS OVER cat OR WHOLE-FILE READS FOR A SINGLE ENTITY. Fetch detailed metadata and source code for a known entity by ID. Returns the entity's semantic feFilesNetworkoutside text
PREFER THIS OVER cat OR WHOLE-FILE READS FOR A SINGLE ENTITY. Fetch detailed metadata and source code for a known entity by ID. Returns the entity's semantic features (what it does), dependencies (what it calls, what calls it), hierarchy position, and full source code. Use this instead of reading the whole file when you only need one function/class/method.
finalize_liftingtool Finalize the lifting process: aggregate file-level features onto Module entities and re-ground artifacts. Call this AFTER all entities have been lifted via subm
Finalize the lifting process: aggregate file-level features onto Module entities and re-ground artifacts. Call this AFTER all entities have been lifted via submit_lift_results. No LLM needed — uses dedup-aggregation of already-lifted entity features. After finalizing, proceed to get_files_for_synthesis for holistic file-level features, then build_semantic_hierarchy + submit_hierarchy.
find_pathstool PREFER THIS OVER MANUALLY TRACING CALLS. Finds shortest dependency paths between two entities (returns up to max_paths results of equal shortest length). AnswerFilesoutside text
PREFER THIS OVER MANUALLY TRACING CALLS. Finds shortest dependency paths between two entities (returns up to max_paths results of equal shortest length). Answers 'how does A reach B?' or 'is there any call chain from module X to module Y?' with entity IDs and edge kinds. Replaces the grep-follow-grep chain you'd otherwise walk by hand.
get_entities_for_liftingtool LIFTER PROTOCOL step 1: Get a batch of code entities for YOU to semantically analyze. Returns source code with instructions. After analyzing ALL entities, call Filesoutside text
LIFTER PROTOCOL step 1: Get a batch of code entities for YOU to semantically analyze. Returns source code with instructions. After analyzing ALL entities, call submit_lift_results with your features JSON, then check the NEXT_ACTION block and continue until DONE. Scope: file glob ('src/auth/**'), '*' for all unlifted, or hierarchy path. No LLM setup needed.get_files_for_synthesistool SYNTHESIS PROTOCOL step 1: Get file-level entity features for YOU to synthesize into holistic file features. Each file's child entities (functions, classes, met
SYNTHESIS PROTOCOL step 1: Get file-level entity features for YOU to synthesize into holistic file features. Each file's child entities (functions, classes, methods) have already been lifted with verb-object features. Your job: read the entity features and synthesize them into 3-6 comma-separated high-level features for the FILE as a whole. Returns batched data. After synthesizing, call submit_file_syntheses with your results.
get_routing_candidatestool Get entities pending semantic routing. After submit_lift_results detects drifted or newly-lifted entities, they accumulate here for LLM-based routing. Returns e
Get entities pending semantic routing. After submit_lift_results detects drifted or newly-lifted entities, they accumulate here for LLM-based routing. Returns entities with their features, the hierarchy structure, and routing instructions. Call submit_routing_decisions with your assignments.
impact_radiustool PREFER THIS OVER RECURSIVE GREP FOR "WHAT BREAKS IF I CHANGE X". Computes the impact radius of an entity: all entities reachable via dependency edges with edge Filesoutside text
PREFER THIS OVER RECURSIVE GREP FOR "WHAT BREAKS IF I CHANGE X". Computes the impact radius of an entity: all entities reachable via dependency edges with edge paths and depth. Use direction='upstream' for 'what depends on this?', 'downstream' for 'what does this depend on?'. Returns a flat list with depth, edge paths, and features — one call replaces a dependency trace you'd otherwise grep manually.
lifting_statustool Check lifting progress: coverage per area, unlifted files, active session, and NEXT STEP. Call this at any point to see where you are in the lifting flow. ReadsFilesoutside text
Check lifting progress: coverage per area, unlifted files, active session, and NEXT STEP. Call this at any point to see where you are in the lifting flow. Reads state from the persisted graph — works across sessions.
plan_changetool PREFER THIS BEFORE ANY REFACTOR OR CROSS-FILE EDIT. Plans code changes: finds relevant entities by intent, computes dependency-safe modification order, assessesFilesoutside text
PREFER THIS BEFORE ANY REFACTOR OR CROSS-FILE EDIT. Plans code changes: finds relevant entities by intent, computes dependency-safe modification order, assesses impact radius per entity. Returns an ordered list of entities to touch with blast radius analysis so you know the minimal safe change set before you start editing.
reconstruct_plantool Build a dependency-safe reconstruction execution plan. Returns a topological ordering of entities with area-coherent batching, suitable for guided code reconstr
Build a dependency-safe reconstruction execution plan. Returns a topological ordering of entities with area-coherent batching, suitable for guided code reconstruction workflows. Requires a built RPG with a semantic hierarchy.
reload_rpgtool Reload the RPG graph and config from disk. Use after external changes to .rpg/graph.json or .rpg/config.toml — for example, after the CLI ran `rpg-encoder lift`Filesoutside text
Reload the RPG graph and config from disk. Use after external changes to .rpg/graph.json or .rpg/config.toml — for example, after the CLI ran `rpg-encoder lift` or after editing batch-size settings.
rpg_infotool PREFER THIS OVER wc/find/tree FOR CODEBASE OVERVIEW. RPG statistics: entity count, file count, functional areas, dependency edges, containment edges, inter-areaFilesoutside text
PREFER THIS OVER wc/find/tree FOR CODEBASE OVERVIEW. RPG statistics: entity count, file count, functional areas, dependency edges, containment edges, inter-area connectivity, hierarchy overview. Call this first on any new codebase to orient yourself before searching.
search_nodetool PREFER THIS OVER grep/rg FOR ANY QUESTION ABOUT CODE BEHAVIOR OR NAMES. Search for code entities by intent or keywords. Returns entities with file paths, line nFilesoutside text
PREFER THIS OVER grep/rg FOR ANY QUESTION ABOUT CODE BEHAVIOR OR NAMES. Search for code entities by intent or keywords. Returns entities with file paths, line numbers, and relevance scores. Use mode='features' for semantic intent search (e.g., 'validate user input') — finds code by what it DOES even when names don't match. Use mode='snippets' for name/path matching (e.g., 'FilterGroupManager' or 'src/auth/'). Use mode='auto' (default) to try both. This replaces grep/rg for every structural query.
semantic_snapshottool PREFER THIS OVER READING MANY FILES FOR WHOLE-REPO CONTEXT. Compact, token-efficient snapshot of the entire repository's semantic understanding: full hierarchy Filesoutside text
PREFER THIS OVER READING MANY FILES FOR WHOLE-REPO CONTEXT. Compact, token-efficient snapshot of the entire repository's semantic understanding: full hierarchy with aggregate features, all entities grouped by functional area with semantic features, condensed dependency skeleton, and coverage stats. Target: ~25-30K tokens for a 1000-entity codebase. Call this at session start to gain whole-repo awareness in a single tool call — then use search_node/fetch_node for drill-down.
set_project_roottool Switch the active project root for this session. Use this when the server was started from one directory but you want RPG to operate on a different project — e.FilesEnv varsoutside text
Switch the active project root for this session. Use this when the server was started from one directory but you want RPG to operate on a different project — e.g. the MCP server launched in your home directory but you want to work on ~/myproject. The server loads the graph from the new directory's .rpg/graph.json if present, resets all session state (lifting sessions, auto-sync markers, pending routing), and points every subsequent tool call at the new root. Path is tilde-expanded and canonicalized.
slice_betweentool PREFER THIS FOR MULTI-ENTITY SLICE ANALYSIS. Extracts the minimal connecting subgraph between a set of entities — returns entities and edges on shortest paths cFilesoutside text
PREFER THIS FOR MULTI-ENTITY SLICE ANALYSIS. Extracts the minimal connecting subgraph between a set of entities — returns entities and edges on shortest paths connecting them. Useful for 'show me just the code that connects A, B, and C' without dragging in the whole graph.
submit_file_synthesestool SYNTHESIS PROTOCOL step 2: Submit your holistic file-level features. Pass a JSON object mapping file paths to comma-separated feature strings. These replace the
SYNTHESIS PROTOCOL step 2: Submit your holistic file-level features. Pass a JSON object mapping file paths to comma-separated feature strings. These replace the dedup-aggregated Module features with your synthesized features, improving hierarchy quality. Example: {"src/auth.rs": "handle user authentication, manage session tokens", "src/db.rs": "manage database connections, execute queries"}submit_hierarchytool Submit hierarchy assignments from build_semantic_hierarchy. Pass a JSON object mapping file paths to 3-level hierarchy paths (Area/category/subcategory). All en
Submit hierarchy assignments from build_semantic_hierarchy. Pass a JSON object mapping file paths to 3-level hierarchy paths (Area/category/subcategory). All entities in each file inherit that file's path. After submission, the graph is re-grounded and saved.
submit_lift_resultstool LIFTER PROTOCOL step 2: Submit semantic features you extracted. Pass a JSON object with keys exactly as shown by get_entities_for_lifting headers. For methods uFilesoutside text
LIFTER PROTOCOL step 2: Submit semantic features you extracted. Pass a JSON object with keys exactly as shown by get_entities_for_lifting headers. For methods use file:Class::method format. Example: {"src/main.rs:Server::new": ["create server"], "src/lib.rs:load": ["load config"]}. After submitting, immediately proceed to the next batch — do NOT stop to ask the user.submit_routing_decisionstool Submit semantic routing decisions for entities pending hierarchy placement. Pass a JSON object mapping entity IDs to hierarchy paths (route) or "keep" (confirm Filesoutside text
Submit semantic routing decisions for entities pending hierarchy placement. Pass a JSON object mapping entity IDs to hierarchy paths (route) or "keep" (confirm current position). Requires graph_revision from get_routing_candidates to prevent stale decisions.
update_rpgtool Incrementally update the RPG from the current working tree — committed, staged, and unstaged edits since the last build. Detects added, modified, deleted, and rFilesoutside text
Incrementally update the RPG from the current working tree — committed, staged, and unstaged edits since the last build. Detects added, modified, deleted, and renamed files, re-extracts entities, and updates structural metadata. Modified entities with stale features are tracked for interactive re-lifting. Pass `since` to scope to a committed-only diff from a specific commit. Much faster than a full rebuild.
Text the model reads (28)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
search_node tool
PREFER THIS OVER grep/rg FOR ANY QUESTION ABOUT CODE BEHAVIOR OR NAMES. Search for code entities by intent or keywords. Returns entities with file paths, line numbers, and relevance scores. Use mode='features' for semantic intent search (e.g., 'validate user input') — finds code by what it DOES even when names don't match. Use mode='snippets' for name/path matching (e.g., 'FilterGroupManager' or 'src/auth/'). Use mode='auto' (default) to try both. This replaces grep/rg for every structural query.
fetch_node tool
PREFER THIS OVER cat OR WHOLE-FILE READS FOR A SINGLE ENTITY. Fetch detailed metadata and source code for a known entity by ID. Returns the entity's semantic features (what it does), dependencies (what it calls, what calls it), hierarchy position, and full source code. Use this instead of reading the whole file when you only need one function/class/method.
explore_rpg tool
PREFER THIS OVER CHAINED GREPS FOR DEPENDENCY QUESTIONS. Explore the dependency graph starting from an entity. Traverses import, invocation, inheritance, composition, render, state-read/state-write, and dispatch edges. Use direction='downstream' to see what the entity calls, 'upstream' to see what calls it, 'both' for full picture. Replaces the manual "grep for X, then grep each result, then grep those" loop with one graph walk.
rpg_info tool
PREFER THIS OVER wc/find/tree FOR CODEBASE OVERVIEW. RPG statistics: entity count, file count, functional areas, dependency edges, containment edges, inter-area connectivity, hierarchy overview. Call this first on any new codebase to orient yourself before searching.
semantic_snapshot tool
PREFER THIS OVER READING MANY FILES FOR WHOLE-REPO CONTEXT. Compact, token-efficient snapshot of the entire repository's semantic understanding: full hierarchy with aggregate features, all entities grouped by functional area with semantic features, condensed dependency skeleton, and coverage stats. Target: ~25-30K tokens for a 1000-entity codebase. Call this at session start to gain whole-repo awareness in a single tool call — then use search_node/fetch_node for drill-down.
reconstruct_plan tool
Build a dependency-safe reconstruction execution plan. Returns a topological ordering of entities with area-coherent batching, suitable for guided code reconstruction workflows. Requires a built RPG with a semantic hierarchy.
set_project_root tool
Switch the active project root for this session. Use this when the server was started from one directory but you want RPG to operate on a different project — e.g. the MCP server launched in your home directory but you want to work on ~/myproject. The server loads the graph from the new directory's .rpg/graph.json if present, resets all session state (lifting sessions, auto-sync markers, pending routing), and points every subsequent tool call at the new root. Path is tilde-expanded and canonicalized.
build_rpg tool
Build an RPG (Repository Planning Graph) from the codebase. Indexes all code entities, builds a file-path hierarchy, and resolves dependencies. Completes in seconds without requiring an LLM. To add semantic features (LLM-extracted intent descriptions), use get_entities_for_lifting afterwards. Run this once when first connecting to a repository. Respects .rpgignore files (gitignore syntax) for excluding files from the graph.
auto_lift tool
Autonomous lifting via LLM API — lifts all unlifted entities, synthesizes file features, and builds semantic hierarchy in one call. Uses a cheap external LLM (Haiku, GPT-4o-mini) instead of consuming your coding agent's subscription tokens. Providers: 'anthropic' (default model: claude-haiku-4-5), 'openai' (default: gpt-4o-mini). For OpenRouter or Gemini, use provider='openai' with a custom base_url. Set dry_run=true to estimate cost first. Requires an API key.
lifting_status tool
Check lifting progress: coverage per area, unlifted files, active session, and NEXT STEP. Call this at any point to see where you are in the lifting flow. Reads state from the persisted graph — works across sessions.
get_entities_for_lifting tool
LIFTER PROTOCOL step 1: Get a batch of code entities for YOU to semantically analyze. Returns source code with instructions. After analyzing ALL entities, call submit_lift_results with your features JSON, then check the NEXT_ACTION block and continue until DONE. Scope: file glob ('src/auth/**'), '*' for all unlifted, or hierarchy path. No LLM setup needed.submit_lift_results tool
LIFTER PROTOCOL step 2: Submit semantic features you extracted. Pass a JSON object with keys exactly as shown by get_entities_for_lifting headers. For methods use file:Class::method format. Example: {"src/main.rs:Server::new": ["create server"], "src/lib.rs:load": ["load config"]}. After submitting, immediately proceed to the next batch — do NOT stop to ask the user.get_routing_candidates tool
Get entities pending semantic routing. After submit_lift_results detects drifted or newly-lifted entities, they accumulate here for LLM-based routing. Returns entities with their features, the hierarchy structure, and routing instructions. Call submit_routing_decisions with your assignments.
submit_routing_decisions tool
Submit semantic routing decisions for entities pending hierarchy placement. Pass a JSON object mapping entity IDs to hierarchy paths (route) or "keep" (confirm current position). Requires graph_revision from get_routing_candidates to prevent stale decisions.
update_rpg tool
Incrementally update the RPG from the current working tree — committed, staged, and unstaged edits since the last build. Detects added, modified, deleted, and renamed files, re-extracts entities, and updates structural metadata. Modified entities with stale features are tracked for interactive re-lifting. Pass `since` to scope to a committed-only diff from a specific commit. Much faster than a full rebuild.
reload_rpg tool
Reload the RPG graph and config from disk. Use after external changes to .rpg/graph.json or .rpg/config.toml — for example, after the CLI ran `rpg-encoder lift` or after editing batch-size settings.
finalize_lifting tool
Finalize the lifting process: aggregate file-level features onto Module entities and re-ground artifacts. Call this AFTER all entities have been lifted via submit_lift_results. No LLM needed — uses dedup-aggregation of already-lifted entity features. After finalizing, proceed to get_files_for_synthesis for holistic file-level features, then build_semantic_hierarchy + submit_hierarchy.
get_files_for_synthesis tool
SYNTHESIS PROTOCOL step 1: Get file-level entity features for YOU to synthesize into holistic file features. Each file's child entities (functions, classes, methods) have already been lifted with verb-object features. Your job: read the entity features and synthesize them into 3-6 comma-separated high-level features for the FILE as a whole. Returns batched data. After synthesizing, call submit_file_syntheses with your results.
submit_file_syntheses tool
SYNTHESIS PROTOCOL step 2: Submit your holistic file-level features. Pass a JSON object mapping file paths to comma-separated feature strings. These replace the dedup-aggregated Module features with your synthesized features, improving hierarchy quality. Example: {"src/auth.rs": "handle user authentication, manage session tokens", "src/db.rs": "manage database connections, execute queries"}build_semantic_hierarchy tool
Get file-level features and instructions for building a semantic hierarchy. Returns Module (file) entities with their aggregated features, plus the domain discovery and hierarchy assignment prompts. YOU (the LLM) analyze the features, identify functional domains, and assign each file to a 3-level hierarchy path. Then call submit_hierarchy with your assignments.
context_pack tool
PREFER THIS OVER MANUAL search → fetch → explore CHAINS. Single-call context pack: searches for entities matching your query, fetches their details and source code, expands neighbors to the specified depth (default 1), and trims to a token budget. Returns primary entities with source + features + deps, plus neighborhood entities for broader context. Replaces 3-5 chained tool calls with 1.
impact_radius tool
PREFER THIS OVER RECURSIVE GREP FOR "WHAT BREAKS IF I CHANGE X". Computes the impact radius of an entity: all entities reachable via dependency edges with edge paths and depth. Use direction='upstream' for 'what depends on this?', 'downstream' for 'what does this depend on?'. Returns a flat list with depth, edge paths, and features — one call replaces a dependency trace you'd otherwise grep manually.
find_paths tool
PREFER THIS OVER MANUALLY TRACING CALLS. Finds shortest dependency paths between two entities (returns up to max_paths results of equal shortest length). Answers 'how does A reach B?' or 'is there any call chain from module X to module Y?' with entity IDs and edge kinds. Replaces the grep-follow-grep chain you'd otherwise walk by hand.
slice_between tool
PREFER THIS FOR MULTI-ENTITY SLICE ANALYSIS. Extracts the minimal connecting subgraph between a set of entities — returns entities and edges on shortest paths connecting them. Useful for 'show me just the code that connects A, B, and C' without dragging in the whole graph.
plan_change tool
PREFER THIS BEFORE ANY REFACTOR OR CROSS-FILE EDIT. Plans code changes: finds relevant entities by intent, computes dependency-safe modification order, assesses impact radius per entity. Returns an ordered list of entities to touch with blast radius analysis so you know the minimal safe change set before you start editing.
submit_hierarchy tool
Submit hierarchy assignments from build_semantic_hierarchy. Pass a JSON object mapping file paths to 3-level hierarchy paths (Area/category/subcategory). All entities in each file inherit that file's path. After submission, the graph is re-grounded and saved.
analyze_health tool
PREFER THIS OVER EYEBALLING FOR ARCHITECTURAL SMELLS. Analyzes code health: coupling, instability, centrality, god object detection, optional clone detection. Returns entities with architectural issues and refactoring recommendations. Use `include_duplication=true` for token-level Rabin-Karp clones (reads source, slower). Use `include_semantic_duplication=true` for Jaccard-similarity conceptual duplicates on lifted features (in-memory, fast). Replaces manual review of cross-file patterns.
detect_cycles tool
PREFER THIS OVER MANUAL CYCLE HUNTING. Detects circular dependencies: A→B→C→A chains anywhere in the graph. Returns cycles with entity chains, file counts, and cross-area filtering. First call returns summary + area breakdown; pass filters (area, min_cycle_length, cross_file_only) to get specific cycles. One call replaces hours of import-chain reading.
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 28 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 28 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 28 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 28 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 28 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 28 capabilities; 28 more call code the scanner could not follow, where it may happen
- Tools that touch files21 of 28 capabilities touch files; 7 more call code the scanner could not follow, where it may happen
- Tools that call the network1 of 28 capabilities call the network; 27 more call code the scanner could not follow, where it may happen
Where the code is: 28 handlers in 1 file at commit 26b24ee4e5e1
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests10 manifests: Cargo.toml, crates/rpg-cli/Cargo.toml, crates/rpg-core/Cargo.toml, crates/rpg-encoder/Cargo.toml, crates/rpg-lift/Cargo.toml
- Lockfiles checked against OSV2 files resolved and checked against the OSV database; 8 not resolved: crates/rpg-cli/Cargo.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; crates/rpg-core/Cargo.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependencies HIGH24 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionNo MCP SDK declared in a manifest
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentials1 of 28 capabilities read credentials; 27 more call code the scanner could not follow, where it may happen
- Environment variables1 capability reads environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (24 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
opensslcrates.io 0.10.75 HIGH 16 advisories 0.10.780.10.790.10.80
- HIGHGHSA-hppc-g8h3-xhp3 CVE-2026-41898 RUSTSEC-2026-0478rust-openssl: Unchecked callback length in PSK/cookie trampolines leaks adjacent memory to peer
- HIGHGHSA-pqf5-4pqq-29f5 CVE-2026-41676 RUSTSEC-2026-0473rust-openssl: Deriver::derive and PkeyCtxRef::derive can overflow short buffers on OpenSSL 1.1.1
- HIGHGHSA-ghm9-cr32-g9qj CVE-2026-41681 RUSTSEC-2026-0475rust-openssl: rustMdCtxRef::digest_final() writes past caller buffer with no length check
- HIGHGHSA-xp3w-r5p5-63rr CVE-2026-42327 RUSTSEC-2026-0474rust-openssl has undefined behavior in X509Ref::ocsp_responders for certificates with non-UTF-8 OCSP URLs
- HIGHGHSA-8c75-8mhr-p7r9 CVE-2026-41678 RUSTSEC-2026-0463rust-openssl has incorrect bounds assertion in aes key wrap
- MEDIUMRUSTSEC-2026-0463 CVE-2026-41678 GHSA-8c75-8mhr-p7r9Out-of-bounds write in `aes::unwrap_key`
- MEDIUMRUSTSEC-2026-0475 CVE-2026-41681 GHSA-ghm9-cr32-g9qjBuffer overflow in `MdCtxRef::digest_final`
- MEDIUMGHSA-xv59-967r-8726 CVE-2026-44662 RUSTSEC-2026-0476rust-openssl vulnerable to heap buffer overflow when encrypting with AES key-wrap-with-padding
- MEDIUMRUSTSEC-2026-0476 CVE-2026-44662 GHSA-xv59-967r-8726Buffer overflow with AES key wrap with padding in `cipher_update`
- MEDIUMRUSTSEC-2026-0477 CVE-2026-45784 GHSA-phqj-4mhp-q6mqBuffer overflow with AES key wrap with padding in `cipher_update_inplace`
- MEDIUMRUSTSEC-2026-0473 CVE-2026-41676 GHSA-pqf5-4pqq-29f5Buffer overflow in `Deriver::derive` and `PkeyCtxRef::derive` with OpenSSL 1.1.x
- MEDIUMRUSTSEC-2026-0478 CVE-2026-41898 GHSA-hppc-g8h3-xhp3Unchecked callback lengths in PSK and cookie callbacks
- MEDIUMRUSTSEC-2026-0474 CVE-2026-42327 GHSA-xp3w-r5p5-63rr`X509Ref::ocsp_responders` can produce a `&str` that is not valid UTF-8
- MEDIUMGHSA-phqj-4mhp-q6mq CVE-2026-45784 RUSTSEC-2026-0477rust-openssl: Potential out-of-bounds write in `CipherCtxRef::cipher_update_inplace` for AES-KW-PAD ciphers
- MEDIUMRUSTSEC-2026-0479 CVE-2026-41677 GHSA-xmgf-hq76-4vx2Out-of-bounds read when a PEM password callback returns an oversized length
- LOWGHSA-xmgf-hq76-4vx2 CVE-2026-41677 RUSTSEC-2026-0479rust-opennssl has an Out-of-bounds read in PEM password callback when returning an oversized length
rmcpcrates.io 0.14.0 HIGH 7 advisories 1.4.02.0.02.1.0+1 more
- HIGHGHSA-89vp-x53w-74fx CVE-2026-42559 GHSA-fvh2-gm75-j4j7 RUSTSEC-2026-0140 RUSTSEC-2026-0189rmcp Streamable HTTP server transport has a DNS rebinding vulnerability
- HIGHGHSA-9pj6-vhgr-3mwh CVE-2026-63128RMCP: Unauthenticated permanent session-table leak in rmcp Streamable HTTP server transport leads to remote denial-of-service
- HIGHGHSA-33f5-2c5q-wgwj CVE-2026-63127RMCP: Missing Resource Field Validation in OAuth Protected Resource Metadata Discovery
- MEDIUMRUSTSEC-2026-0462 GHSA-c9f9-cp8h-jcj5Unbounded response body buffering in Streamable HTTP clients
- MEDIUMRUSTSEC-2026-0189 CVE-2026-42559 GHSA-89vp-x53w-74fx GHSA-fvh2-gm75-j4j7 RUSTSEC-2026-0140DNS rebinding vulnerability in rmcp Streamable HTTP server transport
- MEDIUMGHSA-c9xm-49cp-xcr9rmcp OAuth client fetches server-controlled resource_metadata URLs
- MEDIUMGHSA-9g45-5xwm-f3wc CVE-2026-64684RMCP: Custom HTTP headers leak to cross-origin redirect targets
rustls-webpkicrates.io 0.103.11 HIGH 7 advisories 0.103.120.103.130.103.16+3 more
- HIGHGHSA-82j2-j2ch-gfr8 CVE-2026-93599 RUSTSEC-2026-0104rustls-webpki: Denial of service via panic on malformed CRL BIT STRING
- MEDIUMRUSTSEC-2026-0098 CVE-2026-93600 GHSA-965h-392x-2mh5Name constraints for URI names were incorrectly accepted
- MEDIUMRUSTSEC-2026-0104 CVE-2026-93599 GHSA-82j2-j2ch-gfr8Reachable panic in certificate revocation list parsing
- MEDIUMRUSTSEC-2026-0382 BIT-golang-2026-111943 CVE-2026-111943 GO-2026-6809 RUSTSEC-2026-0381 RUSTSEC-2026-0383Certificate verification may accept distrusted intermediates
- MEDIUMRUSTSEC-2026-0099 CVE-2026-93601 GHSA-xgp8-3hg3-c2mhName constraints were accepted for certificates asserting a wildcard name
- LOWGHSA-xgp8-3hg3-c2mh CVE-2026-93601 RUSTSEC-2026-0099webpki: Name constraints were accepted for certificates asserting a wildcard name
- LOWGHSA-965h-392x-2mh5 CVE-2026-93600 RUSTSEC-2026-0098webpki: Name constraints for URI names were incorrectly accepted
zstd-safecrates.io 7.2.4 MEDIUM 12 advisories 7.4.08.2.0
- MEDIUMRUSTSEC-2026-0402Heap buffer overflow in `CCtx::try_clone` on a multithreaded context
- MEDIUMRUSTSEC-2026-0403Uninitialized memory exposed when streaming decompression of a legacy frame fails
- MEDIUMRUSTSEC-2026-0398`Seekable::decompress` sets a `Vec` length beyond its capacity for offsets past the end
- MEDIUMRUSTSEC-2026-0396`Seekable` reads a NULL or out-of-bounds seek table
- MEDIUMRUSTSEC-2026-0400Use-after-free of a dictionary after a one-shot call on a context with an open stream
- MEDIUMRUSTSEC-2026-0405Out-of-bounds read with an out-of-range `InBuffer::pos`
- MEDIUMRUSTSEC-2026-0399Use-after-free through `init_using_cdict` and `init_using_ddict`
- MEDIUMRUSTSEC-2026-0404Double free in `DCtx::try_clone`
- MEDIUMRUSTSEC-2026-0395Use-after-free with `CParameter::StableInBuffer`
- MEDIUMRUSTSEC-2026-0401Out-of-bounds read in `train_from_buffer` when sample sizes overflow
- MEDIUMRUSTSEC-2026-0397`OutBuffer::around_pos` exposes uninitialized memory
- MEDIUMRUSTSEC-2026-0406Use-after-free when changing a multithreaded context with an unfinished frame
rustlscrates.io 0.23.36 MEDIUM 8 advisories 0.23.450.23.460.24.0-dev.2
- MEDIUMRUSTSEC-2026-0348 CVE-2026-123610 GHSA-h2v8-394m-p7vvBrotli certificate decompression can allocate up to 1 GiB before authentication
- MEDIUMGHSA-c8m5-c952-6cm4 CVE-2026-123609 RUSTSEC-2026-0346Rustls: Session Debug formatting exposes TLS master secrets and resumption PSKs
- MEDIUMRUSTSEC-2026-0349 CVE-2026-123611 GHSA-w44r-93j7-qv28Unauthenticated ServerHello can downgrade later connections to classical key exchange
- MEDIUMGHSA-2mjx-qc3c-rqvc CVE-2026-123613 RUSTSEC-2026-0285Rustls: TLS 1.3 handshake messages incorrectly accepted across encryption level boundaries
- MEDIUMRUSTSEC-2026-0346 CVE-2026-123609 GHSA-c8m5-c952-6cm4`Debug` impls for client session values expose TLS secrets
- MEDIUMRUSTSEC-2026-0285 CVE-2026-123613 GHSA-2mjx-qc3c-rqvcTLS 1.3 handshake messages incorrectly accepted across encryption level boundaries
- LOWGHSA-h2v8-394m-p7vv CVE-2026-123610 RUSTSEC-2026-0348Rustls: Brotli certificate decompression can allocate an attacker-controlled amount of memory up to 1 GiB before authentication.
- LOWGHSA-w44r-93j7-qv28 CVE-2026-123611 RUSTSEC-2026-0349rustls: An unauthenticated ServerHello poisons the per-name key-exchange record, so later ClientHellos carry only a classical X25519 share
git2crates.io 0.20.4 MEDIUM 2 advisories 0.21.0
- MEDIUMRUSTSEC-2026-0184Potential undefined behavior with Signature from a buffer-created BlameHunk
- MEDIUMRUSTSEC-2026-0183Potential undefined behavior when calling Remote::list()
randcrates.io 0.9.2 MEDIUM 2 advisories 0.8.60.9.30.10.1
- MEDIUMRUSTSEC-2026-0097 GHSA-cq8v-f236-94qcRand is unsound with a custom logger using `rand::rng()`
- LOWGHSA-cq8v-f236-94qc RUSTSEC-2026-0097Rand is unsound with a custom logger using rand::rng()
anyhowcrates.io 1.0.101 MEDIUM 1 advisory 1.0.103
- MEDIUMRUSTSEC-2026-0190Unsoundness in `Error::downcast_mut()`
chronocrates.io 0.4.43 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0543chrono is unmaintained
cookiecrates.io 0.18.1 MEDIUM 1 advisory 0.12.00.18.3
- MEDIUMRUSTSEC-2026-0594 GHSA-8wcq-xq25-7fhmPrivate cookie nonces can repeat in processes that fork
core2crates.io 0.4.0 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0105core2 is unmaintained, all versions yanked
crossbeam-epochcrates.io 0.9.18 MEDIUM 1 advisory 0.9.20
- MEDIUMRUSTSEC-2026-0204Invalid pointer dereference in `fmt::Pointer` impl for `Atomic` and `Shared` when the underlying pointer is invalid
h2crates.io 0.4.13 MEDIUM 1 advisory 0.4.16
- MEDIUMRUSTSEC-2026-0258 GHSA-q83h-524g-xf6hh2 unbounded empty DATA frames
libz-syscrates.io 1.1.23 MEDIUM 1 advisory 1.1.31
- MEDIUMRUSTSEC-2026-0418 GHSA-8p3x-q3q3-q3v5libz-sys build script leaks environment variables in the build directory
number_prefixcrates.io 0.4.0 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2025-0119number_prefix crate is unmaintained
pastecrates.io 1.0.15 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2024-0436paste - no longer maintained
pin-utilscrates.io 0.1.0 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0441`pin-utils` is unmaintained
rustixcrates.io 1.1.3 MEDIUM 1 advisory 1.1.6
- MEDIUMRUSTSEC-2026-0486 GHSA-jh2m-fhpj-3vr7xattr functions mark unwritten bytes as initialized when given a zero-length buffer
tokiocrates.io 1.49.0 MEDIUM 1 advisory 1.51.61.53.3
- MEDIUMRUSTSEC-2026-0386`AsyncFd::new` and related constructors violate I/O safety
urlcrates.io 2.5.8 MEDIUM 1 advisory 2.5.9
- MEDIUMRUSTSEC-2026-0592 GHSA-hrj5-67jp-wqp9Stack overflow in `Url::origin()` on nested `blob:` URLs
webpki-root-certscrates.io 1.0.6 MEDIUM 1 advisory 0.26.111.0.10
- MEDIUMRUSTSEC-2026-0383 BIT-golang-2026-111943 CVE-2026-111943 GO-2026-6809 RUSTSEC-2026-0381 RUSTSEC-2026-0382Bundled root certificates allow trust in distrusted emSign intermediates
webpki-rootscrates.io 1.0.6 MEDIUM 1 advisory 0.26.111.0.10
- MEDIUMRUSTSEC-2026-0381 BIT-golang-2026-111943 CVE-2026-111943 GO-2026-6809 RUSTSEC-2026-0382 RUSTSEC-2026-0383Bundled root certificates allow trust in distrusted emSign intermediates
zstdcrates.io 0.13.3 MEDIUM 1 advisory 0.13.40.14.3
- MEDIUMRUSTSEC-2026-0391Data from an abandoned stream leaks into the next stream on a reused context
zstd-syscrates.io 2.0.16+zstd.1.5.7 MEDIUM 1 advisory 2.1.2
- MEDIUMRUSTSEC-2026-0410WebAssembly allocator shim corrupts memory on allocation failure
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-05-29 |
| Signed releases | not checked yet |
Install it
For the server's own npm package rpg-encoder. Pin a version ([email protected]) so an update cannot change the tools without you noticing.
Claude Desktop claude_desktop_config.json
{
"mcpServers": {
"rpg-encoder": {
"command": "npx",
"args": [
"-y",
"rpg-encoder"
]
}
}
}Cursor ~/.cursor/mcp.json
{
"mcpServers": {
"rpg-encoder": {
"command": "npx",
"args": [
"-y",
"rpg-encoder"
]
}
}
}VS Code .vscode/mcp.json
{
"servers": {
"rpg-encoder": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"rpg-encoder"
]
}
}
}Claude Code terminal
claude mcp add rpg-encoder -- npx -y rpg-encoderWhere it is published
| npm package | rpg-encoder |
|---|---|
| MCP Registry | io.github.userFRM/rpg-encoder |
| Listed in | 4 catalogs (github_search, glama, mcp_registry, mcp_toplist) |
| License | MIT |
| Created | 2026-02-05 |
| Topics | agentic-tools code-analysis code-understanding embeddings llm mcp program-graph rust semantic-search tree-sitter |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.