npm korextstreamable-httpApache-2.0updated 4mo ago
Enforce compliance policies on AI generated code in your GitHub workflows.
What can you do with Korext: AI Code Governance?
KOREXT Enforce Action
Enforce compliance policies on AI generated code in your GitHub workflows.
72 policy packs. 532 rules. 13 languages. Violations appear as GitHub Code Scanning annotations on pull requests.
Quick Start
Add this to .github/workflows/korext.yml:
name: Korext Enforcement
on: [push, pull_request]
permissions:
contents: read
security-events: write
jobs:
enforce:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Korext/enforce-action@v3
with:
api-token: ${{ secrets.KOREXT_API_TOKEN }}
Korext scans your code on every push and PR using the default web policy pack.
How It Works
- Install: The action installs the Korext CLI
- Scan: Runs
korext enforceagainst your codebase with the selected policy pack - Report: Generates a SARIF file and uploads it to GitHub Code Scanning
- Gate: Fails the workflow if critical or high severity violations are found
Violations appear as annotations directly on the PR diff, powered by GitHub Code Scanning.
Inputs
| Input | Description | Required | Default |
|---|---|---|---|
directory |
Directory to scan for policy violations | No | . |
pack |
Policy Pack ID to enforce | No | web |
api-token |
Korext API token for authenticated mode | No | (anonymous) |
fail-on-violations |
Fail workflow on critical/high violations | No | true |
sarif-upload |
Upload SARIF to GitHub Code Scanning | No | true |
region |
Data processing region (us, eu, apac) | No | (default) |
sign-bundles |
Request signed proof bundles | No | true |
Outputs
| Output | Description |
|---|---|
violations |
Total number of policy violations found |
sarif-file |
Path to the generated SARIF results file |
bundle-count |
Number of proof bundles generated |
bundles-signed |
Number of signed proof bundles |
bundle-ids |
Comma separated list of proof bundle IDs |
Examples
Multiple Policy Packs
- uses: Korext/enforce-action@v3
with:
pack: web,pci-dss-v1,owasp-v1
api-token: ${{ secrets.KOREXT_API_TOKEN }}
EU Data Sovereignty
- uses: Korext/enforce-action@v3
with:
pack: gdpr-v1
region: eu
api-token: ${{ secrets.KOREXT_API_TOKEN }}
Scan Specific Directory
- uses: Korext/enforce-action@v3
with:
directory: src/
pack: hipaa-v1
api-token: ${{ secrets.KOREXT_API_TOKEN }}
Warn Only (do not fail)
- uses: Korext/enforce-action@v3
with:
pack: web
fail-on-violations: 'false'
Authentication
For full access to all policy packs and signed proof bundles, create an API token in your KOREXT dashboard and add it as a GitHub secret:
- Go to app.korext.com > Settings > API Tokens
- Create a new token
- Add it as
KOREXT_API_TOKENin your repo's Settings > Secrets and variables > Actions
Without a token, the action runs in anonymous mode (20 requests per hour, limited packs).
Links
License
Proprietary. See Terms of Service.
Install
Add Korext: AI Code Governance to your client. Pick the one you use.
{
"servers": {
"korext": {
"type": "http",
"url": "https://app.korext.com/api/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
claude mcp add korext -- npx -y korextcodex mcp add korext -- npx -y korextamp mcp add korext -- npx -y korext{
"mcpServers": {
"korext": {
"command": "npx",
"args": [
"-y",
"korext"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"korext": {
"command": "npx",
"args": [
"-y",
"korext"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"mcpServers": {
"korext": {
"command": "npx",
"args": [
"-y",
"korext"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"korext": {
"command": "npx",
"args": [
"-y",
"korext"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"korext": {
"command": "npx",
"args": [
"-y",
"korext"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"korext": {
"type": "local",
"command": "npx",
"args": [
"-y",
"korext"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"korext": {
"command": {
"path": "npx",
"args": [
"-y",
"korext"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y korextRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation17/25
- Maintenance19/25
- Trust16/20
- Capability0/15
- Install experience15/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 136 days ago
- Has a release history
- Repository is not archived
- Licensed Apache-2.0
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 18 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 3.0.1Latest | Apr 15, 2026 |
| 3.0.0 | Apr 15, 2026 |
| 0.9.9 | Apr 11, 2026 |