ID Protocol

io.github.markoblogo由 GitHub 账号 markoblogo 发布v0.4.0更新于 Oct 24, 2026

Portable human-AI context protocol reference tooling.

概览

AI 生成的概览

一个本地 Python 命令行工具,把经过审阅的个人资料文件转换为紧凑、经隐私过滤的上下文,供 AI 工具和代码仓库使用。

可以做什么
ID Protocol 提供 idctl 命令行工具,用于管理以 Markdown 文件保存的个人上下文资料。命令包括 init、validate、refresh-soul、export-compact、diff 和 install-set-hook。它会生成 soul.md、context.compact.json、mcp.context.resource.json 等派生文件,并按逐字段隐私策略过滤,未列出的字段只保留在本地。README 说明该软件包是本地 CLI,本身不提供 MCP 服务器,也不同步厂商账户。
适用场景
当你希望把工作偏好和操作约束保存在自己控制的文件中,并在 AI 工具与代码仓库之间传递经过审阅和过滤的上下文时适用。适合需要明确的逐字段导出权限、并在共享上下文前先审阅的用户。
运行要求
需要本地安装 Python 3.11 或更高版本(例如通过 uv tool install id-protocol)。紧凑导出和 MCP 资源导出需要先用 idctl init 创建资料目录,并具备 owner_id 与所请求资料匹配的有效隐私策略。未声明需要账户、API 密钥或网络访问。
安装前请注意
当隐私策略缺失、格式错误、混合、冲突或 owner_id 不匹配时,导出会被阻止;--allow-unfiltered 仅在经过审阅的旧版工作流中允许缺少策略,无法绕过无效策略。生成的 JSON 只是传输视图,可能省略细节,附加到其他工具前应先审阅导出结果。在公开 issue 和 pull request 中请使用合成资料。

安装

在 SourceWeft 中

  1. 打开 控制台中的 ID Protocol,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[ID Protocol logo]

ID Protocol — portable context for AI tools

[CI] [PyPI] [Python] [MIT] [ID Protocol — Local CLI on MCPRush]

Keep your working preferences in files you control. ID turns a reviewed profile into compact, privacy-filtered context that can move between AI tools and repositories.

Try it in five minutes

Requires Python 3.11 or newer.

sh
uv tool install id-protocolmkdir my-id-profile && cd my-id-profileidctl init --owner-id demo

Edit profiles/demo/profile.minimal.md, then build and inspect the portable output:

sh
idctl validate --owner-id demoidctl refresh-soul --owner-id demoidctl export-compact --owner-id demoidctl diff --owner-id demo --since 7d

The starter profile is provisional until you review it. Use an alias such as demo or my-work-profile; a legal name is unnecessary. ID does not upload generated files.

Files and ownership

FileRole
profile.minimal.mdSmall owner-edited starting profile
profile.core.mdCanonical profile when a fuller source is needed
profile.extended.mdOptional detailed workflows and context
privacy-policy.v1.jsonPer-field export permissions
handshake.mdConcise rules for applying context
soul.mdShort derived bootstrap for an agent
context.compact.jsonPrivacy-filtered portable context
mcp.context.resource.jsonResource payload for an external MCP adapter

Markdown profiles remain the source of truth. Generated JSON is a transport view and may omit nuance. The package is a local CLI; it does not provide an MCP server or synchronize vendor accounts.

Privacy behavior

Compact and MCP resource exports require a valid policy whose owner_id matches the requested profile. Unlisted fields stay local-only. Missing, malformed, mixed, conflicting, or owner-mismatched policies block export.

Legacy list policies from earlier releases are normalized in memory during validation and export. Their source files remain unchanged and their restrictions remain effective. --allow-unfiltered only permits a missing policy in a reviewed legacy workflow; it cannot bypass an invalid policy.

Review the resulting export before attaching it to another tool. See the privacy model, policy schema, and threat model.

ABVX toolchain

ProductResponsibilityTested release
IDHuman preferences and operating constraints0.5.2
agentsgenRepository instructions and commands0.5.0
SETReview-first workflow planning and exports0.4.0
abvx-agent-skillsOptional reusable workflows0.15.0

These remain independently installable. ID does not install companions or grant tool permissions.

For a repository that already contains a reviewed ID profile:

sh
idctl install-set-hook --path .

The adapter returns owner-local bootstrap pointers to SET and preserves an existing custom hook. See the SET integration guide.

Evidence

Three reproducible demos exercise installed onboarding, policy-filtered omission, legacy-policy compatibility, and the agentsgen/SET handoff with synthetic data. They measure local CLI behavior and runtime, not AI answer quality.

The historical benchmark snapshot is a small checked-in sample with explicit limits. AI-client behavior still depends on each client's configuration and context rules.

Develop

sh
git clone https://github.com/markoblogo/ID.gitcd IDpython -m venv .venv. .venv/bin/activatepython -m pip install ".[dev]" build twinemake validatemake drift-checkmake coveragemake release-buildmake release-check

Start with the documentation index, protocol, integration boundaries, and contributing guide. Use synthetic profiles in public issues and pull requests.

ABVX ecosystem

  • AGENTS.md_generator — Exports reviewed context for repository guidance. Current release: v0.5.1.
  • AGENTS.md_generator — Keeps repository guidance and machine-readable context current. Current release: v0.5.1.
  • abvx-agent-skills — Uses shared, reviewable agent capabilities during maintenance. Current release: v0.16.1.

This block is generated from the reviewed ABVX ecosystem registry.

来源:README.md,提交 80ff7da

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.4.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分