jiminy

jiminy

Serves a versioned constitution (mission and principles) over MCP as a coherence control plane for multi-agent systems, enabling agents to fetch the current direction and receive change notifications.

Category
访问服务器

README

Jiminy

A coherence control plane for multi-agent systems: one versioned source of truth for your system's mission and principles (its constitution), served over MCP so every agent can act on the direction in force right now — even when that direction changes mid-flight.

The name is the point: a small conscience the rest of the system consults.

Why

When a multi-agent system's goals change, agents holding a stale copy of the old direction keep producing work for it — and worse, quality checks against the stale copy actively push work back toward the obsolete goal. Jiminy removes the stale copy: direction lives in one versioned store, agents pull the current version at each step boundary, and subscribers are notified the moment it changes.

Quick start

pip install .             # from a clone; CLI: jiminy
jiminy init-db
jiminy set --mission "Ship a lending product people trust" \
           --note "initial constitution"
jiminy current
jiminy serve --transport stdio    # or --transport http

A constitution is a mission (the overarching purpose — the tie-breaker when principles conflict) plus ordered principles. Every change appends a new immutable version with a plain-language change note; nothing is edited in place, so "what was the direction when agent X acted" is always answerable.

The contract

Three operations, over MCP or Python:

  • get_constitution — the direction in force now (mission, principles, version).
  • get_changes_since(known_version) — the pull an agent makes before a step: the full current direction plus the change notes since the version it last saw. A missed notification is harmless — the next pull is self-describing.
  • set_direction(mission?, principles?, change_note) — append the next version. Omitted fields carry forward. On HTTP this requires the bearer token.

Clients may also subscribe to the jiminy://constitution/current resource and receive a standard MCP resources/updated notification on every version bump.

Multiple constitutions

One Jiminy can hold several constitutions side by side — say one per product line or per jurisdiction. Every operation takes an optional constitution name, over MCP and on the CLI (--constitution eu), and defaults to "default", so a single-constitution setup never has to mention it. Each name has its own version sequence: bumping eu to v2 leaves default at whatever version it was. A name you have never written to reads as the same version-0 empty state an untouched store does. The subscribable resource is the default constitution's; agents on another one pull it by name with get_changes_since.

Storage

SQLite out of the box; PostgreSQL for production via JIMINY_DATABASE_URL. Storage is pluggable: hand SqlConstitutionStore your own SQLAlchemy Engine to live inside an existing database, or implement the small store protocol to bring your own persistence entirely. Concurrent writers are safe — versions are serialized by a unique index and a retry, never lost or duplicated.

Reads never fail on an empty store: before any direction is set, consumers get a version-0 empty state, so integrating Jiminy ahead of adopting it costs nothing.

Auth

  • stdio: open. A process that can spawn the server already owns the database file under it; a token there would be ceremony, not a boundary.
  • HTTP: a shared bearer token (JIMINY_TOKEN) gates every request. The server refuses to start tokenless over HTTP unless you explicitly opt in (JIMINY_ALLOW_INSECURE_HTTP, local experimentation only — it warns).

Testing

python -m pytest -q                      # SQLite, no network
JIMINY_TEST_POSTGRES_URL=postgresql+psycopg://… python -m pytest -q   # + Postgres

Sibling project: Canon tests whether your system's outputs actually cohere with the constitution Jiminy serves.

See CONTRIBUTING.md for style and test expectations.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选