freshcrate
Skin:/
Home > MCP Servers > peta-core

peta-core

The Control Plane for MCP โ€” secure vault, managed runtime, audit trail, and policy-based approvals.

Why this rank:Strong adoptionRelease freshnessHealthy release cadence

Description

The Control Plane for MCP โ€” secure vault, managed runtime, audit trail, and policy-based approvals.

README

Peta Core

A control-plane runtime for MCP (Model Context Protocol). Gateway, vault, policy engine, and audit trail for every tool call between AI agents and downstream MCP servers.

Supports the core infrastructure components required to run MCP in production: gateway routing, runtime supervision, policy enforcement, credential management, and audit logging.

Node License PostgreSQL TypeScript

Key guarantees:

  • Credential vault. Secrets stay encrypted at rest (PBKDF2 + AES-GCM) and are injected server-side at execution time. Clients never see raw credentials.
  • Policy engine. RBAC/ABAC with per-user, per-tool capability filtering. Optional human-in-the-loop approval for high-risk operations.
  • Audit trail. Every tool call is logged with caller identity, policy decision, and outcome. Secrets are never included in logs.
  • Managed runtime. Supervises downstream MCP servers with lifecycle controls and automated recovery.
  • Protocol compatibility. Standard MCP upstream and downstream. Existing clients and servers work without modification or custom extensions.
  • Self-hosted. On-premises deployment model. No hosted SaaS dependency.

Quick Start | Website | Documentation


Architecture

Peta MCP Stack Overview

Peta Core sits between MCP clients (Claude, ChatGPT, Cursor, n8n, or any MCP-compatible client) and downstream MCP servers. From the client's perspective, it connects to a single MCP server. Behind that endpoint, Peta Core routes to multiple downstream servers using standard MCP in both directions.

Peta Core is one component of the Peta MCP stack:

  • Peta Core (this repository) โ€” MCP gateway, credential vault, policy engine, and audit runtime.
  • Peta Console โ€” Admin UI for users, servers, policies, approvals, and audit logs.
  • Peta Desk โ€” Desktop client for approval workflows and per-user server configuration.

This repository contains only Peta Core. See docs.peta.io for the full stack.


Features

MCP Gateway

  • Transparent MCP proxying. Acts as an MCP server upstream and an MCP client downstream. Routes tool calls via namespaced identifiers (serverId::toolName).
  • Built-in OAuth 2.0 authorization server. Authorization Code with PKCE, refresh tokens, dynamic client registration, token introspection, and revocation.
  • Anonymous public access mode. Optionally allow token-less access for selected public servers through /mcp/public, while authenticated traffic continues on the standard /mcp endpoint, with configurable anonymous rate limits.

Runtime & Extensions

  • Downstream server runtime. Lazy start on first request, health checks, idle timeouts, and capability caching.
  • Custom MCP tools (HTTPS or stdio). HTTPS-based custom tools remain supported, with stdio transport added for process-based tools.
  • Docker-safe CustomStdio execution. In Docker deployments, non-docker stdio commands are transparently executed inside petaio/mcp-runner:latest; explicit docker commands keep their original behavior.
  • REST API adapter. Register HTTP endpoints as MCP servers. Peta Core translates tool calls to HTTP requests without writing a custom MCP server.
  • Skill packages. Upload per-server ZIP bundles with SKILL.md metadata. Served as namespaced MCP tools, isolated by server ID.

Credential Vault

  • Server-side credential injection. Credentials are decrypted and injected at execution time. They never appear in client configs or prompts.
  • Encrypted configuration storage. Server launch configs and per-user configuration blobs are encrypted at rest.
  • OAuth token brokerage. Stores downstream OAuth configurations encrypted, refreshes access tokens automatically, and injects them into downstream calls. Refresh tokens are never exposed.

Policy Engine

  • Per-user, per-tool policy evaluation. RBAC/ABAC rules with content-aware DSL conditions and capability filtering.
  • Human-in-the-loop approvals. Durable approval queue with explicit lifecycle states and replay-safe retries.
  • Rate limiting and network controls. Per-user quotas with sliding window enforcement. Optional IP allow-lists per workspace.

Result Cache

  • Configurable result caching with per-entity policy controls (tools, prompts, resources.inline, resources.exact, resources.patterns).
  • Safe-by-default behavior for tool results: approval-gated or error results are not promoted into cache.
  • Scope-aware cache keys and purge controls, including exact purge with operation/entity-level targeting.

Audit & Observability

  • Audit trail. Records caller identity, tool name, policy decision, approval status, and outcome for every tool call. Secrets are excluded from log payloads.
  • Structured logging. Pino-based JSON logs with per-module child loggers. Integrates with external log aggregation via webhook.
  • Observability workflows. Audit records and structured logs support log views, export workflows, and usage dashboards.

Reliability

  • Stream resumption. Events are persisted to allow clients to resume via Last-Event-ID after disconnection.
  • Real-time notification channel. Socket.IO-based push for approval requests, capability updates, and server status changes.
  • Automatic server recovery. Consecutive downstream timeouts trigger a health ping and automatic reconnection.
  • Request-level retry. On downstream disconnection, the gateway reconnects and retries the call up to two times. Clients see a single request.

Documentation


License

Licensed under the Elastic License 2.0 (ELv2).

You may use, modify, and self-host this software. You may not provide it to third parties as a hosted or managed service, remove license key functionality, or obscure licensing notices.

For detailed terms, see the LICENSE file.

Copyright ยฉ 2026 Dunia Labs, Inc.

Release History

VersionChangesUrgencyDate
v1.2.1## Highlights - Improved MCP Streamable HTTP resumability by wiring persisted event replay into the upstream transport. SSE reconnects can now use `Last-Event-ID` within the same session, with replay scoped to that session to prevent cross-client event leakage. - Hardened session reconnect behavior after explicit `DELETE /mcp` termination. Peta Core now allows one short grace-period reuse of a server-issued session ID only for the same authenticated identity and token fingerprint, while continuiHigh4/28/2026
v1.2.0## Highlights - Added first-class OAuth support for HubSpot, Intercom, and Slack template servers, covering authorization-code exchange, persisted provider metadata, and runtime credential injection for downstream launches. - Added owner-side OAuth reauthorization for existing template servers, so Peta Console and related control-plane clients can refresh stored connector credentials without recreating the server configuration. ## Fixes and Improvements - Hardened Intercom OAuth handling by valHigh4/21/2026
v1.1.9## Highlights - Added optional Peta Progressive Disclosure (PPD) for the MCP gateway. Deployments can now keep the existing flat tool list, expose a hybrid catalog-assisted flow, or switch to a strict catalog-first mode without changing the default behavior for existing clients. - Introduced gateway-native discovery tools: `peta.catalog.search`, `peta.catalog.describe`, and `peta.catalog.execute`, along with admin APIs for discovery config, profile management, preview, reindexing, and catalog stHigh4/7/2026
v1.1.8## Highlights - Added configurable result caching with admission control, multiple store backends, namespace versioning, structured `cache.*` request logs, exact purge semantics, and approval-aware cache safety protections. - Added content-aware policy enforcement with an asynchronous HITL approval queue, approval audit metadata and pagination, execution result replay, synchronous wait polling, and multiple lifecycle hardening fixes across the proxy and admin surfaces. - Expanded MCP runtime caMedium3/30/2026
v1.1.7## Overview This release includes all changes from `v1.1.6` to `HEAD` (`d89f4c1`), covering improvements to `CustomStdio` runtime support, startup diagnostics, lazy-start recovery, OAuth configuration handling, documentation, and test coverage. Compare: https://github.com/dunialabs/peta-core/compare/v1.1.6...d89f4c1 ## Highlights ### CustomStdio runtime improvements - Added Docker runner support for `ServerCategory.CustomStdio`. - When `PETA_CORE_IN_DOCKER=true`, non-`docker` stdLow3/17/2026
v1.1.6## Release Summary This release updates Peta Core from `v1.1.4` to `v1.1.6`, focused on public anonymous MCP access, stdio-based custom server support, and follow-up fixes for server configuration and reconnect flows. ## What's Changed ### Added - Added anonymous access for public MCP servers through the `/mcp/public` endpoint. - Added per-server `anonymousAccess` and `anonymousRateLimit` configuration support. - Added database schema support for anonymous MCP access. - Added stdio Low3/13/2026
v1.1.4### Overview This release introduces content-aware tool policy control and a durable human-in-the-loop approval workflow, with follow-up improvements for approval reliability, replayability, auditability, and documentation clarity. ### Highlights - Added content-aware tool policies with DSL-based evaluation and server/global policy resolution. - Added persistent async HITL approval queue to replace the previous synchronous timeout-based approval flow. - Added approval execution result repLow3/9/2026
v1.1.2### Release Scope - Compare: https://github.com/dunialabs/peta-core/compare/v1.1.0...dd2eb74 - Commit range: `v1.1.0` (2026-02-09) to `dd2eb74` (2026-03-02) - Total commits: 31 - Changed files: 41 - Diff stats: +1362 / -247 - Contributors: bc-dunia, Miles-YF, Asher367, bc, yufei, Miles-ZF, Miles ### Highlights - Added OAuth Token Introspection support (`POST /introspect`, RFC 7662), with aligned token model and documentation updates. - Added Canva OAuth provider support and token refrLow3/2/2026
v1.1.0## โœจ Highlights - New OAuth capabilities: Peta OAuth init flow, server creation via authorizationโ€‘code token exchange, Peta Console / Peta Desk submit code to exchange and start MCP servers, plus automatic startup and optional deployment of `peta-auth`. - Added support for GitHub MCP server and Google Calendar MCP server. - Skills and server capabilities: added Skills upload management APIs (10040โ€“10043). ## โš™๏ธ Improvements - Enhanced multi-auth server configuration; updated configurationLow2/9/2026
v1.0.2๐ŸŽฏ New Features Server Access Control Enhancement Added publicAccess field to provide granular control over default server access policies. Key Changes: - Database Schema: New publicAccess boolean field in Server table (defaults to false) - Permission Logic: When users have no explicit permissions, access is now determined by the publicAccess field instead of defaulting to true - API Support: Full CRUD support for publicAccess in server management endpoints (create/query/update) - SLow1/13/2026
v1.0.1๐Ÿš€ Major Features Lazy Loading for MCP Servers - Implemented on-demand server startup mechanism - MCP servers now load configuration into memory but only launch when first called - Automatic shutdown after 5 minutes of inactivity to conserve system resources - Global control via LAZY_START_ENABLED environment variable (default: true) - Per-server control via lazyStartEnabled database field - Runtime configuration changes now properly handle lazy start enabled/disabled transitions โœจ EnLow1/9/2026
v1.0.0-beta.2Fix the bug where the delay time exceeds the maximum limit when notion automatically refreshes the tokenLow12/19/2025
v1.0.0-beta.1**Full Changelog**: https://github.com/dunialabs/peta-core/commits/v1.0.0-beta.1Low12/17/2025

Dependencies & License Audit

Loading dependencies...

Similar Packages

studioOpen-source control plane for your AI agents. Connect tools, hire agents, track every token and dollarv2.396.1
agentA unified Model Context Protocol server implementation that aggregates multiple MCP servers into one.v0.32.1
mcp-abap-adtMCP server for SAP BTP ABAP Cloud and On-Premise ECC/S/4HANA ABAP ADT with full CRUD, JWT/XSUAA, and service-key auth.v7.0.0
mcp-local-ragLocal-first RAG server for developers. Semantic + keyword search for code and technical docs. Works with MCP or CLI. Fully private, zero setup.v0.14.2
kibiRepo-local, per-git-branch, queryable knowledge base for LLM Agents.kibi-mcp@0.16.1

More in MCP Servers

claude-plugins-officialOfficial, Anthropic-managed directory of high quality Claude Code Plugins.
langchain4jLangChain4j is an open-source Java library that simplifies the integration of LLMs into Java applications through a unified API, providing access to popular LLMs and vector databases. It makes impleme
hyperframesWrite HTML. Render video. Built for agents.
claude-code-guideClaude Code Guide - Setup, Commands, workflows, agents, skills & tips-n-tricks go from beginner to power user!