MCP ScannerCustom audit
All servers

ThinkyMiner/codeTree

MCP server with 23 tools for structured code understanding via tree-sitter. 10 languages. 999 tests. One-command install.

Packagemcp-server-codetree
Version0.2.0 in pyproject.toml
PublisherThinkyMiner community
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 30Forks 9Last push 2026-11-12
Python 100.0%by source files the scanner reads
Code safetypartly tracedExposure5.9Prompts10.0Supply chainnot checkedSecrets10.0Transparency10.0
Analysis confidence91%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure5.9/10Fair

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chainnot checked—

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

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.

  • Some paths pass through more than 8 functions one inside another; the scanner stops there
  • In 59 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
  • Supply Chain: the dependency files state no exact versions the scanner could check, so it has no number

Top risks in plain words

  • HIGHTool get_skeletons reads or writes any file path by design: an agent steered by prompt injection can use it that way.

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 only the folder it needs

    get_skeletons can read or write any file path. Mount a single project folder, read-only where you can.

  • Turn off the tools you do not use

    Most MCP clients let you disable single tools. If you do not need get_skeletons, switch them off.

  • 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 23 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.

Start other programs on the machinecan run commands or launch programs
get_change_impact
1 of 23
Read or write filesopen, create, change or delete files
analyze_dataflow, get_change_impact, get_complexity, get_file_skeleton, get_imports, get_repository_map and 4 more
10 of 23
Connect to the internet or other hostssend requests or open connections
get_change_impact, get_repository_map, index_status
3 of 23

No tool was seen to: read passwords, tokens or keys; read environment variables; touch sensitive locations.

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.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

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.

  • files7 tools · analyze_dataflow, get_complexity, get_file_skeleton +4

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 (23: 23 tools)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

get_skeletonstool Get skeletons for multiple files in one call.Filesoutside textReads/writes files
Get skeletons for multiple files in one call.

        Args:
            file_paths: list of paths relative to the repo root
            format: "full" (default) or "compact" (abbreviated)
analyze_dataflowtool Analyze variable dataflow and security taint paths in a function.Filesoutside text
Analyze variable dataflow and security taint paths in a function.

        Args:
            file_path: path relative to the repo root
            function_name: name of the function to analyze
            mode: "flow" (variable dataflow), "taint" (source→sink taint paths),
                  or "cross_taint" (cross-function taint tracing)
            depth: max cross-function depth for cross_taint mode (default 3)
detect_clonestool Find duplicate or near-duplicate functions in the repo.
Find duplicate or near-duplicate functions in the repo.

        Detects Type 1 (exact copies) and Type 2 (copies with renamed variables).

        Args:
            file_path: optional — if given, find clones of functions in this file.
            min_lines: minimum function line count to consider (default 5).
find_dead_codetool Find symbols that are defined but never referenced elsewhere in the repo.
Find symbols that are defined but never referenced elsewhere in the repo.

        Args:
            file_path: optional — if given, only check this file. Otherwise scans entire repo.
find_hot_pathstool Find high-leverage optimization targets by combining complexity and call frequency.
Find high-leverage optimization targets by combining complexity and call frequency.

        Returns functions ranked by hot_score = complexity * inbound_call_count.
        Functions with high scores are called often AND complex — prime optimization targets.

        Args:
            top_n: max results to return (default 10)
find_referencestool Find all usages of a symbol across the entire repo.
Find all usages of a symbol across the entire repo.

        Args:
            symbol_name: name of the symbol to search for; results include
                file paths relative to the repo root (e.g., "src/main.py")
find_teststool Find test functions associated with a symbol.
Find test functions associated with a symbol.

        Searches by naming convention (test_<name>), direct reference,
        and file convention (test_<module>). Results ranked by confidence.

        Args:
            file_path: path relative to the repo root
            symbol_name: name of the function/class to find tests for
get_blast_radiustool Find all functions transitively affected if a symbol is changed.
Find all functions transitively affected if a symbol is changed.

        Shows direct and indirect callers (what breaks) and dependencies (what it relies on).

        Args:
            file_path: path relative to the repo root
            symbol_name: name of the function/method to analyze
get_call_graphtool Get what a function calls and what calls it across the repo.
Get what a function calls and what calls it across the repo.

        Args:
            file_path: path relative to the repo root (e.g., "src/main.py" or "calculator.py")
            function_name: name of the function to inspect

        Note:
            Callee names listed under "calls" can be located with
            find_references(symbol_name) to find where they are defined.
get_change_impacttool Analyze impact of a change — by explicit symbol or git diff.ProcessesFilesNetwork
Analyze impact of a change — by explicit symbol or git diff.

        Shows direct/transitive callers with risk classification and affected tests.

        Args:
            symbol_query: symbol name to analyze (e.g., "add")
            diff_scope: "working" (uncommitted), "staged", or "HEAD~1" for git-based analysis
            depth: max hop depth (default 3)
get_complexitytool Get cyclomatic complexity of a function.Filesoutside text
Get cyclomatic complexity of a function.

        Args:
            file_path: path relative to the repo root (e.g., "src/main.py" or "calculator.py")
            function_name: name of the function to analyze
get_dependency_graphtool Get the file dependency graph as Mermaid syntax or a list.
Get the file dependency graph as Mermaid syntax or a list.

        Shows which files import which other files, useful for understanding
        module structure and identifying circular dependencies.

        Args:
            file_path: optional — show only dependencies involving this file
            format: "mermaid" (default, Mermaid.js flowchart) or "list"
get_file_skeletontool Get all classes and function signatures in a source file without their bodies.Filesoutside text
Get all classes and function signatures in a source file without their bodies.

        Args:
            file_path: path relative to the repo root (e.g., "src/main.py" or "calculator.py")
            format: "full" (default, verbose, includes syntax warnings) or "compact" (abbreviated, fewer tokens, no syntax warnings)
get_importstool Get import/use statements from a source file.Filesoutside text
Get import/use statements from a source file.

        Args:
            file_path: path relative to the repo root (e.g., "src/main.py" or "calculator.py")
get_repository_maptool Get a compact overview of the repository for onboarding.FilesNetwork
Get a compact overview of the repository for onboarding.

        Returns languages, entry points, hotspots, recommended start_here symbols,
        and stats — everything an agent needs to orient in an unfamiliar repo.

        Args:
            max_items: maximum items per section (default 5)
get_symboltool Get the full source code of a specific function or class by name.Filesoutside text
Get the full source code of a specific function or class by name.

        Args:
            file_path: path relative to the repo root (e.g., "src/main.py" or "calculator.py")
            symbol_name: name of the function or class to retrieve
get_symbolstool Get the full source code of multiple symbols in one call.Filesoutside text
Get the full source code of multiple symbols in one call.

        Args:
            symbols: list of {"file_path": "...", "symbol_name": "..."} dicts
git_historytool Analyze git history: blame, churn, or change coupling.
Analyze git history: blame, churn, or change coupling.

        Args:
            mode: "blame" (per-line attribution), "churn" (most-changed files),
                  or "coupling" (files that change together)
            file_path: required for blame, optional filter for coupling
            top_n: max results for churn/coupling (default 20)
            since: date filter for churn (e.g., "6 months ago")
            min_commits: minimum co-change count for coupling (default 3)
index_statustool Report on index build progress, graph freshness and stats.FilesNetwork
Report on index build progress, graph freshness and stats.

        Never blocks: while the server is still indexing, "status" shows the
        phase (discovering, indexing, building_graph) and file progress.
resolve_symboltool Disambiguate a short symbol name into ranked qualified matches.
Disambiguate a short symbol name into ranked qualified matches.

        Resolves ambiguous names like 'add' to specific qualified symbols
        ranked by relevance (path match, non-test preference, centrality).

        Args:
            query: symbol name to resolve
            kind: filter by type (function, class, method, etc.)
            path_hint: prefer results from files matching this path
            limit: max results (default 10)
search_graphtool Search the code graph with flexible filters and pagination.
Search the code graph with flexible filters and pagination.

        Args:
            query: case-insensitive substring match on symbol name
            kind: exact type filter (function, class, method, struct, etc.)
            file_pattern: substring match on file path
            relationship: edge type filter (CALLS, IMPORTS, CONTAINS)
            direction: "inbound" or "outbound" (used with relationship)
            min_degree: minimum total connections
            max_degree: maximum total connections (0 = isolated/dead code)
            limit: max results per page (default 10)
            offset: pagination offset (default 0)
search_symbolstool Search for symbols across the repo with flexible filters.
Search for symbols across the repo with flexible filters.

        All parameters optional — combine for powerful filtering.

        Args:
            query: case-insensitive substring match on symbol name
            type: exact match on type (function, class, method, struct, etc.)
            parent: case-insensitive substring match on parent class name
            has_doc: True = only symbols with doc, False = only without
            min_complexity: minimum cyclomatic complexity
            language: filter by file extension without dot (e.g., "py", "js", "go")
            format: "full" (default) or "compact" (abbreviated)
suggest_docstool Find undocumented functions and assemble context for writing docs.
Find undocumented functions and assemble context for writing docs.

        Args:
            file_path: optional — scope to a specific file
            symbol_name: optional — scope to a specific symbol name

Text the model reads (23)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

get_file_skeleton tool
Get all classes and function signatures in a source file without their bodies.

        Args:
            file_path: path relative to the repo root (e.g., "src/main.py" or "calculator.py")
            format: "full" (default, verbose, includes syntax warnings) or "compact" (abbreviated, fewer tokens, no syntax warnings)
get_symbol tool
Get the full source code of a specific function or class by name.

        Args:
            file_path: path relative to the repo root (e.g., "src/main.py" or "calculator.py")
            symbol_name: name of the function or class to retrieve
find_references tool
Find all usages of a symbol across the entire repo.

        Args:
            symbol_name: name of the symbol to search for; results include
                file paths relative to the repo root (e.g., "src/main.py")
get_call_graph tool
Get what a function calls and what calls it across the repo.

        Args:
            file_path: path relative to the repo root (e.g., "src/main.py" or "calculator.py")
            function_name: name of the function to inspect

        Note:
            Callee names listed under "calls" can be located with
            find_references(symbol_name) to find where they are defined.
get_imports tool
Get import/use statements from a source file.

        Args:
            file_path: path relative to the repo root (e.g., "src/main.py" or "calculator.py")
get_skeletons tool
Get skeletons for multiple files in one call.

        Args:
            file_paths: list of paths relative to the repo root
            format: "full" (default) or "compact" (abbreviated)
get_symbols tool
Get the full source code of multiple symbols in one call.

        Args:
            symbols: list of {"file_path": "...", "symbol_name": "..."} dicts
get_complexity tool
Get cyclomatic complexity of a function.

        Args:
            file_path: path relative to the repo root (e.g., "src/main.py" or "calculator.py")
            function_name: name of the function to analyze
find_dead_code tool
Find symbols that are defined but never referenced elsewhere in the repo.

        Args:
            file_path: optional — if given, only check this file. Otherwise scans entire repo.
get_blast_radius tool
Find all functions transitively affected if a symbol is changed.

        Shows direct and indirect callers (what breaks) and dependencies (what it relies on).

        Args:
            file_path: path relative to the repo root
            symbol_name: name of the function/method to analyze
detect_clones tool
Find duplicate or near-duplicate functions in the repo.

        Detects Type 1 (exact copies) and Type 2 (copies with renamed variables).

        Args:
            file_path: optional — if given, find clones of functions in this file.
            min_lines: minimum function line count to consider (default 5).
search_symbols tool
Search for symbols across the repo with flexible filters.

        All parameters optional — combine for powerful filtering.

        Args:
            query: case-insensitive substring match on symbol name
            type: exact match on type (function, class, method, struct, etc.)
            parent: case-insensitive substring match on parent class name
            has_doc: True = only symbols with doc, False = only without
            min_complexity: minimum cyclomatic complexity
            language: filter by file extension without dot (e.g., "py", "js", "go")
            format: "full" (default) or "compact" (abbreviated)
find_tests tool
Find test functions associated with a symbol.

        Searches by naming convention (test_<name>), direct reference,
        and file convention (test_<module>). Results ranked by confidence.

        Args:
            file_path: path relative to the repo root
            symbol_name: name of the function/class to find tests for
index_status tool
Report on index build progress, graph freshness and stats.

        Never blocks: while the server is still indexing, "status" shows the
        phase (discovering, indexing, building_graph) and file progress.
get_repository_map tool
Get a compact overview of the repository for onboarding.

        Returns languages, entry points, hotspots, recommended start_here symbols,
        and stats — everything an agent needs to orient in an unfamiliar repo.

        Args:
            max_items: maximum items per section (default 5)
resolve_symbol tool
Disambiguate a short symbol name into ranked qualified matches.

        Resolves ambiguous names like 'add' to specific qualified symbols
        ranked by relevance (path match, non-test preference, centrality).

        Args:
            query: symbol name to resolve
            kind: filter by type (function, class, method, etc.)
            path_hint: prefer results from files matching this path
            limit: max results (default 10)
search_graph tool
Search the code graph with flexible filters and pagination.

        Args:
            query: case-insensitive substring match on symbol name
            kind: exact type filter (function, class, method, struct, etc.)
            file_pattern: substring match on file path
            relationship: edge type filter (CALLS, IMPORTS, CONTAINS)
            direction: "inbound" or "outbound" (used with relationship)
            min_degree: minimum total connections
            max_degree: maximum total connections (0 = isolated/dead code)
            limit: max results per page (default 10)
            offset: pagination offset (default 0)
get_change_impact tool
Analyze impact of a change — by explicit symbol or git diff.

        Shows direct/transitive callers with risk classification and affected tests.

        Args:
            symbol_query: symbol name to analyze (e.g., "add")
            diff_scope: "working" (uncommitted), "staged", or "HEAD~1" for git-based analysis
            depth: max hop depth (default 3)
analyze_dataflow tool
Analyze variable dataflow and security taint paths in a function.

        Args:
            file_path: path relative to the repo root
            function_name: name of the function to analyze
            mode: "flow" (variable dataflow), "taint" (source→sink taint paths),
                  or "cross_taint" (cross-function taint tracing)
            depth: max cross-function depth for cross_taint mode (default 3)
find_hot_paths tool
Find high-leverage optimization targets by combining complexity and call frequency.

        Returns functions ranked by hot_score = complexity * inbound_call_count.
        Functions with high scores are called often AND complex — prime optimization targets.

        Args:
            top_n: max results to return (default 10)
get_dependency_graph tool
Get the file dependency graph as Mermaid syntax or a list.

        Shows which files import which other files, useful for understanding
        module structure and identifying circular dependencies.

        Args:
            file_path: optional — show only dependencies involving this file
            format: "mermaid" (default, Mermaid.js flowchart) or "list"
git_history tool
Analyze git history: blame, churn, or change coupling.

        Args:
            mode: "blame" (per-line attribution), "churn" (most-changed files),
                  or "coupling" (files that change together)
            file_path: required for blame, optional filter for coupling
            top_n: max results for churn/coupling (default 20)
            since: date filter for churn (e.g., "6 months ago")
            min_commits: minimum co-change count for coupling (default 3)
suggest_docs tool
Find undocumented functions and assemble context for writing docs.

        Args:
            file_path: optional — scope to a specific file
            symbol_name: optional — scope to a specific symbol name

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure5.9
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 23 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 23 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path HIGH
    1 finding in get_skeletons
  • Requests any address
    No tool sends a request to an address the caller supplies — 23 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 23 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    1 of 23 capabilities start processes; 22 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    10 of 23 capabilities touch files; 13 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    3 of 23 capabilities call the network; 20 more call code the scanner could not follow, where it may happen
Where the code is: 23 handlers in 1 file at commit 619513c3998b
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chainnot checked
  • Dependency manifests
    1 manifest: pyproject.toml
  • Lockfiles checked against OSV
    Nothing could be resolved to exact versions; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
  • MCP SDK version
    fastmcp >=3.0.0
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 23 capabilities; 23 more call code the scanner could not follow, where it may happen
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (0 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

No known vulnerabilities in the production dependencies that could be checked.

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 runsOn your machine, started by your MCP client from this repository or its package
Transportstdio
Sign-innot checked needs the live server
MCP SDKfastmcp >=3.0.0
Servers in the code1 (codetree)

The project's own security

Security policynone no SECURITY.md in the repository: report issues privately through GitHub if it is enabled
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-12
Signed releasesnot checked yet

Where it is published

Listed in3 catalogs (github_search, glama, mcp_toplist)
LicenseMIT
Created2026-03-07
Topicsai ast claude code-analysis coding-agents copilot cursor developer-tools llm mcp

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.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.