Peta Coreのロゴ

Peta Core

組織
dunialabs

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

公開者dunialabs
リポジトリpeta-core
言語TypeScript
フォーク
10
スター
59
利用可能なツール
0
通信方式stdio
リンク
  • ツールをAIワークフローに接続

    Peta Coreは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには59件のスターと10件のフォークがあります。

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, plus downstream compatibility for the shared gateway flows that Peta Core currently supports. Standard server-initiated reverse requests (sampling, roots, elicitation) are intentionally not exposed in the current shared runtime.
  • 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 for the shared forward-request flows it supports.

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).
  • MCP 2026-07-28 support. Modern clients can use stateless server/discover, POST-only Streamable HTTP, subscriptions/listen, OAuth resource metadata, and per-request protocol metadata behind a rollout flag while legacy sessionful clients remain supported.
  • 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.

Progressive Disclosure

  • Configurable tool visibility. Three discovery modes (FLAT, HYBRID, STRICT) control whether tools are directly exposed or discoverable only through a catalog search interface.
  • Discovery profiles. Named profiles with rule-based exposure policies determine which tools are directly callable based on server identity and risk level.
  • Persistent catalog index. A searchable index of all tool capabilities across managed servers, with native catalog.search, catalog.describe, and catalog.execute tools for AI-driven discovery.

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

Verification

Run PETA_COMPAT_OWNER_TOKEN=<test-owner-token> npm run compat:smoke to verify real legacy and modern MCP gateway flows. It requires the local database and JWT_SECRET, cleans up its compat-smoke-* records, and writes the ignored diagnostic report at scripts/compat-smoke/report.json.


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.

Peta CoreのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Peta Coreに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Peta Coreをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Peta CoreのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "peta-core": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてPeta CoreのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Peta CoreのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Peta Coreを使ってこのタスクを手伝ってもらえますか?
Peta Core
はい、読みました。
Peta Coreで調べた結果をお伝えします。

よくある質問

Peta Core MCPサーバーは何に使いますか?

Peta Coreは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでPeta Core MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでPeta Coreを利用できます。

TypingMindでPeta Core MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Peta Coreを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Peta Core MCPをTypingMindに接続するにはどうすればよいですか?

Peta CoreはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでPeta Core MCPのどのようなツールを利用できますか?

Peta CoreはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Peta Core MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Peta Coreで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇