Vcp Mcp

io.github.Creed-Space由 GitHub 帳號 Creed-Space 發布v0.8.0更新於 Oct 24, 2026

Value Context Protocol tools: VCP/I tokens, CSM1 codes, VCP-Lite, and context encoding.

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

本機 MCP 伺服器,封裝 Value Context Protocol SDK:解析 VCP/I 權杖與 CSM1 代碼、驗證 VCP-Lite 文件並編碼情境。

可以做什麼
解析並驗證 VCP/I 權杖與 CSM1 代碼,回傳 domain、approach、role、persona、adherence 與 scopes,並拒絕衝突或已棄用的 scope。驗證 VCP-Lite 文件,並轉換為等價的 CSM1 代碼與權杖。將 18 個 VCP/A 情境維度編碼為 wire、JSON 與工作階段中繼資料。把憲法原則對應到 Schwartz 價值,並標示循環模型衝突。回報 SDK 與規格版本、能力及詞彙表,並以資源形式提供內附的 VCP-Lite 範例。
適用情境
適用於處理 Value Context Protocol 的情境:檢查權杖或 CSM1 代碼、驗證 VCP-Lite 代理文件、編碼情境或分類原則,也可透過 CLI 作為 CI 檢查。一般任務不需要使用。
執行需求
需要本機 Python 環境,並安裝含 MCP 額外相依套件的 vcp-sdk 套件;伺服器以本機程序透過 stdio 執行。未宣告帳號、API 金鑰或環境變數。README 提醒需與專案維護的 VCP-SDK 安裝在不同虛擬環境,因為兩者共用 vcp 匯入命名空間。
安裝前請注意
README 稱此為舊版獨立發行版,與專案維護的 VCP-SDK 不同,且不支援將兩者裝入同一環境。可選的 HTTP 傳輸沒有身分驗證;綁定到回環位址以外需設定 VCP_MCP_ALLOW_INSECURE_HTTP,且只應在有驗證閘道或限流的情況下使用。伺服器本身被描述為本機運算,不發起網路請求,也不保存狀態。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Vcp Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

vcp-sdk

Python SDK for the Value Context Protocol (VCP) — portable AI ethics validation — plus the Creed Commons client (vcp CLI) for installing signed value artifacts.

Legacy distribution status

This repository supplies the legacy standalone vcp-sdk 0.8.0 distribution on PyPI and the io.github.Creed-Space/vcp-mcp 0.8.0 server entry in the MCP Registry. It is separate from, and is not, the project-maintained VCP-SDK. To review and run this source directly, select and verify an exact commit, then install that checkout:

bash
git checkout --detach <reviewed-vcp-sdk-python-commit>python -m pip install .python -m pip install ".[hub]"  # include the Creed Commons CLI dependencies

This candidate and the project-maintained VCP-SDK both use the vcp Python import namespace. Install them in separate virtual environments. Installing both into one environment is unsupported because one distribution can replace the other's modules.

SDK — tokens, CSM1, VCP-Lite

python
from vcp import Token, CSM1Code, validate_lite
token = Token.parse("[email protected]")code = CSM1Code.parse("N5+F+E")identity = {"domain": "family", "approach": "safe", "role": "guide"}document = {"vcp_version": "lite-1.0", "identity": identity, "persona": "nanny", "adherence": 5, "scopes": ["F"]}errors = validate_lite(document)

CSM1Code.encode() (and str(code)) emits the canonical form with scopes sorted (N5+F+E encodes as N5+E+F), matching the project-maintained VCP-SDK and spec §2.10.1; to_nano()/to_micro() preserve input order. Token.parse also accepts creed:// and vcp:// URIs and normalises them to canonical form — a superset of the reference SDK, whose parse takes only the bare token grammar.

Creed Commons — signed value artifacts

Creed Commons distributes constitutions, creeds, and detector configs as signed data that a values engine interprets — never executable code. Installing an artifact is a signature-verification decision, not a code-execution one:

bash
vcp search gaslightingvcp install creed-space/anti_gaslighting     # verify Ed25519 + sha256 + schema, then writevcp verify                                    # re-check installed tree against vcp.lock

vcp install verifies against a trust root pinned inside this package (the registry cannot vouch for itself), pins name@version + content sha256 + the verifying key in vcp.lock, and never imports, evals, or executes what it fetched.

Community namespaces are delegated, never a new root: the hub's namespace_registry.json binds each namespace to its publisher's Ed25519 keys and is itself signed by the pinned root; artifacts must verify against a key registered to their own namespace. Registration and moderation: GOVERNANCE.md.

Trust tiers: signed proves integrity and origin, not semantics; verified additionally carries a domain-separated root counter-signature (issued after lint + red-team + human review) that the client checks on install and on every vcp verify.

CLI — protocol operations

Alongside the Creed Commons commands, vcp runs the protocol operations directly. These call the same functions the MCP tools do, so scripted CLI output and MCP tool output carry the same fields.

bash
vcp token validate [email protected]   # parse a VCP/I tokenvcp token parse N5+F+E                       # parse a CSM1 codevcp lite validate agent.json                 # validate a VCP-Lite documentvcp lite to-csm1 agent.json                  # VCP-Lite document -> CSM1 codevcp encode --space office --agency peer      # context -> VCP/A wire formatvcp classify "Never endanger a child"        # principle -> Schwartz valuevcp status                                   # versions, capabilities, vocabularies

Output is JSON by default. --quiet prints just the value the command is about, for shell consumption:

bash
$ vcp lite to-csm1 agent.json --quietN5+E+F
$ vcp encode --space office --constraints legal --constraints time --quiet📍🏢|🔒⚖️⏱️

The validate/parse commands exit 0 when valid and 1 when invalid, so they work as a CI gate:

bash
vcp lite validate agent.json --quiet || exit 1

vcp encode takes one flag per context dimension (--space, --agency, --cognitive-state, …); --company and --constraints repeat for multiple values, and each personal dimension has a matching --<dim>-intensity (1-5). Run vcp encode --help for the full list.

MCP Server

vcp-mcp exposes the SDK to any MCP client (Claude Code, Claude Desktop, or anything else that speaks the protocol). It runs over stdio by default and is pure local computation — no network calls, no state between calls, no user data read.

bash
python -m pip install ".[mcp]"vcp-mcp

Claude Desktop / Claude Code config:

json
{  "mcpServers": {    "vcp": {      "command": "vcp-mcp"    }  }}

Tools

ToolWhat it does
vcp_statusSDK/spec versions, capabilities, dimension and persona vocabularies
vcp_validate_tokenParse a VCP/I token into domain / approach / role / version / namespace
vcp_parse_csm1Parse a CSM1 code into persona / adherence / scopes / namespace / version (conflicting or deprecated scopes are rejected)
vcp_encode_contextEncode the 18 VCP/A context dimensions to wire, JSON, and session metadata
vcp_validate_liteValidate a VCP-Lite document; returns the equivalent CSM1 code and token
vcp_lite_to_csm1Convert VCP-Lite persona/adherence/scopes to a CSM1 code
creed_classify_principleMap a constitution principle to a Schwartz value; flag circular-model tensions

Resource vcp://lite/examples serves the bundled VCP-Lite example documents.

HTTP transport

For hosted deployments, vcp-mcp also speaks Streamable HTTP:

bash
vcp-mcp --transport http --port 8080     # binds 127.0.0.1, endpoint /mcp

--port defaults to $PORT then 8080. The endpoint runs stateless (a fresh transport per request), so a gateway may route any request to any replica. Only POST /mcp is served — GET would otherwise hold an idle event stream open per connection, so it is refused with a clean JSON-RPC 405. A GET /health endpoint returns {"status": "ok"}.

The server has no authentication, so binding beyond loopback requires an explicit opt-in:

bash
VCP_MCP_ALLOW_INSECURE_HTTP=true vcp-mcp --transport http --host 0.0.0.0

Set that only when either a gateway or reverse proxy fronts the server and handles client auth, or you intentionally run it as a public, unauthenticated, stateless compute endpoint (as render.yaml in this repo does). In the latter case put a rate limit / WAF in front of it: the exposure is abuse of paid compute rather than data, since the server holds no state and reads nothing.

Development

bash
pip install -e ".[dev]"pytest tests/

License

Apache-2.0. © Creed Space.

來源:README.md,提交 26dfaec

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分