Skip to content

Platform-OS/pos-supervisor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pos-supervisor

Domain-specific MCP server for platformOS projects. Gives LLM agents deep understanding of platformOS conventions, Liquid/GraphQL validation, project structure analysis, and code generation.

Prerequisites

  • Node.js >= 18
  • pos-cli installed and available in PATH
  • A platformOS project directory

Installation

git clone https://github.com/Platform-OS/pos-supervisor.git
cd pos-supervisor
npm install
npm link

npm link makes the pos-supervisor binary available globally in your PATH.

Configuration

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 Code

per project

claude mcp add pos-supervisor -- pos-supervisor

global

claude mcp add pos-supervisor --scope user -- pos-supervisor

OpenCode

Add to ~/.config/opencode/opencode.json:

{
  "mcp": {
    "pos-supervisor": {
      "type": "local",
      "command": ["pos-supervisor"]
    }
  }
}

Tools

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.

Development

# Run tests
bun test tests/

# Start server directly
npm start

Observability

# pos-supervisor dashboard
http://localhost:13900/dashboard

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors