{"id":48469664,"url":"https://github.com/unscripted/persona","last_synced_at":"2026-04-07T06:02:25.755Z","repository":{"id":347672279,"uuid":"1183457266","full_name":"unscripted/persona","owner":"unscripted","description":"Multi-persona conversation threading for Claude projects.","archived":false,"fork":false,"pushed_at":"2026-03-16T16:17:19.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-29T01:25:48.417Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unscripted.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-16T16:17:16.000Z","updated_at":"2026-03-16T16:21:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/unscripted/persona","commit_stats":null,"previous_names":["unscripted/persona"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/unscripted/persona","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unscripted%2Fpersona","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unscripted%2Fpersona/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unscripted%2Fpersona/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unscripted%2Fpersona/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unscripted","download_url":"https://codeload.github.com/unscripted/persona/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unscripted%2Fpersona/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31501903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-07T06:02:23.534Z","updated_at":"2026-04-07T06:02:25.750Z","avatar_url":"https://github.com/unscripted.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Persona MCP\n\nMulti-persona conversation threading for Claude projects. Invoke different expert personas sequentially in a single persistent thread — each one sees the full history of what came before.\n\n## What it does\n\nYou define personas as YAML files (founder, architect, ops lead, etc.), start a conversation, and invoke them one at a time. Each persona responds with full context of every prior message, so perspectives build on each other rather than starting fresh every time.\n\n## Prerequisites\n\n[uv](https://docs.astral.sh/uv/) must be installed. It manages Python and all dependencies — no separate Python install needed.\n\n```bash\ncurl -LsSf https://astral.sh/uv/install.sh | sh\n```\n\n## Quick start\n\n**Option A – run directly from GitHub (recommended for multi-machine use):**\n\nAdd to your Claude Code MCP config (`~/.claude.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"persona\": {\n      \"command\": \"uvx\",\n      \"args\": [\"--from\", \"git+https://github.com/unscripted/persona-mcp\", \"persona-mcp\"]\n    }\n  }\n}\n```\n\n`uvx` fetches and runs the package straight from GitHub — no cloning required.\n\n**Option B – run from a local clone:**\n\n```bash\ngit clone https://github.com/unscripted/persona-mcp\ncd persona-mcp\nuv sync\n```\n\nThen add to your Claude Code MCP config:\n\n```json\n{\n  \"mcpServers\": {\n    \"persona\": {\n      \"command\": \"uv\",\n      \"args\": [\"run\", \"--directory\", \"/path/to/persona-mcp\", \"persona-mcp\"]\n    }\n  }\n}\n```\n\nOnce configured, call tools in Claude Code:\n\n```\ninit_project → list_personas → invoke_persona\n```\n\n## Project structure\n\n```\nsrc/persona_mcp/\n├── server.py       # MCP server (primary entry point)\n├── app.py          # FastAPI REST interface (optional, for local inspection)\n├── models.py       # SQLAlchemy ORM: Conversation, Message\n├── schemas.py      # Pydantic schemas for tools and routes\n├── personas.py     # YAML/JSON persona file I/O\n└── database.py     # Engine, session factory, table creation\nexamples/           # Starter personas to copy into your project\n├── persona.founder.yaml\n└── persona.architect.yaml\npyproject.toml\n```\n\nIn a project that uses persona-mcp, live personas sit at `.claude/personas/` alongside your other Claude project config.\n\n## MCP tools\n\n| Tool | Description |\n|---|---|\n| `init_project` | Create `.claude/personas/` dir, SQLite DB, and initial conversation |\n| `list_personas` | Show all persona files in the project |\n| `get_conversation` | Fetch conversation history, optionally filtered by persona |\n| `add_message` | Append a raw message without invoking a persona |\n| `invoke_persona` | Ask a persona a question; response is persisted to history |\n| `create_persona` | Write a new persona YAML to disk |\n| `delete_conversation` | Remove a conversation and all its messages |\n\n## Persona files\n\nPersonas live as `persona.\u003cslug\u003e.yaml` files in `.claude/personas/` within each project. Copy them between projects freely — or use the files in `examples/` as a starting point.\n\n```yaml\nname: Founder\nrole: Product strategy, positioning, go-to-market\ncontext: \u003e\n  Building ility, thinking about pricing and ICP alignment.\nsystem_prompt: \u003e\n  You are the founder of ility. Think strategically about product\n  positioning, market fit, and long-term vision...\n```\n\nCreate a new persona via the tool:\n\n```\ncreate_persona(name=\"Compliance Expert\", role=\"Regulatory mapping\", system_prompt=\"...\")\n```\n\nOr just drop a YAML file directly into `.claude/personas/`.\n\n## Data model\n\nEach project gets its own `persona.db` SQLite file. Two tables:\n\n- **conversations** – `id`, `title`, `created_at`, `updated_at`\n- **messages** – `id`, `conversation_id`, `persona_name`, `role`, `content`, `created_at`\n\nThe DB lives alongside the project. Back it up or commit it to version control if you want persistent history.\n\n## Optional REST API\n\nFor local inspection or testing, run the FastAPI server:\n\n```bash\nuv run uvicorn persona_mcp.app:app --reload\n# Docs at http://localhost:8000/docs\n```\n\n## Tech stack\n\n- **Python 3.10+**\n- **[FastMCP](https://github.com/jlowin/fastmcp)** – MCP server framework\n- **FastAPI** – REST interface\n- **SQLAlchemy 2** – ORM over SQLite\n- **Pydantic v2** – schema validation\n- **PyYAML** – persona file parsing\n- **Anthropic Python SDK** – Claude invocation in `invoke_persona`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funscripted%2Fpersona","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funscripted%2Fpersona","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funscripted%2Fpersona/lists"}