soulpolicy-mcp
MCP server 让 Claude Desktop / Cursor 直接调用 SoulPolicy primitive。
安装
pip install soulpolicy soulpolicy-mcp
Claude Desktop 配置
把下面加到 ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"soulpolicy": {
"command": "python",
"args": ["-m", "soulpolicy_mcp"],
"env": {
"SOULPOLICY_API_KEY": "sk_live_xxx"
}
}
}
}
重启 Claude Desktop 后会看到 5 个新工具:
soulpolicy_create_baselinesoulpolicy_drift_checksoulpolicy_baseline_reportsoulpolicy_drift_replaysoulpolicy_drift_feedback
Cursor 配置
.cursor/mcp.json:
{
"mcpServers": {
"soulpolicy": {
"command": "python",
"args": ["-m", "soulpolicy_mcp"],
"env": { "SOULPOLICY_API_KEY": "sk_live_xxx" }
}
}
}
直接命令行启动
SOULPOLICY_API_KEY=sk_live_xxx soulpolicy-mcp
# 等同:
SOULPOLICY_API_KEY=sk_live_xxx python -m soulpolicy_mcp
用例:让 Claude 自检它自己的输出
You: Create a customer-support baseline from these 5 healthy replies …
Claude: [calls soulpolicy_create_baseline] -> bl_xxx
You: Now check this draft response: "…"
Claude: [calls soulpolicy_drift_check]
Result: severity=warn, z_score=2.3 — there's a topical shift away
from your baseline. Want me to revise?
Metadata
Release files for soulpolicy-mcp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| soulpolicy_mcp-0.2.0.tar.gz | 10.7 kB | Without provenance | Details for soulpolicy_mcp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| soulpolicy_mcp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for soulpolicy_mcp-0.2.0-py3-none-any.whl |
Total release size: 21.7 kB
Release files / soulpolicy_mcp-0.2.0.tar.gz
| Download URL | soulpolicy_mcp-0.2.0.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff3f60cc0a437c89c1d0fe40f31bf1dc0fb08da3eabf4065066db5b9082caada
|
|
BLAKE2b-256 checksum How to use checksums |
4d1146c1920052aa04f12df71db201df2518a5c8effd97a75fa4f96a73e0ea48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / soulpolicy_mcp-0.2.0-py3-none-any.whl
| Download URL | soulpolicy_mcp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63c6a0122ed2ab1ae6e4e4ce8cd9c03cdb0cf2b6209e02463aa9e2579962f9f4
|
|
BLAKE2b-256 checksum How to use checksums |
1581c813e138f5a5f65bcd5893bc89f57866c802b95b8f61cd9b9a20e576feca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for soulpolicy-mcp 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.