Repository avatar
AI Tools
v5.4.1
active

pcp-engine

io.github.rishi-banerjee1/pcp-engine

Deterministic prompt scoring, policy enforcement, and audit for any model or provider.

Documentation

Prompt Control Plane

Deterministic prompt governance for any model or provider. PCP scores, validates, compiles, and audits prompts in TypeScript. The engine makes zero LLM calls. Apache-2.0.

Install

Requires Node.js 20 or later.

npm install -g github:rishi-banerjee1/prompt-control-plane#v5.4.1
pcp preflight "Review the auth module. Preserve the public API and add tests." --json

The GitHub release is Apache-2.0. The npm update to 5.4 is coming soon; the latest npm release is 5.3.3. Check the getpcp.site changelog or GitHub Releases for version updates.

Use the GitHub Action

- uses: rishi-banerjee1/prompt-control-plane@v5.4.1
  with:
    subcommand: preflight
    files: "prompts/**/*.txt"
    threshold: 70

See action.yml for every input and output.

Use PCP as an MCP server

The MCP server exposes deterministic analysis, policy, compilation, and audit tools. Search the GitHub MCP Registry for its listing. The onboarding request is submitted and awaits manual curation.

Use the TypeScript API

import { analyzePrompt, scorePrompt } from "pcp-engine";

const intent = analyzePrompt("Review the auth module and preserve its public API.");
const score = scorePrompt(intent);
console.log(score.total);

Develop

npm ci
npm run build
npm test
npm audit --audit-level=moderate

The engine, CLI, MCP server, GitHub Action, and tests live in this repository. Product website, full documentation, explainers, and production materials are maintained privately.

MCPB
https://github.com/rishi-banerjee1/prompt-control-plane/releases/download/v5.4.1/pcp-engine-v5.4.1.mcpb
Install Command
# mcpb: https://github.com/rishi-banerjee1/prompt-control-plane/releases/download/v5.4.1/pcp-engine-v5.4.1.mcpb