Creedspace Mcp Server

io.github.Creed-Space由 GitHub 账号 Creed-Space 发布v1.1.4更新于 Oct 24, 2026

Constitutional-AI safety guardrails for any LLM — personas, constitutions, adjudication.

已验证STDIO仅桌面安全与监控AI 与机器学习

概览

AI 生成的概览

一个本地 MCP 服务器,为助手提供宪法式 AI 安全护栏:人格、宪法,以及逐条请求的裁决与响应认证。

可以做什么
浏览和获取宪法与人格,包括合并宪法、人格品质、系统提示词和导出预览,并在运行时切换当前人格。对请求和回复施加护栏:为请求获取策略裁决、按当前信条验证回复、获取精简的不可协商规则锚点,并定期重新锚定以减少上下文漂移。执行跨微观、中观、宏观尺度的多方价值握手,并获取带哈希链的认证记录。清除本地缓存,并在离线模式下使用缓存数据。
适用场景
当你希望助手的回复按选定的人格或宪法接受检查时使用,例如儿童安全、隐私保护或专业沟通场景,或需要留存这些检查的认证记录时。
运行要求
通过 npx 在本地运行,需要 Node.js,无需安装。可选设置 CREEDSPACE_API_URL、CREEDSPACE_API_KEY 和 CREEDSPACE_DEFAULT_PERSONA,或传入 persona、url、api-key、cache-ttl、offline 等命令行参数。除离线模式外,需要访问 Creed Space API 的网络连接。
安装前请注意
API 密钥为可选项,但会通过命令行或环境变量传入,请勿写入共享配置。除离线模式外,请求和回复会发送到 Creed Space API 进行评估。HTTP 传输会开放本地端口,CORS 选项会扩大访问范围;应绑定到 localhost 并限制来源。切换人格和清除缓存会改变服务器状态。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

creedspace-mcp-server

Universal MCP server for Creed Space - AI safety guardrails in 10 seconds.

[npm version] [smithery badge] [License: MIT]

Available in

The server is published to the canonical MCP catalogues, so registry-aware clients can discover and install it directly — or use any command in Quick Start below.

  • npm — @creedspace/mcp-server, the package every install path resolves to.
  • Official MCP Registry — io.github.Creed-Space/creedspace-mcp-server.
  • GitHub — source, issues, and the server.json manifest.
  • Smithery — nell/creedspace, a gateway-fronted Streamable HTTP endpoint.

Also rolling out across the wider MCP ecosystem: mcp.directory, mcpservers.org, PulseMCP (via the registry ingest), and mcp.so.

Quick Start

bash
# STDIO transport (Claude Desktop, OpenAI Codex)npx @creedspace/mcp-server --persona ambassador
# HTTP transport (OpenAI Agents SDK)npx @creedspace/mcp-server --transport http --port 3100
# Test API connectionnpx @creedspace/mcp-server test

What is Creed Space?

Creed Space provides personalized AI safety guardrails through Constitutional AI personas. Each persona enforces specific values and behaviors, ensuring AI assistants operate within defined ethical boundaries.

  • 🛡️ Reduces harmful AI outputs via constitutional evaluation of every response
  • 🎯 Refuses dangerous prompts according to the active persona's values
  • 🚀 10-second setup with any MCP-compatible AI

Available Personas

PersonaIconPurpose
Ambassador🤝Professional communication
Nanny👶Child-safe interactions
Sentinel🛡️Privacy and security focus
Godparent🕊️Religious and ethical guidance
Muse🎨Creative exploration
Anchor⚓Reality grounding

Installation

Option 1: Use with npx (Recommended)

bash
# No installation needed - just run!npx @creedspace/mcp-server --persona ambassador

Option 2: Global Installation

bash
npm install -g @creedspace/mcp-servercreedspace-mcp --persona ambassador

Option 3: Project Dependency

bash
npm install @creedspace/mcp-server

Claude Desktop Integration

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "creedspace": {      "command": "npx",      "args": ["@creedspace/mcp-server", "--persona", "ambassador"]    }  }}

Then restart Claude Desktop to load the Creed Space guardrails.

Configuration

Environment Variables

bash
# .env fileCREEDSPACE_API_URL=https://api.creed.spaceCREEDSPACE_API_KEY=your-api-key-here  # OptionalCREEDSPACE_DEFAULT_PERSONA=ambassador

Command Line Options

bash
creedspace-mcp \  --persona ambassador \  --url https://api.creed.space \  --api-key YOUR_KEY \  --cache-ttl 300000 \  --offline
# HTTP Transport Optionscreedspace-mcp \  --transport http \  --port 3100 \  --host localhost \  --api-key YOUR_KEY \  --cors \  --cors-origin http://localhost:3000 \  --stateless

Transport Types

TransportUse CasePlatforms
stdio (default)Local subprocess communicationClaude Desktop, OpenAI Codex
httpHTTP server for remote/local connectionsOpenAI Agents SDK, custom integrations

Configuration File

bash
# Generate example configscreedspace-mcp --generate-config
# Use config filecreedspace-mcp --config creedspace.json

Available MCP Tools

The server provides 16 tools to MCP clients:

Constitutions

  • get_constitution - Get the merged constitution for a persona
  • get_constitution_by_id - Get a specific constitution by ID
  • search_constitutions - Search the constitution library

Personas

  • list_personas - List all available personas
  • set_persona - Switch the active persona
  • get_active_persona - Get the currently active persona
  • get_uvc_qualities - Get desired/disliked/never qualities
  • get_system_prompt - Get a complete persona system prompt
  • preview_export - Preview the export configuration

Runtime guardrails

  • adjudicate - Get a policy decision kernel for a request
  • attest_response - Validate a response against the active creed
  • get_anchor - Get a compact non-negotiable-rules anchor
  • heartbeat - Periodic re-anchoring to prevent context drift
  • clear_cache - Clear the local cache

Multi-scale value handshake

  • perform_multi_scale_handshake - N-party value handshake across micro/meso/macro scales
  • get_scale_attestation - Get an attestation record with hash chain

Programmatic Usage

javascript
import { CreedSpaceMCPServer } from '@creedspace/mcp-server';
// Start server programmaticallyconst server = new CreedSpaceMCPServer({  persona: 'ambassador',  apiUrl: 'https://api.creed.space',  cacheEnabled: true});
await server.start();
javascript
// Use the API client directlyimport { CreedSpaceClient } from '@creedspace/mcp-server';
const client = new CreedSpaceClient();const personas = await client.getPersonas();const constitution = await client.getMergedConstitution('ambassador');

Platform Integration Examples

OpenAI Agents SDK (HTTP Transport)

python
from agents import Agentfrom agents.mcp import MCPServerStreamableHttp
# Start the server first:# npx @creedspace/mcp-server --transport http --port 3100
server = MCPServerStreamableHttp(    url="http://localhost:3100/mcp",    name="creedspace")
agent = Agent(    name="safe-agent",    tools=[server.get_tools()])
# The agent now has access to Creed Space safety tools

OpenAI Codex (STDIO Transport)

Add to ~/.codex/config.toml:

toml
[mcp_servers.creedspace]command = "npx"args = ["@creedspace/mcp-server", "--persona", "ambassador"]
[mcp_servers.creedspace.env]CREEDSPACE_API_URL = "https://api.creed.space"

VS Code / Cursor

json
{  "mcp.servers": {    "creedspace": {      "command": "npx",      "args": ["@creedspace/mcp-server", "--persona", "ambassador"]    }  }}

Continue.dev

json
{  "models": [{    "provider": "openai",    "mcp_servers": [{      "command": "npx",      "args": ["@creedspace/mcp-server"]    }]  }]}

LangChain

python
from langchain.tools import MCPTool
creedspace = MCPTool(    command="npx",    args=["@creedspace/mcp-server", "--persona", "ambassador"])

Testing

bash
# Test API connectionnpx @creedspace/mcp-server test
# Test with specific URLnpx @creedspace/mcp-server test --url http://localhost:8000

Offline Mode

The server includes intelligent caching for offline usage:

bash
# Enable offline mode with cached datacreedspace-mcp --offline --persona ambassador

Development

bash
# Clone the repositorygit clone https://github.com/Creed-Space/creedspace-mcp-server.gitcd creedspace-mcp-server
# Install dependenciesnpm install
# Build TypeScriptnpm run build
# Run in development modenpm run dev
# Run testsnpm test

API Documentation

Full API documentation available at https://api.creed.space/api-docs

Support

License

MIT © Nell Watson


Building critical AI safety infrastructure that shapes autonomous AI-human value interaction.

来源:README.md,提交 fdad1e0

工具

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

版本历史

1
  1. v1.1.4最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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