160,000 deductively-derived JSON constraints that eliminate LLM persona drift. Measured: 0 breaks in a 120-turn pressure test.
Project description
five-mcp
MCP server for the FIVE Persona Engine — an LLM persona constraint engine that generates structured JSON constraints to eliminate persona drift. Instead of describing personality in words (which LLMs interpret differently each turn), FIVE defines behavioral parameters the LLM executes as a recipe. See how it works →
Measured: with the constraint JSON + free harness, the demo character survived a 120-turn pressure test with zero persona breaks (plain prompt: 8 breaks; JSON alone: 1). Numbers, transcripts and scripts →
Quick Start
Install
pip install five-mcp
Configure
Set your API key as an environment variable:
export FIVE_API_KEY=five_sk_your_key_here
Get your key at fiveengine.dev.
Use with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"five-character-engine": {
"command": "five-mcp",
"env": {
"FIVE_API_KEY": "five_sk_your_key_here"
}
}
}
}
Use with other MCP clients
Any MCP-compatible client can connect via stdio transport:
five-mcp
Tool: generate
Generates persona constraints via the FIVE engine.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
character_name |
string | Yes | Name of the character |
q1 – q4 |
A / B / C / D | Yes | Personality axis choices |
s1 – s4 |
1–5 | No | Style sliders (default: 3) |
free_text |
string | No | Free-form description |
Response
{
"status": "ok",
"remaining": 42,
"constraint": { "..." }
}
Pricing
Each generate call costs $1 and consumes one credit. Manage credits at fiveengine.dev.
Links
- API & Docs: fiveengine.dev
- GitHub: github.com/kiro0x/five-mcp
- Design philosophy & examples: five-character-engine README
- Measured evaluation (120-turn drift test): five-character-engine eval/
- Engine repo: github.com/kiro0x/five-character-engine
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file five_mcp-1.0.1.tar.gz.
File metadata
- Download URL: five_mcp-1.0.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
074fa79681639d61f8fb77a34a7fabba0803537c251189ec13ce9537797ae5c2
|
|
| MD5 |
bed941f7eae32b2c995609eb348ae514
|
|
| BLAKE2b-256 |
5514a56aa69585035b244bf45b6aec2884b60ff6cd6dd0a56b3c93813718badb
|
Provenance
The following attestation bundles were made for five_mcp-1.0.1.tar.gz:
Publisher:
publish.yml on kiro0x/five-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
five_mcp-1.0.1.tar.gz -
Subject digest:
074fa79681639d61f8fb77a34a7fabba0803537c251189ec13ce9537797ae5c2 - Sigstore transparency entry: 1787304419
- Sigstore integration time:
-
Permalink:
kiro0x/five-mcp@cf0445a2203605c87a09257ccc98643d2a7cf039 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kiro0x
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cf0445a2203605c87a09257ccc98643d2a7cf039 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file five_mcp-1.0.1-py3-none-any.whl.
File metadata
- Download URL: five_mcp-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea09b6690199508aa66d409764c242c1a598f8721012f64327a9479c47d26f91
|
|
| MD5 |
d800453244f3e62750b8fdaba7a7b289
|
|
| BLAKE2b-256 |
2d81545f25b4699cc7445ded39b93037e4a09242364b80d0d70c55e4f1ab7645
|
Provenance
The following attestation bundles were made for five_mcp-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on kiro0x/five-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
five_mcp-1.0.1-py3-none-any.whl -
Subject digest:
ea09b6690199508aa66d409764c242c1a598f8721012f64327a9479c47d26f91 - Sigstore transparency entry: 1787304648
- Sigstore integration time:
-
Permalink:
kiro0x/five-mcp@cf0445a2203605c87a09257ccc98643d2a7cf039 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kiro0x
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cf0445a2203605c87a09257ccc98643d2a7cf039 -
Trigger Event:
workflow_dispatch
-
Statement type: