# getCodebase

Retrieve the entire codebase as a single text output using RepoMix

Agent View of the PolicyLayer registry record for `getCodebase`. HTML page: https://policylayer.com/tools/dedeveloper23-codebase-mcp/getcodebase

## Facts

- Tool: `getCodebase`
- Server: Codebase MCP (`dedeveloper23/codebase-mcp`) — https://policylayer.com/tools/dedeveloper23-codebase-mcp.md
- Homepage: https://github.com/DeDeveloper23/codebase-mcp
- Risk category: Read (Low risk)
- Registry record: grade B, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Allowed

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "getCodebase",
    "arguments": {}
  }
}
```

## Why getCodebase is rated Low

This tool retrieves and outputs codebase contents for analysis without modifying, executing, or deleting anything. It is a read-only operation that gathers information from an existing codebase. The blast radius of misuse is minimal — an agent could at most learn information already present in the repository, with no capability to alter state or trigger external actions.

From the tool's own definition: "Tool description: 'Retrieve the entire codebase as a single text output using RepoMix' — the verb 'retrieve' and the passive nature of the operation indicate data fetching with no side effects."

## Use case

AI agents call getCodebase to retrieve information from Codebase MCP without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Codebase MCP:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "getCodebase": {}
  }
}
```

## Other tools on Codebase MCP (2)

- `getRemoteCodebase` — Read — https://policylayer.com/tools/dedeveloper23-codebase-mcp/getremotecodebase.md
- `saveCodebase` — Write — https://policylayer.com/tools/dedeveloper23-codebase-mcp/savecodebase.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=dedeveloper23-codebase-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/dedeveloper23-codebase-mcp
