# Repository Briefing: BeehiveInnovations/pal-mcp-server
> Source: https://repoforai.com/repo/BeehiveInnovations/pal-mcp-server (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/BeehiveInnovations/pal-mcp-server
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: See repository
- **Engineering Health**: B+ (73/100 · Maintenance 35/35 · Adoption 21/25 · Releases 11/20 · License 6/20)
- **Latest Release**: v9.8.2 (2025-12-15) — https://github.com/BeehiveInnovations/pal-mcp-server/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP
- **Momentum**: 11,874 ★ total (+3 24h / +15 7d) · 1,038 forks
- **When to Use**: Best for: Teams that want to keep their existing MCP-capable coding client while making cross-model review, planning, and precommit checks a repeatable workflow. Skip if: One model already meets your needs, you want the fewest dependencies, or your source-code policy rules out the provider and CLI configurations you would need.

## Overview
```text
### Architecture & Core Mechanics
PAL is a Python MCP server that sits between a coding client and two execution paths. The host client invokes task-oriented MCP tools. API-backed workflows use model providers, while `clink` invokes an external coding CLI with a selected role. The host drives the workflow; PAL carries conversation context between steps so that changing models or tools does not require starting the task over.

The installed `pal-mcp-server` command maps to `server:run`. The source tree separates `tools/`, `providers/`, `clink/`, `systemprompts/`, and `conf/`; packaging includes model catalogs, CLI client definitions, and `clink` prompt templates. Runtime dependencies include `mcp>=1.0.0`, `google-genai>=1.19.0`, `openai>=1.55.2`, `pydantic>=2.0.0`, and `python-dotenv>=1.0.0`. Provider and CLI configuration are concrete extension points; a public third-party plugin interface is not established.

### Key Capabilities & Differentiators
PAL’s strongest workflow is a review that carries forward into action: `codereview` gathers findings across passes, additional models offer second opinions, `planner` breaks remediation into steps, and `precommit` checks the resulting changes. `consensus` solicits opinions with configurable stances, while `debug` structures an investigation around hypotheses and confidence. Conversation threading and context revival help preserve prior findings across tool calls and host context resets.

Backends include Gemini, OpenAI, Azure OpenAI, X.AI, OpenRouter, DIAL, Ollama, and custom models. The server supports automatic model selection with `DEFAULT_MODEL=auto`, configurable thinking depth, image input with suitable models, and file handling that expands directories and manages token budgets. Large-prompt support addresses the 25K-token MCP limit identified for this workflow; the chosen model still determines its usable context. `clink` provides a separate execution path when a task benefits from a fresh CLI context rather than another model API call.

### Trade-offs & Limitations
Compared with staying inside one coding CLI or calling one provider directly, PAL is most valuable when handoffs recur: one model reviews, another challenges a finding, and the resulting analysis carries forward into planning or validation. The price is another layer of configuration and troubleshooting. Each extra model call can add latency and usage cost, while enabled tool definitions take up host context even when unused. Keep the tool set narrow with `DISABLED_TOOLS`; do not mistake model agreement for test evidence.

The key operational boundary is where context goes and what delegated processes can do. Selected code and conversation context can reach external providers. A fresh `clink` context is not proof of an OS sandbox, so check file access and credentials for delegated CLIs. Using Ollama for a call can keep that inference local, but does not make a mixed-provider workflow offline. A `LICENSE` file is present, but its terms are not established; inspect it before approving commercial use or redistribution.

### Hardware & Deployment Guide
Use Python 3.10+, Git, and `uv` for the documented quick-start path; the package metadata declares Python `>=3.9`. Options include cloning and running `./run-server.sh` or registering a Git-backed `uvx` launch command in the MCP client. A PowerShell launcher is also present. Configure providers with `.env` or the client’s environment. The Compose service builds the `runtime` target from `Dockerfile` and passes model settings and provider credentials via environment variables; use a managed secret mechanism for shared deployments.

The MCP server can be self-hosted while inference remains external. For local inference, configure Ollama or a suitable local endpoint and verify reachability from the PAL process or container. If using `clink`, verify that the chosen CLI is installed and usable in that same execution environment. For repeatable deployment, pin a reviewed revision or image rather than relying on an unpinned Git launch or `latest`. Of the supplied releases, v9.8.2 is the one to evaluate first: it addresses path traversal and adjusts handling of home subdirectories. v9.8.1 fixes an OpenRouter Responses request incompatibility, and v9.8.0 adds Claude Opus 4.5 through OpenRouter.
```

## Key Capabilities
```text
- MCP entry point: `pyproject.toml` maps `pal-mcp-server` to `server:run` and requires `mcp>=1.0.0`.
- Provider configuration: Packaged JSON model catalogs cover Gemini, OpenAI, Azure, OpenRouter, X.AI, DIAL, and custom models.
- CLI delegation: `clink` can invoke Gemini CLI, Codex CLI, or Claude Code in a fresh context with roles such as `planner` and `codereviewer`.
- Workflow continuity: Carry review findings into a plan and a precommit check without manually rebuilding the conversation for each tool.
- Context budget: `DISABLED_TOOLS` limits tool definitions exposed to the host; `version` and `listmodels` cannot be disabled.
- Release maintenance: v9.8.2 addressed path traversal; v9.8.1 removed the `store` parameter from requests to OpenRouter’s Responses endpoint.
```

## Quick Start / Clone
```bash
# Codex spawns Codex subagent for isolated code review in fresh context
clink with codex codereviewer to audit auth module for security issues
# Subagent reviews in isolation, returns final report without cluttering your context as codex reads each file and walks the directory structure

# Consensus from different AI models → Implementation handoff with full context preservation between tools
Use consensus with gpt-5 and gemini-pro to decide: dark mode or offline support next
Continue with clink gemini - implement the recommended feature
# Gemini receives full debate context and starts coding immediately
```
