@creedspace/mcp-server
v1.1.0
Published
Universal MCP server for Creed Space - AI safety guardrails in 10 seconds
Maintainers
Readme
creedspace-mcp-server
Universal MCP server for Creed Space - AI safety guardrails in 10 seconds.
Quick Start
# 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 connection
npx @creedspace/mcp-server testWhat 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.
- 🛡️ 96.4% reduction in harmful AI outputs
- 🎯 100% refusal on dangerous prompts
- 🚀 10-second setup with any MCP-compatible AI
Available Personas
| Persona | Icon | Purpose | |---------|------|---------| | 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)
# No installation needed - just run!
npx @creedspace/mcp-server --persona ambassadorOption 2: Global Installation
npm install -g @creedspace/mcp-server
creedspace-mcp --persona ambassadorOption 3: Project Dependency
npm install @creedspace/mcp-serverClaude Desktop Integration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"creedspace": {
"command": "npx",
"args": ["creedspace-mcp-server", "--persona", "ambassador"]
}
}
}Then restart Claude Desktop to load the Creed Space guardrails.
Configuration
Environment Variables
# .env file
CREEDSPACE_API_URL=https://api.creed.space
CREEDSPACE_API_KEY=your-api-key-here # Optional
CREEDSPACE_DEFAULT_PERSONA=ambassadorCommand Line Options
creedspace-mcp \
--persona ambassador \
--url https://api.creed.space \
--api-key YOUR_KEY \
--cache-ttl 300000 \
--offline
# HTTP Transport Options
creedspace-mcp \
--transport http \
--port 3100 \
--host localhost \
--cors \
--statelessTransport Types
| Transport | Use Case | Platforms |
|-----------|----------|-----------|
| stdio (default) | Local subprocess communication | Claude Desktop, OpenAI Codex |
| http | HTTP server for remote/local connections | OpenAI Agents SDK, custom integrations |
Configuration File
# Generate example configs
creedspace-mcp --generate-config
# Use config file
creedspace-mcp --config creedspace.jsonAvailable MCP Tools
The server provides these tools to MCP clients:
get_constitution- Get merged constitution for a personalist_personas- List all available personasset_persona- Switch active personaget_uvc_qualities- Get desired/disliked/never qualitiesget_system_prompt- Get complete system promptpreview_export- Preview export configurationsearch_constitutions- Search constitution libraryclear_cache- Clear local cache
Programmatic Usage
import { CreedSpaceMCPServer } from '@creedspace/mcp-server';
// Start server programmatically
const server = new CreedSpaceMCPServer({
persona: 'ambassador',
apiUrl: 'https://api.creed.space',
cacheEnabled: true
});
await server.start();// Use the API client directly
import { 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)
from agents import Agent
from 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 toolsOpenAI Codex (STDIO Transport)
Add to ~/.codex/config.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
{
"mcp.servers": {
"creedspace": {
"command": "npx",
"args": ["@creedspace/mcp-server", "--persona", "ambassador"]
}
}
}Continue.dev
{
"models": [{
"provider": "openai",
"mcp_servers": [{
"command": "npx",
"args": ["@creedspace/mcp-server"]
}]
}]
}LangChain
from langchain.tools import MCPTool
creedspace = MCPTool(
command="npx",
args=["@creedspace/mcp-server", "--persona", "ambassador"]
)Testing
# Test API connection
npx @creedspace/mcp-server test
# Test with specific URL
npx @creedspace/mcp-server test --url http://localhost:8000Offline Mode
The server includes intelligent caching for offline usage:
# Enable offline mode with cached data
creedspace-mcp --offline --persona ambassadorDevelopment
# Clone the repository
git clone https://github.com/nellwatson/creedspace-mcp-server.git
cd creedspace-mcp-server
# Install dependencies
npm install
# Build TypeScript
npm run build
# Run in development mode
npm run dev
# Run tests
npm testAPI Documentation
Full API documentation available at https://api.creed.space/docs
Support
- 🌐 Website: https://www.creed.space
- 📧 Email: [email protected]
- 🐛 Issues: GitHub Issues
- 💬 Discord: Join our community
License
MIT © Nell Watson
Building critical AI safety infrastructure that shapes autonomous AI-human value interaction.
