feat(mcp-supervisor): add @platformos/platformos-mcp-supervisor package (v1: validate_code)#63
Open
fklosowski wants to merge 7 commits into
Open
feat(mcp-supervisor): add @platformos/platformos-mcp-supervisor package (v1: validate_code)#63fklosowski wants to merge 7 commits into
fklosowski wants to merge 7 commits into
Conversation
This commit introduces a new test suite for the _canonicalUri function, ensuring its behavior aligns with expected properties such as idempotency, proper handling of Windows drive letters, and tolerance for non-URI strings. The tests cover various scenarios, including empty input, backslash handling, and percent-decoded path segments, to maintain robustness and prevent regressions.
…SP checks and adding warm-up for LSP initialization
…ogic; add unit tests for argument parsing and directory resolution
Slashek
reviewed
Jun 8, 2026
| @@ -0,0 +1,33 @@ | |||
| /** | |||
Contributor
There was a problem hiding this comment.
this shouldn't be here - platformos-check already has the concept of fixers
Slashek
reviewed
Jun 8, 2026
| @@ -0,0 +1,151 @@ | |||
| /** | |||
Contributor
There was a problem hiding this comment.
this shouldn't be here - this belongs to platformos-check (and it is already there - we mark deprecated tags in the platformOS engine repo, based on which we generate API reference documentation, based on which platformos-check knows, which tags are deprecated)
Slashek
reviewed
Jun 8, 2026
| @@ -0,0 +1,36 @@ | |||
| /** | |||
Contributor
There was a problem hiding this comment.
platformos-check should already cover this)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new monorepo workspace package — @platformos/platformos-mcp-supervisor — that ports the validate_code surface of the external pos-supervisor project into platformos-tools as a
TypeScript-first, single-tool MCP server speaking stdio.
The supervisor wraps @platformos/platformos-language-server-node in-process (no pos-cli subprocess, no PATH dependency) and layers platformOS-specific structural checks, enrichment, fix
generation, schema/translation validators, a 15-step diagnostic pipeline, and a 32-module rule engine on top.
v1 ships exactly one MCP tool: validate_code. Eight other tools from the source repo (validate_intent, scaffold, project_map, analyze_project, lookup, domain_guide (tool), module_info,
enrich_error, server_status, load_development_guide), the analytics / CAC / case-base / promoted-rules / dashboard / HTTP transport / session-event-bus / blob-store / fs-watcher
subsystems, and pending-state suppression (pending_files/pending_pages/pending_translations) are deferred. The deferred surface is enumerated in
docs/mcp-supervisor/decisions/001-package/README.md with mitigation strategies per item.
What's in this PR
Architecture (one-liner)
agent → stdio (JSON-RPC) → McpServer → validate_code handler
↓
parse (liquid-html-parser) → in-process LSP (PassThrough + protocol)
→ enrich (rule engine + regex fallback)
→ 15-step diagnostic pipeline (suppress / verify / stamp)
→ schema / translation / GraphQL validators
→ structural warnings (16 detectors)
→ diff-aware (RemovedRender / AddedParam)
→ domain guide → fix generator → cluster + scorecard
→ bridge rules → stamp defaults → force-disable filter
→ ValidateCodeResult (JSON)
Full module-level breakdown in packages/platformos-mcp-supervisor/ARCHITECTURE.md.
File index
--exclude='.pos-supervisor' --exclude='pos-supervisor.jsonl' is empty)