semantic-prompt-mcp
Version:
MCP server for semantic prompt framework - NLP-inspired adaptive reasoning engine for LLM orchestration
138 lines • 8.69 kB
JSON
{
"tool": {
"name": "chain_of_thought",
"description": "3-step structured thinking for systematic execution with intelligent command selection.\n\nStep 1: Analyze user intent, files involved, expected outcome\n\nStep 2: Complexity-based Command Selection (MANDATORY)\n\nTask Complexity Assessment:\n• Simple (1-2 steps): analyze, explain, document\n• Medium (3-5 steps): implement, improve, build\n• Complex (5+ steps): task, spawn (parallel processing needed)\n• Unclear/exploratory: brainstorm (requirement clarification)\n• Large-scale changes: workflow (systematic approach)\n\nScope-based Selection:\n• Single file: analyze, improve\n• 2-3 files: implement, build\n• 3+ files or 2+ folders: task, spawn\n• Entire project: workflow\n\nSKIP only when ALL conditions met:\n• Response ≤ 2 lines\n• No file operations\n• No analysis required\n• Pure information recall\n\nStep 3: Execution strategy with MCP servers and agents\n\nAvailable commands: analyze, brainstorm, build, cleanup, design, document, estimate, explain, git, implement, improve, index, load, reflect, save, select-tool, spawn, task, test, troubleshoot, workflow"
},
"inputSchema": {
"thought": {
"description": "Step 1: Intent, files, outcome | Step 2: Command selection (90% command preference) | Step 3: Execution approach"
},
"nextThoughtNeeded": {
"description": "Whether another thought step is needed"
},
"thoughtNumber": {
"description": "Current step (1: Analysis, 2: Command, 3: Strategy)"
},
"totalThoughts": {
"description": "Total steps (usually 3)"
},
"commandSelection": {
"description": "Step 2: Select command or skip",
"type": {
"description": "'command' | 'skip' | 'skip_reason'"
},
"command": {
"description": "Selected command"
},
"reason": {
"description": "Skip reason"
}
},
"isRevision": {
"description": "Whether this revises previous thinking"
},
"revisesThought": {
"description": "Which thought is being reconsidered"
},
"branchFromThought": {
"description": "Branching point thought number"
},
"branchId": {
"description": "Branch identifier"
},
"needsMoreThoughts": {
"description": "If more thoughts are needed beyond initial estimate"
}
},
"errors": {
"invalidThought": "Invalid thought: must be a string",
"invalidThoughtNumber": "Invalid thoughtNumber: must be a number",
"invalidTotalThoughts": "Invalid totalThoughts: must be a number",
"invalidNextThoughtNeeded": "Invalid nextThoughtNeeded: must be a boolean",
"commandFieldRequired": "commandSelection type \"command\" requires a \"command\" field",
"reasonFieldRequired": "commandSelection type \"{type}\" requires a \"reason\" field",
"invalidSelectionType": "Invalid commandSelection type: {type}. Must be \"command\", \"skip\", or \"skip_reason\"",
"unexpectedThoughtNumber": "Unexpected thought number: {number}. Expected 1-3 or expansion beyond 3.",
"mandatoryViolation": "Step {step} requires commandSelection.\n\nProvide:\n{\n \"commandSelection\": {\n \"type\": \"command\" | \"skip\" | \"skip_reason\",\n \"command\": \"name\" (if command),\n \"reason\": \"explanation\" (if skip)\n }\n}\n\nAvailable: {commands}\nPath: {path}",
"unknownTool": "Unknown tool: {name}"
},
"messages": {
"autoExecute": "Auto-executing: Reading {command}.md SuperClaude command documentation",
"skipMessage": "Autonomous skip (Evidence-based validation passed - truly trivial): {reason}",
"systemReminderSkip": "Skip: Information already available in system-reminder context",
"systemReminder": "System reminder: {reason}",
"commandPreference": "SuperClaude Framework Protocol: Defaulting to command selection (90% threshold - Quality Gates enforced)",
"skipWarning": "CAUTION: Skip selected - verify all 4 conditions met (≤2 lines, no files, no analysis, pure recall)",
"documentRead": "Document tracked: {command}.md read in step {step}",
"skipSelectionDocumentRead": "Skip: Command document already read - no selection required",
"duplicateDocumentRead": "Document already read this session: {command}.md\n\nPlease refer to system-reminder content and apply that information to proceed with next step analysis.",
"useSystemReminder": "System-reminder reference: Use already read {command}.md content to continue analysis.",
"documentAttentionRequired": "ATTENTION: {command}.md guidance must be applied. Demonstrate document-based reasoning before proceeding.",
"applyDocumentGuidance": "Apply {command}.md methodology: MCP servers, personas, and implementation approach per document specifications.",
"documentBasedReasoning": "Document Integration: {command}.md directives → User request → Execution strategy alignment required.",
"serverRunning": "SuperClaude Dynamic Thinking MCP Server running on stdio",
"fatalError": "Fatal error running SuperClaude server: {error}"
},
"templates": {
"documentAnalysis": "\n\n**Document-Based Cognitive Attention Protocol**\n\nYou have just read {command}.md. Now apply meta-cognitive attention:\n\n**Document Perspective**: What core instructions does {command}.md provide?\n**Context Integration**: How do the document's directives apply to the current user request?\n**MCP Strategy**: Based on {command}.md guidance, which MCP servers should be activated?\n**Agent Coordination**: Does {command}.md suggest specific persona or agent involvement?\n**Implementation Approach**: What methodology does {command}.md recommend for this scenario?\n\n*Apply the document's framework systematically - do not proceed independently of its guidance.*",
"attentionPrompt": "**Meta-Cognitive Attention Required**: The {command}.md document you just read contains specific guidance for this task. Before proceeding, explicitly acknowledge how you will apply the document's instructions to the user's request. Do not continue without demonstrating document-based reasoning."
},
"console": {
"thoughtPrefix": {
"default": "Chain of Thought",
"revision": "Revising",
"branch": "Branching"
},
"thoughtContext": {
"revision": " (revising thought {number})",
"branch": " (from thought {from}, ID: {id})"
}
},
"config": {
"commandPath": "~/.claude/commands/sc/",
"availableCommands": ["analyze", "brainstorm", "build", "cleanup", "design", "document", "estimate", "explain", "git", "implement", "improve", "index", "load", "reflect", "save", "select-tool", "spawn", "task", "test", "troubleshoot", "workflow"],
"availableAgents": ["general-purpose", "statusline-setup", "output-style-setup", "technical-writer", "system-architect", "security-engineer", "root-cause-analyst", "requirements-analyst", "refactoring-expert", "quality-engineer", "python-expert", "performance-engineer", "learning-guide", "frontend-architect", "devops-architect", "backend-architect"],
"taskAgents": {
"enabled": true
},
"step3RequiresAgentSelection": false,
"returnAgentDocuments": false,
"requireSelectionFromStep": 2,
"enableAutoRead": true,
"commandPreference": 0.9,
"documentTracking": {
"enabled": true,
"skipSelectionIfDocumentRead": true,
"preventDuplicateReads": true,
"useSystemReminderForDuplicates": true,
"trackedDocuments": ["analyze", "brainstorm", "build", "cleanup", "design", "document", "estimate", "explain", "git", "implement", "improve", "index", "load", "reflect", "save", "select-tool", "spawn", "task", "test", "troubleshoot", "workflow"]
},
"documentAttention": {
"enabled": true,
"metaCognitiveMode": true,
"attentionStrategy": "natural_nlp_based",
"forceDocumentApplication": true,
"tokenEfficiency": "balanced",
"attentionTriggers": {
"afterDocumentRead": true,
"beforeExecution": true,
"onContextSwitch": false
},
"attentionLevel": {
"minimal": "Document → Request → Strategy",
"standard": "documentAnalysis",
"comprehensive": "attentionPrompt"
},
"nlpAttentionMechanism": {
"activateOnDocumentRead": true,
"enforceDocumentAlignment": true,
"preventIndependentExecution": true,
"useMetaCognition": true
}
}
},
"state": {
"sessionDocumentsRead": [],
"documentReadStatus": false
}
}