Labsco
okkimus logo

stakeholder-mcp

β˜… 1

from okkimus

Let your AI agent have conversations with different personas on features and implementation details

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredNeeds API keys

Stakeholder MCP Server

An MCP (Model Context Protocol) server that exposes stakeholder personas as tools for iterative product feedback. Each stakeholder represents a distinct role with a unique personality, expertise, and concerns.

Cost-sensitive? The server uses a high default token limit so models can reason about requirements and implementation. To control cost, set STAKEHOLDER_MCP_MAX_TOKENS (see Configuration).

Disclaimer β€” This project was fully AI-generated with Cursor. There is no warranty or liability; use it at your own responsibility.

Features

  • 7 Pre-configured Stakeholders: Tech Lead, Product Manager, UX Designer, Security Engineer, DevOps Engineer, and two End User personas
  • Runtime Persona Management: Create, update, and delete stakeholders at runtime
  • Multi-Provider LLM Support: Uses OpenRouter for access to 100+ models (GPT-4, Claude, Gemini, Llama, etc.)
  • Flexible Consultation: Query stakeholders individually or in groups (parallel or sequential mode)
  • Multiple Transports: stdio (default) and HTTP/SSE support

MCP Tools

ToolDescription
list_stakeholdersList all available personas with optional filtering
get_stakeholderGet detailed info about a specific stakeholder
consult_stakeholderQuery a stakeholder for feedback
consult_groupQuery multiple stakeholders (parallel or sequential)
create_stakeholderCreate a new runtime stakeholder
update_stakeholderUpdate an existing stakeholder
delete_stakeholderDelete a runtime stakeholder

Default Stakeholders

IDNameRole
tech-leadAlex ChenTechnical Lead
product-managerSarah MillerProduct Manager
ux-designerMarcus RiveraUX Designer
security-engineerPriya SharmaSecurity Engineer
devops-engineerKenji TanakaDevOps Engineer
end-user-millennialJordanEnd User (28, urban professional)
end-user-seniorMargaretEnd User (67, retired teacher)

Setting up with MCP-compatible tools

Claude Desktop

Add to your Claude Desktop MCP config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "stakeholder-mcp": {
      "command": "bun",
      "args": ["run", "/path/to/stakeholder-mcp/src/index.ts"],
      "env": {
        "OPENROUTER_API_KEY": "your-key-here"
      }
    }
  }
}

Cursor

Add the server to your MCP config. User-level: Cursor Settings β†’ MCP β†’ Edit config (or ~/.cursor/mcp.json). Project-level: .cursor/mcp.json in the repo root.

{
  "mcpServers": {
    "stakeholder-mcp": {
      "command": "bun",
      "args": ["run", "/path/to/stakeholder-mcp/src/index.ts"],
      "env": {
        "OPENROUTER_API_KEY": "your-key-here"
      }
    }
  }
}

Replace /path/to/stakeholder-mcp with the actual path to this project.

Codex CLI

Codex CLI (and the Codex VSCode extension) use a shared TOML config at ~/.codex/config.toml. MCP servers run as local subprocesses over STDIO.

  1. Create the config directory (if it doesn’t exist):

    mkdir -p ~/.codex
  2. Add the stakeholder MCP to ~/.codex/config.toml:

    [mcp_servers.stakeholder_mcp]
    command = "bun"
    args = ["run", "/path/to/stakeholder-mcp/src/index.ts"]
    env = { "OPENROUTER_API_KEY" = "your-key-here" }

    Replace /path/to/stakeholder-mcp with the actual path to this repo (e.g. /Users/you/repos/stakeholder-mcp). Use an absolute path so it works from any working directory.

  3. Restart Codex (CLI session or VSCode extension) so it reloads the config.

Then in Codex you can ask things like: "List the stakeholders and consult the tech lead on using microservices for a simple blog."

Development

# Run with watch mode
bun dev

# Run tests
bun test

# Type check
bun typecheck

# Test client (basic functionality)
bun run examples/test-client.ts