Domain-specific MCP server for platformOS projects. Gives LLM agents deep understanding of platformOS conventions, Liquid/GraphQL validation, project structure analysis, and code generation.
- Node.js >= 18
- pos-cli installed and available in PATH
- A platformOS project directory
git clone https://github.com/Platform-OS/pos-supervisor.git
cd pos-supervisor
npm install
npm linknpm link makes the pos-supervisor binary available globally in your PATH.
The server uses the current working directory as the platformOS project root. When launched by an AI coding tool from within your project, it works automatically with no extra configuration.
claude mcp add pos-supervisor -- pos-supervisorclaude mcp add pos-supervisor --scope user -- pos-supervisorAdd to ~/.config/opencode/opencode.json:
{
"mcp": {
"pos-supervisor": {
"type": "local",
"command": ["pos-supervisor"]
}
}
}| Tool | Description |
|---|---|
validate_code |
Validate Liquid/GraphQL before writing. Returns diagnostics, fix hints, LSP intelligence, and structural analysis. |
validate_intent |
Validate a plan before any file is drafted. Catches architectural errors early. |
enrich_error |
Deep analysis of a specific linter error using LSP hover, completions, and references. |
domain_guide |
Get domain-specific guidance (gotchas, patterns, API reference) for pages, partials, graphql, translations, etc. |
analyze_project |
Cross-file project health: per-file diagnostics, dependency graph, broken references, dead code. |
project_map |
Structured JSON index: schemas, GraphQL operations, commands, queries, pages, partials with reverse-index. |
lookup |
Direct LSP access at a specific file position: hover docs, completions, definitions, references. |
scaffold |
Generate production-quality platformOS file sets for new features. |
module_info |
Reference for platformOS modules: version, API surface, schemas, usage patterns, gotchas. |
server_status |
Check server health: LSP readiness, loaded indexes, pos-cli availability. |
# Run tests
bun test tests/
# Start server directly
npm start# pos-supervisor dashboard
http://localhost:13900/dashboard