Cognirepo MCP Server

cognirepo PyPI v2.0.0

Published by ashlesh-t — no publish provenance, so origin is unverified, but the source is public: the repository link below is self-declared yet readable, so you can inspect the code before adopting it.

Trust grade
B
84/100
Last scanned get badge →
Trust
B · 84/100
Adoption risk for you: the threat score, then adjusted down for blast radius, publisher verification and how much the scan could see. Deterministic; every point is auditable.
Capability
High
Blast radius if it went rogue — what the server’s tools could reach. Independent of trust.
Coverage
Source
How much the scan could actually inspect. Shallow coverage is stated, never hidden.
Share this Trust Score
𝕏 Share LinkedIn Reddit
B Why this grade threat 91 − adoption risk = 84/100

The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.

1. Threat score — 100 − 9.5 = 91. What the published surface and source actually contain:

PointsWhat was foundCategory
−9.5 Unsafe deserialization ×2 MTC-SRC-007 permissions

2. Client adoption risk — 91 − 7 = 84. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:

PointsAdoption-risk factor
−6 capability blast radius (high) — client exposure if the model is manipulated
−1 publisher verification (public source) — no provenance, but the source is public and inspectable

Capability observations and info notes are shown under Findings but never scored. Open any row's finding below for the file, line and evidence behind a deduction.

Findings 17

high Shell/command execution in server code (intelligence/indexer/ast_indexer.py)MTC-SRC-002

In the server's implementation (`intelligence/indexer/ast_indexer.py:204`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: "HEAD"] return subprocess.check_output(cmd, stderr=subprocess.DEVNULL).decode().strip() except Exception:

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server intelligence/indexer/ast_indexer.py

high Shell/command execution in server code (intelligence/indexer/doc_ingester.py)MTC-SRC-002

In the server's implementation (`intelligence/indexer/doc_ingester.py:173`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: y: result = subprocess.run( ["git", "-C", self.root, "log", "--oneline", f"-{_GIT_LOG_LINES}

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server intelligence/indexer/doc_ingester.py

high Shell/command execution in server code (interface/cli/env_wizard.py)MTC-SRC-002

In the server's implementation (`interface/cli/env_wizard.py:136`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: try: subprocess.run([editor, dotenv_path], check=False) # nosec B603 except Exception:

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server interface/cli/env_wizard.py

high Shell/command execution in server code (interface/cli/seed.py)MTC-SRC-002

In the server's implementation (`interface/cli/seed.py:69`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: try: proc = subprocess.run( # nosec B603 ["git", "-C", abs_root, "log", "--pretty=format:%aI|%s

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server interface/cli/seed.py

high Shell/command execution in server code (interface/cli/wizard.py)MTC-SRC-002

In the server's implementation (`interface/cli/wizard.py:762`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: time.sleep(0.8) os.system("clear") return None # caller loops return cfg

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server interface/cli/wizard.py

high Shell/command execution in server code (interface/server/mcp_server.py)MTC-SRC-002

In the server's implementation (`interface/server/mcp_server.py:1079`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: terns) ─ proc = subprocess.run( # nosec B603 ["grep", "-rn", "--include=*.py", "--include=*.js", "-

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server interface/server/mcp_server.py

high Shell/command execution in server code (interface/tools/benchmark.py)MTC-SRC-002

In the server's implementation (`interface/tools/benchmark.py:74`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: try: result = subprocess.run( ["grep", "-rl", query_keyword, str(repo_root), "--inclu

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server interface/tools/benchmark.py

high Shell/command execution in server code (interface/tools/bg_progress.py)MTC-SRC-002

In the server's implementation (`interface/tools/bg_progress.py:144`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: w.py") try: subprocess.Popen( [sys.executable, script], start_new_session=True,

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server interface/tools/bg_progress.py

high Shell/command execution in server code (interface/tools/git_utils.py)MTC-SRC-002

In the server's implementation (`interface/tools/git_utils.py:70`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: try: proc = subprocess.run( cmd, cwd=repo_root, capture_output=True,

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server interface/tools/git_utils.py

medium Dynamic module load from a non-literal (interface/cli/main.py)MTC-SRC-005

In the server's implementation (`interface/cli/main.py:680`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: try: __import__(_pkg_name) _ok(f"Package — {_pkg_name} importable") except Import

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server interface/cli/main.py

medium Unsafe deserialization (data/graph/knowledge_graph.py)MTC-SRC-007

In the server's implementation (`data/graph/knowledge_graph.py:131`): Deserializing untrusted data with these APIs can execute arbitrary code (a well-known RCE gadget class). This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ss self.G = pickle.loads(raw) # nosec B301 except Exception as exc: # pylint: disable=broad-except

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server data/graph/knowledge_graph.py

medium Unsafe deserialization (data/graph/org_graph.py)MTC-SRC-007

In the server's implementation (`data/graph/org_graph.py:85`): Deserializing untrusted data with these APIs can execute arbitrary code (a well-known RCE gadget class). This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: )) self.G = pickle.loads(raw) # nosec B301 except FileNotFoundError: logger.debug("OrgG

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server data/graph/org_graph.py

low Shell/command execution in packaging/dev tooling (tests/test_cli_main_extended.py)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_cli_main_extended.py:25`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: timeout=15): return subprocess.run( [sys.executable, "-m", "interface.cli.main"] + list(args), captu

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server tests/test_cli_main_extended.py

low Dynamic module load from a non-literal in packaging/dev tooling (tests/test_context_builder.py)MTC-SRC-005

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_context_builder.py:22`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: bed"): try: __import__(_dep) except ImportError: sys.modules[_dep] = MagicMock() # Only set DiGr

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server tests/test_context_builder.py

low Dynamic module load from a non-literal in packaging/dev tooling (tests/test_fallback_chain.py)MTC-SRC-005

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_fallback_chain.py:25`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: bed"): try: __import__(_dep) except ImportError: sys.modules[_dep] = MagicMock() _HEAVY_

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server tests/test_fallback_chain.py

low Dynamic module load from a non-literal in packaging/dev tooling (tests/test_local_adapter.py)MTC-SRC-005

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_local_adapter.py:19`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: bed"): try: __import__(_dep) except ImportError: sys.modules[_dep] = MagicMock() _LOCAL_

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server tests/test_local_adapter.py

low Dynamic module load from a non-literal in packaging/dev tooling (tests/test_tier1_dogfood.py)MTC-SRC-005

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_tier1_dogfood.py:24`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: try: __import__(name) except ImportError: sys.modules[name] = MagicMock() # O

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server tests/test_tier1_dogfood.py

Tools 34

Each tool and what it can reach — statically extracted from the published source.

  • architecture_overviewno sensitive capability
  • context_packno sensitive capability
  • cross_repo_searchno sensitive capability
  • cross_repo_traverseno sensitive capability
  • dependency_graphno sensitive capability
  • episodic_searchno sensitive capability
  • explain_changeno sensitive capability
  • find_symbol_pathno sensitive capability
  • get_agent_bootstrapno sensitive capability
  • get_error_patternsno sensitive capability
Show 24 more tools ↓
  • get_last_contextno sensitive capability
  • get_service_endpointsno sensitive capability
  • get_session_briefno sensitive capability
  • get_session_historyno sensitive capability
  • get_user_profileno sensitive capability
  • graph_statsno sensitive capability
  • link_reposno sensitive capability
  • list_org_contextno sensitive capability
  • log_episodeno sensitive capability
  • lookup_symbolno sensitive capability
  • org_dependenciesno sensitive capability
  • org_searchno sensitive capability
  • org_wide_searchno sensitive capability
  • record_decisionno sensitive capability
  • record_errorno sensitive capability
  • record_user_preferenceno sensitive capability
  • retrieve_memoryno sensitive capability
  • search_docsno sensitive capability
  • search_tokenno sensitive capability
  • semantic_search_codeno sensitive capability
  • store_memoryno sensitive capability
  • subgraphno sensitive capability
  • supersede_learningno sensitive capability
  • who_callsno sensitive capability

What this scan could not see

Versions 1

Scan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.

VersionScoreFindingsEngineScanned
v2.0.0 latest B 84/100 17 1.9.0 2026-07-23

Embed this score

Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.

MCP Trust Score: B · 84/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/cognirepo/badge.svg)](https://mcptrustchecker.com/registry/cognirepo)
HTML
<a href="https://mcptrustchecker.com/registry/cognirepo"><img src="https://mcptrustchecker.com/registry/cognirepo/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/cognirepo/badge.json via https://img.shields.io/endpoint?url=…

Verify this score yourself

The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.

npx mcptrustchecker scan cognirepo --online --registry pypi

Use the free API → How scoring works

More in Developer Tools