MCP Server for ORI Workflow
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Server for ORI Workflow
Model Context Protocol (MCP) server for executing ORI (Optimize-Research-Implement) workflows with SME quality gates and structured context preservation.
What is ORI?
ORI is a multi-phase workflow framework designed for complex software engineering tasks:
Phase 0 (Strategy): Analyze task, design research strategy, select optimal model
Phase 1 (Research): Deep research with web searches, code examples, documentation
Phase 2 (Verification): Cross-validate findings, assess security/performance
Phase 2.5 (SME Quality Gate): Optional subject-matter expert reviews (Security, Compliance, etc.)
Phase 3 (Implementation): Execute the solution with verified approach
Phase 4 (Documentation): Update docs, changelog, generate summary
Related MCP server: plot-gate
Features
š ļø Tools
execute_ori: Execute the complete ORI workflow with progress trackingvalidate_config: Validate ORI configuration against schemaanalyze_task: Pre-flight analysis (complexity, domain, risk flags)
š Resources
Static Resources:
docs://ori/workflow- Complete ORI workflow specificationdocs://ori/agents/taxonomy- Agent architecture guidedocs://ori/agents/sme-security- Security SME (OWASP Top 10)schema://ori/config- Configuration JSON schemaschema://ori/handoff-packet- Handoff packet schema
Dynamic Resources (Future):
logs://workflow/{traceId}/execution- Workflow execution logslogs://workflow/{traceId}/handoff-packets- Inter-phase contextlogs://workflow/{traceId}/sme-reviews- SME findings
š Sync Mechanism
File Watcher: Auto-detect changes to ORI resource files
Git Sync: Auto-commit and push to GitHub
NPM Publish: Auto-publish on version bumps
Hot Reload: Restart MCP server on config changes
š Quality Assurance
SME Agents: Specialized quality gates (Security, Compliance, Code Quality, Performance)
Handoff Packets: Zero-context-loss phase transitions
Trace IDs: End-to-end tracking with feedback loop
Safety Hooks: Pre/post-phase validation
Installation
Option 1: NPM Package (Recommended)
Install the MCP server:
npm install -g @grandinharrison/mcp-server-oriConfigure Claude Desktop:
macOS: Edit
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows: Edit
%APPDATA%/Claude/claude_desktop_config.json{ "mcpServers": { "ori-workflow": { "command": "npx", "args": ["-y", "@grandinharrison/mcp-server-ori"], "env": { "LOG_LEVEL": "info" } } } }Restart Claude Desktop completely (Quit and reopen)
Verify installation by checking for the MCP server indicator in the chat input area
Option 2: Local Development
git clone https://github.com/grandinh/mcp-server-ori.git
cd mcp-server-ori
npm install
npm run buildConfigure Claude Desktop to use local build:
{
"mcpServers": {
"ori-workflow-dev": {
"command": "node",
"args": ["/absolute/path/to/mcp-server-ori/dist/index.js"],
"env": {
"LOG_LEVEL": "debug",
"ENABLE_SYNC": "true"
}
}
}
}Usage
Basic Workflow Execution
Use the execute_ori tool with task: "Implement JWT authentication for Express API"The MCP server will return structured instructions for Claude to execute the ORI workflow phases.
With SME Quality Gates
Use the execute_ori tool with:
- task: "Implement JWT authentication for Express API"
- config: { sme_enabled: true, security_sme: true }Task Analysis
Use the analyze_task tool with task: "Refactor user authentication system"Returns:
Complexity (LOW/MEDIUM/HIGH)
Domain classification
Clarity score (0-1)
Risk flags (security, privacy, compliance)
Recommended model (Opus/Sonnet/Haiku)
Estimated duration
Config Validation
Use the validate_config tool with config_path: "/path/to/ori-config.json"Returns validation errors and warnings.
Configuration
Create ~/.claude/ori-config.json:
{
"version": "1.2.0",
"sme_agents": {
"enabled": false,
"security": {
"enabled": false,
"auto_invoke_on_keywords": ["auth", "crypto", "password", "jwt"],
"block_on_critical": true
},
"compliance": {
"enabled": false
},
"code_quality": {
"enabled": false
},
"performance": {
"enabled": false
}
},
"safety_hooks": {
"enabled": true,
"pre_phase": {
"phase_3": ["git_check", "path_validation"]
}
},
"logging": {
"enabled": true,
"log_directory": ".claude/ori-logs",
"log_handoff_packets": true
}
}Architecture
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ORI MCP Server (Hybrid Architecture) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā ā
ā āāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāāāā ā
ā ā TOOLS Layer ā ā RESOURCES Layer ā ā
ā āāāāāāāāāāāāāāāāāā⤠āāāāāāāāāāāāāāāāāāāāāāā⤠ā
ā ā execute_ori ā ā Static Resources: ā ā
ā ā validate_config ā ā ⢠docs://ori/... ā ā
ā ā analyze_task ā ā ⢠schema://ori/... ā ā
ā āāāāāāāāāāāāāāāāāāā ā Dynamic Resources: ā ā
ā ā ⢠logs://workflow/ ā ā
ā āāāāāāāāāāāāāāāāāāāāāāāā ā
ā ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
ā ā Sync Engine (3-way sync) ā ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā⤠ā
ā ā ⢠File Watcher ā Git Push ā ā
ā ā ⢠Version Bumper ā NPM Publish ā ā
ā ā ⢠Hot Reload ā MCP Server Restart ā ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāFeedback
After executing an ORI workflow, you'll receive a feedback URL:
https://github.com/grandinh/mcp-server-ori/issues/new?template=workflow-feedback.yml&trace_id=<your-trace-id>Your feedback helps improve the ORI workflow for everyone!
Development
Build
npm run buildWatch Mode
npm run watchLint
npm run lint
npm run lint:fixTest
npm testTroubleshooting
MCP Server Not Showing Up
Verify config file location and syntax (must be valid JSON)
Check Claude Desktop logs:
macOS:
~/Library/Logs/Claude/Windows:
%APPDATA%/Claude/logs/
Ensure Node.js >= 18.0.0 is installed
Completely quit and restart Claude Desktop (not just reload)
stderr vs stdout Errors
The MCP protocol requires all logs go to stderr, never stdout. This server correctly routes all output to stderr.
Resources Not Loading
Verify the resources/ directory exists and contains:
ori.mdori-config.jsonagents/README.mdagents/sme-security.mdschemas/handoff-packet.json
Contributing
See CONTRIBUTING.md for development guidelines.
License
MIT Ā© Harrison Grandin
Links
npm: https://www.npmjs.com/package/@grandinharrison/mcp-server-ori
MCP Documentation: https://modelcontextprotocol.io
Acknowledgments
Built with Model Context Protocol SDK
Inspired by ORI Workflow Framework
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Plan and verify evidence-aware research workflows with specialist execution receipts.
Governed retail, FMCG, and CPG operational tools: runs, cases, approvals, audit-ready execution.
Structured multi-step workflows that produce production-quality deliverables. Plan any task free.
Governed MCP workflow automation for MSPs and agencies: approvals, durable state, signed evidence.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI orchestrators to manage hierarchical implementation roadmaps with phases, tasks, and plan-change tracking.Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnforces work-readiness gates by tracking project plots, plans, stakeholder views, slots, stops, and journal entries via REST and MCP, with LLM-based plan agreement and result verification.-
- AlicenseNot gradedqualityBmaintenanceEnables scoped project discovery, deterministic rule and profile management, and durable automation with trigger/pause/resume/cancel and audit history for approved project contexts.MIT
- FlicenseNot gradedqualityCmaintenanceEnables CAE simulation agents to manage tasks and runs through 12 restricted MCP tools, governed by a five-dimension state machine with human-only approval gates, evidence hashing, and executor/reviewer monitoring panels.-