0xray 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.opencode/codex.codex +1 -1
- package/.opencode/commands/dependency-audit.md +3 -3
- package/.opencode/enforcer-config.json +2 -2
- package/AGENTS.md +2 -1
- package/README.md +12 -11
- package/dist/AGENTS.md +2 -1
- package/dist/CHANGELOG.md +38 -0
- package/dist/README.md +12 -11
- package/dist/agents/code-reviewer.js +1 -1
- package/dist/analytics/routing-refiner.js +1 -1
- package/dist/cli/index.js +11 -1
- package/dist/cli/server.js +3 -3
- package/dist/core/activity-logger.d.ts +2 -2
- package/dist/core/activity-logger.js +4 -4
- package/dist/core/boot-orchestrator.d.ts +1 -1
- package/dist/core/boot-orchestrator.js +13 -28
- package/dist/core/bridge.mjs +3 -3
- package/dist/core/codex-formatter.js +2 -2
- package/dist/core/codex-injector.d.ts +0 -1
- package/dist/core/codex-injector.js +2 -3
- package/dist/core/config-loader.d.ts +1 -1
- package/dist/core/config-loader.js +1 -1
- package/dist/core/config-paths.d.ts +0 -2
- package/dist/core/config-paths.js +7 -8
- package/dist/core/context-loader.d.ts +1 -1
- package/dist/core/context-loader.js +1 -1
- package/dist/core/errors.d.ts +3 -0
- package/dist/core/errors.js +10 -0
- package/dist/core/features-config.js +1 -1
- package/dist/core/framework-logger.d.ts +3 -3
- package/dist/core/framework-logger.js +17 -9
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +4 -2
- package/dist/core/logging-config.d.ts +2 -1
- package/dist/core/logging-config.js +7 -7
- package/dist/enforcement/loaders/codex-loader.js +1 -1
- package/dist/execution/opencode-cli-invoker.js +5 -5
- package/dist/governance/governance-service.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/inference/inference-cycle.d.ts +1 -1
- package/dist/inference/inference-cycle.js +10 -10
- package/dist/integrations/base/Integration.js +1 -1
- package/dist/integrations/base/registry.js +19 -19
- package/dist/integrations/grok/grok-cli.js +17 -17
- package/dist/integrations/grok/hooks/pre-tool-use.js +1 -1
- package/dist/integrations/hermes-agent/bridge.mjs +1 -1
- package/dist/integrations/openclaw/api-server.d.ts +0 -1
- package/dist/integrations/openclaw/api-server.js +7 -10
- package/dist/integrations/openclaw/client.d.ts +0 -1
- package/dist/integrations/openclaw/client.js +22 -24
- package/dist/integrations/openclaw/hooks/xray-hooks.d.ts +0 -1
- package/dist/integrations/openclaw/hooks/xray-hooks.js +17 -18
- package/dist/integrations/plugins/plugin-registry.js +5 -5
- package/dist/mcps/architect-tools.server.d.ts +2 -4
- package/dist/mcps/architect-tools.server.js +112 -195
- package/dist/mcps/auto-format.server.d.ts +2 -4
- package/dist/mcps/auto-format.server.js +49 -95
- package/dist/mcps/boot-orchestrator.server.d.ts +2 -4
- package/dist/mcps/boot-orchestrator.server.js +73 -105
- package/dist/mcps/config/server-config-registry.js +3 -3
- package/dist/mcps/enforcer-tools.server.d.ts +2 -4
- package/dist/mcps/enforcer-tools.server.js +202 -285
- package/dist/mcps/estimation.server.d.ts +2 -4
- package/dist/mcps/estimation.server.js +63 -107
- package/dist/mcps/framework-compliance-audit.server.d.ts +2 -4
- package/dist/mcps/framework-compliance-audit.server.js +53 -82
- package/dist/mcps/framework-help.server.d.ts +2 -4
- package/dist/mcps/framework-help.server.js +63 -101
- package/dist/mcps/governance.server.js +2 -2
- package/dist/mcps/knowledge-skills/api-design.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/api-design.server.js +35 -67
- package/dist/mcps/knowledge-skills/architecture-patterns.server.d.ts +2 -10
- package/dist/mcps/knowledge-skills/architecture-patterns.server.js +35 -74
- package/dist/mcps/knowledge-skills/bug-triage-specialist.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/bug-triage-specialist.server.js +143 -162
- package/dist/mcps/knowledge-skills/code-analyzer.server.d.ts +3 -4
- package/dist/mcps/knowledge-skills/code-analyzer.server.js +20 -45
- package/dist/mcps/knowledge-skills/code-review.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/code-review.server.js +109 -143
- package/dist/mcps/knowledge-skills/content-creator.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/content-creator.server.js +205 -226
- package/dist/mcps/knowledge-skills/database-design.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/database-design.server.js +117 -151
- package/dist/mcps/knowledge-skills/devops-deployment.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/devops-deployment.server.js +71 -160
- package/dist/mcps/knowledge-skills/git-workflow.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/git-workflow.server.js +36 -68
- package/dist/mcps/knowledge-skills/growth-strategist.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/growth-strategist.server.js +303 -324
- package/dist/mcps/knowledge-skills/log-monitor.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/log-monitor.server.js +141 -160
- package/dist/mcps/knowledge-skills/mobile-development.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/mobile-development.server.js +92 -209
- package/dist/mcps/knowledge-skills/multimodal-looker.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/multimodal-looker.server.js +123 -159
- package/dist/mcps/knowledge-skills/performance-optimization.server.d.ts +2 -5
- package/dist/mcps/knowledge-skills/performance-optimization.server.js +155 -296
- package/dist/mcps/knowledge-skills/project-analysis.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/project-analysis.server.js +75 -226
- package/dist/mcps/knowledge-skills/refactoring-strategies.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/refactoring-strategies.server.js +63 -156
- package/dist/mcps/knowledge-skills/security-audit.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/security-audit.server.js +102 -136
- package/dist/mcps/knowledge-skills/seo-consultant.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/seo-consultant.server.js +80 -203
- package/dist/mcps/knowledge-skills/session-management.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/session-management.server.js +50 -203
- package/dist/mcps/knowledge-skills/skill-invocation.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/skill-invocation.server.js +168 -347
- package/dist/mcps/knowledge-skills/strategist.server.d.ts +2 -11
- package/dist/mcps/knowledge-skills/strategist.server.js +72 -122
- package/dist/mcps/knowledge-skills/tech-writer.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/tech-writer.server.js +87 -300
- package/dist/mcps/knowledge-skills/testing-best-practices.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/testing-best-practices.server.js +147 -182
- package/dist/mcps/knowledge-skills/testing-strategy.server.d.ts +2 -4
- package/dist/mcps/knowledge-skills/testing-strategy.server.js +78 -153
- package/dist/mcps/knowledge-skills/ui-ux-design.server.d.ts +2 -5
- package/dist/mcps/knowledge-skills/ui-ux-design.server.js +90 -399
- package/dist/mcps/lint.server.d.ts +2 -4
- package/dist/mcps/lint.server.js +51 -92
- package/dist/mcps/mcp-client.js +2 -2
- package/dist/mcps/model-health-check.server.d.ts +2 -4
- package/dist/mcps/model-health-check.server.js +32 -60
- package/dist/mcps/performance-analysis.server.d.ts +2 -4
- package/dist/mcps/performance-analysis.server.js +57 -88
- package/dist/mcps/processor-pipeline.server.d.ts +2 -4
- package/dist/mcps/processor-pipeline.server.js +69 -100
- package/dist/mcps/registry.json +1 -1
- package/dist/mcps/researcher.server.d.ts +3 -5
- package/dist/mcps/researcher.server.js +81 -154
- package/dist/mcps/security-scan.server.d.ts +2 -4
- package/dist/mcps/security-scan.server.js +54 -96
- package/dist/mcps/shared/knowledge-skill-base.d.ts +14 -0
- package/dist/mcps/shared/knowledge-skill-base.js +45 -0
- package/dist/{security → mcps/shared}/security-scanner.js +1 -1
- package/dist/mcps/state-manager.server.d.ts +2 -4
- package/dist/mcps/state-manager.server.js +115 -160
- package/dist/orchestrator/orchestrator.d.ts +1 -1
- package/dist/orchestrator/orchestrator.js +1 -1
- package/dist/orchestrator/universal-registry-bridge.js +1 -1
- package/dist/plugin/xray-codex-injection.d.ts +1 -1
- package/dist/plugin/xray-codex-injection.js +1 -1
- package/dist/postprocessor/PostProcessor.d.ts +4 -44
- package/dist/postprocessor/PostProcessor.js +39 -553
- package/dist/postprocessor/analysis/CodeChangeAnalyzer.d.ts +11 -0
- package/dist/postprocessor/analysis/CodeChangeAnalyzer.js +50 -0
- package/dist/postprocessor/compliance/ArchitecturalComplianceChecker.d.ts +11 -0
- package/dist/postprocessor/compliance/ArchitecturalComplianceChecker.js +356 -0
- package/dist/postprocessor/config/ProcessorConfigLoader.d.ts +44 -0
- package/dist/postprocessor/config/ProcessorConfigLoader.js +21 -0
- package/dist/postprocessor/reporting/PostProcessorReporter.d.ts +19 -0
- package/dist/postprocessor/reporting/PostProcessorReporter.js +96 -0
- package/dist/postprocessor/triggers/GitHookTrigger.js +11 -11
- package/dist/processors/implementations/refactoring-logging-processor-wrapper.d.ts +32 -0
- package/dist/processors/implementations/refactoring-logging-processor-wrapper.js +95 -1
- package/dist/processors/processor-manager.js +346 -314
- package/dist/reporting/report-formatter.js +1 -1
- package/dist/security/security-hardener.d.ts +69 -2
- package/dist/security/security-hardener.js +129 -1
- package/dist/skills/registry.json +1 -1
- package/dist/state/index.d.ts +3 -5
- package/dist/state/index.js +1 -7
- package/dist/state/state-manager.d.ts +1 -1
- package/dist/state/state-manager.js +2 -3
- package/package.json +13 -10
- package/scripts/node/universal-version-manager.js +11 -11
- package/src/mcps/architect-tools.server.ts +112 -215
- package/src/mcps/auto-format.server.ts +50 -110
- package/src/mcps/boot-orchestrator.server.ts +75 -121
- package/src/mcps/config/__tests__/server-config-registry.test.ts +21 -12
- package/src/mcps/config/server-config-registry.ts +3 -3
- package/src/mcps/enforcer-tools.server.ts +212 -310
- package/src/mcps/estimation.server.ts +62 -122
- package/src/mcps/framework-compliance-audit.server.ts +52 -97
- package/src/mcps/framework-help.server.ts +64 -114
- package/src/mcps/governance.server.ts +2 -2
- package/src/mcps/knowledge-skills/api-design.server.ts +32 -77
- package/src/mcps/knowledge-skills/architecture-patterns.server.ts +31 -87
- package/src/mcps/knowledge-skills/bug-triage-specialist.server.ts +165 -193
- package/src/mcps/knowledge-skills/code-analyzer.server.ts +20 -55
- package/src/mcps/knowledge-skills/code-review.server.ts +114 -161
- package/src/mcps/knowledge-skills/content-creator.server.ts +218 -255
- package/src/mcps/knowledge-skills/database-design.server.ts +118 -165
- package/src/mcps/knowledge-skills/devops-deployment.server.ts +67 -172
- package/src/mcps/knowledge-skills/git-workflow.server.ts +32 -77
- package/src/mcps/knowledge-skills/growth-strategist.server.ts +324 -361
- package/src/mcps/knowledge-skills/log-monitor.server.ts +160 -187
- package/src/mcps/knowledge-skills/mobile-development.server.ts +89 -223
- package/src/mcps/knowledge-skills/multimodal-looker.server.ts +128 -175
- package/src/mcps/knowledge-skills/performance-optimization.server.ts +156 -329
- package/src/mcps/knowledge-skills/project-analysis.server.ts +72 -248
- package/src/mcps/knowledge-skills/refactoring-strategies.server.ts +59 -171
- package/src/mcps/knowledge-skills/security-audit.server.ts +104 -151
- package/src/mcps/knowledge-skills/seo-consultant.server.ts +80 -220
- package/src/mcps/knowledge-skills/session-management.server.ts +51 -232
- package/src/mcps/knowledge-skills/skill-invocation.server.ts +165 -372
- package/src/mcps/knowledge-skills/strategist.server.ts +72 -143
- package/src/mcps/knowledge-skills/tech-writer.server.ts +85 -350
- package/src/mcps/knowledge-skills/testing-best-practices.server.ts +146 -195
- package/src/mcps/knowledge-skills/testing-strategy.server.ts +75 -161
- package/src/mcps/knowledge-skills/ui-ux-design.server.ts +93 -487
- package/src/mcps/lint.server.ts +53 -107
- package/src/mcps/mcp-client.ts +2 -2
- package/src/mcps/model-health-check.server.ts +34 -71
- package/src/mcps/performance-analysis.server.ts +60 -104
- package/src/mcps/processor-pipeline.server.ts +72 -110
- package/src/mcps/registry.json +1 -1
- package/src/mcps/researcher.server.ts +88 -177
- package/src/mcps/security-scan.server.ts +55 -104
- package/src/mcps/shared/knowledge-skill-base.ts +62 -0
- package/src/mcps/shared/prompt-security-validator.ts +199 -0
- package/src/mcps/shared/security-scanner.ts +599 -0
- package/src/mcps/state-manager.server.ts +117 -175
- package/src/opencode/codex.codex +1 -1
- package/src/opencode/commands/dependency-audit.md +3 -3
- package/src/opencode/enforcer-config.json +2 -2
- package/src/skills/registry.json +1 -1
- package/xray/codex.json +1 -1
- package/xray/config.json +1 -1
- package/xray/features.json +1 -1
- package/xray/integrations.json +3 -3
- package/dist/integrations/hermes-agent/__pycache__/__init__.cpython-313.pyc +0 -0
- package/dist/integrations/hermes-agent/__pycache__/conftest.cpython-313-pytest-9.0.2.pyc +0 -0
- package/dist/integrations/hermes-agent/__pycache__/schemas.cpython-313.pyc +0 -0
- package/dist/integrations/hermes-agent/__pycache__/test_plugin.cpython-313-pytest-9.0.2.pyc +0 -0
- package/dist/integrations/hermes-agent/__pycache__/test_plugin.cpython-313.pyc +0 -0
- package/dist/integrations/hermes-agent/__pycache__/tools.cpython-313.pyc +0 -0
- package/dist/integrations/hermes-agent/conftest.py +0 -14
- package/dist/integrations/hermes-agent/test_plugin.py +0 -1103
- package/dist/processors/implementations/refactoring-logging-processor.d.ts +0 -31
- package/dist/processors/implementations/refactoring-logging-processor.js +0 -96
- package/dist/processors/implementations/session-capture-processor.d.ts +0 -14
- package/dist/processors/implementations/session-capture-processor.js +0 -37
- package/dist/scripts/activate-kernel-pipeline.d.ts +0 -7
- package/dist/scripts/activate-kernel-pipeline.js +0 -101
- package/dist/security/index.d.ts +0 -13
- package/dist/security/index.js +0 -13
- package/dist/security/security-agent-coordinator.d.ts +0 -72
- package/dist/security/security-agent-coordinator.js +0 -204
- package/dist/security/security-auditor.d.ts +0 -56
- package/dist/security/security-auditor.js +0 -584
- package/dist/security/security-hardening-system.d.ts +0 -239
- package/dist/security/security-hardening-system.js +0 -727
- package/dist/security/security-orchestration-layer.d.ts +0 -119
- package/dist/security/security-orchestration-layer.js +0 -496
- /package/dist/{security → mcps/shared}/prompt-security-validator.d.ts +0 -0
- /package/dist/{security → mcps/shared}/prompt-security-validator.js +0 -0
- /package/dist/{security → mcps/shared}/security-scanner.d.ts +0 -0
|
@@ -3,118 +3,81 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides tools for tracking and validating estimates
|
|
5
5
|
*/
|
|
6
|
-
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
7
|
-
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
8
|
-
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
9
6
|
import { frameworkLogger } from "../core/framework-logger.js";
|
|
10
7
|
import { getEstimationValidator } from "../validation/estimation-validator.js";
|
|
8
|
+
import { XrayKnowledgeSkillBase } from "./shared/knowledge-skill-base.js";
|
|
11
9
|
/**
|
|
12
10
|
* Estimation MCP Server
|
|
13
11
|
* Tracks estimates vs actuals and provides calibrated predictions
|
|
14
12
|
*/
|
|
15
|
-
class EstimationServer {
|
|
16
|
-
server;
|
|
13
|
+
class EstimationServer extends XrayKnowledgeSkillBase {
|
|
17
14
|
validator = getEstimationValidator();
|
|
18
15
|
constructor() {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
tools: [
|
|
31
|
-
{
|
|
32
|
-
name: "validate-estimate",
|
|
33
|
-
description: "Validate an estimate against historical data",
|
|
34
|
-
inputSchema: {
|
|
35
|
-
type: "object",
|
|
36
|
-
properties: {
|
|
37
|
-
category: {
|
|
38
|
-
type: "string",
|
|
39
|
-
description: "Task category (e.g., 'refactoring', 'testing', 'documentation')",
|
|
40
|
-
},
|
|
41
|
-
estimate: {
|
|
42
|
-
type: "number",
|
|
43
|
-
description: "Estimated time in minutes",
|
|
44
|
-
},
|
|
45
|
-
description: {
|
|
46
|
-
type: "string",
|
|
47
|
-
description: "Brief description of the task",
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
required: ["category", "estimate"],
|
|
16
|
+
super("estimation-validator", "2.0.1");
|
|
17
|
+
this.tools = [
|
|
18
|
+
{
|
|
19
|
+
name: "validate-estimate",
|
|
20
|
+
description: "Validate an estimate against historical data",
|
|
21
|
+
inputSchema: {
|
|
22
|
+
type: "object",
|
|
23
|
+
properties: {
|
|
24
|
+
category: {
|
|
25
|
+
type: "string",
|
|
26
|
+
description: "Task category (e.g., 'refactoring', 'testing', 'documentation')",
|
|
51
27
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
description: "Start tracking time for a task",
|
|
56
|
-
inputSchema: {
|
|
57
|
-
type: "object",
|
|
58
|
-
properties: {
|
|
59
|
-
taskId: { type: "string" },
|
|
60
|
-
category: { type: "string" },
|
|
61
|
-
estimate: { type: "number" },
|
|
62
|
-
description: { type: "string" },
|
|
63
|
-
},
|
|
64
|
-
required: ["taskId", "category", "estimate"],
|
|
28
|
+
estimate: {
|
|
29
|
+
type: "number",
|
|
30
|
+
description: "Estimated time in minutes",
|
|
65
31
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
description: "Complete tracking for a task",
|
|
70
|
-
inputSchema: {
|
|
71
|
-
type: "object",
|
|
72
|
-
properties: {
|
|
73
|
-
taskId: { type: "string" },
|
|
74
|
-
},
|
|
75
|
-
required: ["taskId"],
|
|
32
|
+
description: {
|
|
33
|
+
type: "string",
|
|
34
|
+
description: "Brief description of the task",
|
|
76
35
|
},
|
|
77
36
|
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
37
|
+
required: ["category", "estimate"],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "start-tracking",
|
|
42
|
+
description: "Start tracking time for a task",
|
|
43
|
+
inputSchema: {
|
|
44
|
+
type: "object",
|
|
45
|
+
properties: {
|
|
46
|
+
taskId: { type: "string" },
|
|
47
|
+
category: { type: "string" },
|
|
48
|
+
estimate: { type: "number" },
|
|
49
|
+
description: { type: "string" },
|
|
85
50
|
},
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
});
|
|
51
|
+
required: ["taskId", "category", "estimate"],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "complete-tracking",
|
|
56
|
+
description: "Complete tracking for a task",
|
|
57
|
+
inputSchema: {
|
|
58
|
+
type: "object",
|
|
59
|
+
properties: {
|
|
60
|
+
taskId: { type: "string" },
|
|
61
|
+
},
|
|
62
|
+
required: ["taskId"],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "get-accuracy-report",
|
|
67
|
+
description: "Get estimation accuracy report",
|
|
68
|
+
inputSchema: {
|
|
69
|
+
type: "object",
|
|
70
|
+
properties: {},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
];
|
|
74
|
+
this.handlers = {
|
|
75
|
+
"validate-estimate": async (args) => this.handleValidateEstimate(args),
|
|
76
|
+
"start-tracking": async (args) => this.handleStartTracking(args),
|
|
77
|
+
"complete-tracking": async (args) => this.handleCompleteTracking(args),
|
|
78
|
+
"get-accuracy-report": async (args) => this.handleGetReport(),
|
|
79
|
+
};
|
|
80
|
+
this.setupToolHandlers();
|
|
118
81
|
}
|
|
119
82
|
handleValidateEstimate(args) {
|
|
120
83
|
const validation = this.validator.validateEstimate(args.category, args.estimate);
|
|
@@ -176,17 +139,10 @@ class EstimationServer {
|
|
|
176
139
|
}
|
|
177
140
|
return { content: [{ type: "text", text: response }] };
|
|
178
141
|
}
|
|
179
|
-
async start() {
|
|
180
|
-
const transport = new StdioServerTransport();
|
|
181
|
-
await this.server.connect(transport);
|
|
182
|
-
frameworkLogger.log("estimation-server", "start", "info", {
|
|
183
|
-
message: "Estimation Validator Server started",
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
142
|
}
|
|
187
143
|
// Run if called directly
|
|
188
144
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
189
145
|
const server = new EstimationServer();
|
|
190
|
-
server.
|
|
146
|
+
server.run("estimation-validator").catch((error) => frameworkLogger.log("mcps/estimation", "run", "error", { error: String(error) }));
|
|
191
147
|
}
|
|
192
148
|
export { EstimationServer };
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Comprehensive validation of all framework components and Universal Development Codex compliance
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
import { XrayKnowledgeSkillBase } from "./shared/knowledge-skill-base.js";
|
|
7
|
+
declare class XrayFrameworkComplianceAuditServer extends XrayKnowledgeSkillBase {
|
|
8
8
|
constructor();
|
|
9
|
-
private setupToolHandlers;
|
|
10
9
|
private handleFrameworkComplianceAudit;
|
|
11
10
|
private handleCodexValidation;
|
|
12
11
|
private auditConfigurationIntegrity;
|
|
@@ -17,6 +16,5 @@ declare class XrayFrameworkComplianceAuditServer {
|
|
|
17
16
|
private checkTermImplementation;
|
|
18
17
|
private generateAuditSummary;
|
|
19
18
|
private getDetailedFindings;
|
|
20
|
-
run(): Promise<void>;
|
|
21
19
|
}
|
|
22
20
|
export { XrayFrameworkComplianceAuditServer };
|
|
@@ -3,89 +3,65 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Comprehensive validation of all framework components and Universal Development Codex compliance
|
|
5
5
|
*/
|
|
6
|
-
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
7
|
-
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
8
|
-
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
9
6
|
import fs from "fs";
|
|
10
7
|
import { frameworkLogger } from "../core/framework-logger.js";
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
import { XrayKnowledgeSkillBase } from "./shared/knowledge-skill-base.js";
|
|
9
|
+
class XrayFrameworkComplianceAuditServer extends XrayKnowledgeSkillBase {
|
|
13
10
|
constructor() {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"full",
|
|
39
|
-
"codex",
|
|
40
|
-
"configuration",
|
|
41
|
-
"agents",
|
|
42
|
-
"performance",
|
|
43
|
-
],
|
|
44
|
-
default: "full",
|
|
45
|
-
description: "Scope of compliance audit",
|
|
46
|
-
},
|
|
47
|
-
detailed: {
|
|
48
|
-
type: "boolean",
|
|
49
|
-
default: false,
|
|
50
|
-
description: "Include detailed findings and recommendations",
|
|
51
|
-
},
|
|
52
|
-
},
|
|
11
|
+
super("framework-compliance-audit", "2.0.1");
|
|
12
|
+
this.tools = [
|
|
13
|
+
{
|
|
14
|
+
name: "framework-compliance-audit",
|
|
15
|
+
description: "Comprehensive validation of all framework components and Universal Development Codex compliance",
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: "object",
|
|
18
|
+
properties: {
|
|
19
|
+
scope: {
|
|
20
|
+
type: "string",
|
|
21
|
+
enum: [
|
|
22
|
+
"full",
|
|
23
|
+
"codex",
|
|
24
|
+
"configuration",
|
|
25
|
+
"agents",
|
|
26
|
+
"performance",
|
|
27
|
+
],
|
|
28
|
+
default: "full",
|
|
29
|
+
description: "Scope of compliance audit",
|
|
30
|
+
},
|
|
31
|
+
detailed: {
|
|
32
|
+
type: "boolean",
|
|
33
|
+
default: false,
|
|
34
|
+
description: "Include detailed findings and recommendations",
|
|
53
35
|
},
|
|
54
36
|
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "codex-validation",
|
|
41
|
+
description: "Validate compliance with Universal Development Codex v1.2.0",
|
|
42
|
+
inputSchema: {
|
|
43
|
+
type: "object",
|
|
44
|
+
properties: {
|
|
45
|
+
terms: {
|
|
46
|
+
type: "array",
|
|
47
|
+
items: { type: "number", minimum: 1, maximum: 43 },
|
|
48
|
+
description: "Specific codex terms to validate (1-43)",
|
|
49
|
+
},
|
|
50
|
+
strict: {
|
|
51
|
+
type: "boolean",
|
|
52
|
+
default: true,
|
|
53
|
+
description: "Enforce strict compliance",
|
|
72
54
|
},
|
|
73
55
|
},
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
case "codex-validation":
|
|
84
|
-
return await this.handleCodexValidation(args);
|
|
85
|
-
default:
|
|
86
|
-
throw new Error(`Unknown tool: ${name}`);
|
|
87
|
-
}
|
|
88
|
-
});
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
];
|
|
59
|
+
this.handlers = {
|
|
60
|
+
"framework-compliance-audit": async (args) => this.handleFrameworkComplianceAudit(args),
|
|
61
|
+
"codex-validation": async (args) => this.handleCodexValidation(args),
|
|
62
|
+
};
|
|
63
|
+
this.setupToolHandlers();
|
|
64
|
+
void frameworkLogger.log("framework-compliance-audit.server", "compliance-audit-init", "info", { message: "0xRay Framework Compliance Audit MCP Server initialized" });
|
|
89
65
|
}
|
|
90
66
|
async handleFrameworkComplianceAudit(args) {
|
|
91
67
|
const scope = args.scope || "full";
|
|
@@ -486,15 +462,10 @@ ${results.recommendations.map((r) => `• 💡 ${r}`).join("\n")}
|
|
|
486
462
|
details += `- Status: ${results.complianceScores.performance_thresholds || "Not checked"}\n\n`;
|
|
487
463
|
return details;
|
|
488
464
|
}
|
|
489
|
-
async run() {
|
|
490
|
-
const transport = new StdioServerTransport();
|
|
491
|
-
await this.server.connect(transport);
|
|
492
|
-
void frameworkLogger.log("framework-compliance-audit.server", "compliance-audit-startup", "info", { message: "0xRay Framework Compliance Audit MCP Server started" });
|
|
493
|
-
}
|
|
494
465
|
}
|
|
495
466
|
// Start the server if run directly
|
|
496
467
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
497
468
|
const server = new XrayFrameworkComplianceAuditServer();
|
|
498
|
-
server.run().catch((error) => frameworkLogger.log("mcps/framework-compliance-audit", "run", "error", { error: String(error) }));
|
|
469
|
+
server.run("framework-compliance-audit").catch((error) => frameworkLogger.log("mcps/framework-compliance-audit", "run", "error", { error: String(error) }));
|
|
499
470
|
}
|
|
500
471
|
export { XrayFrameworkComplianceAuditServer };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { XrayKnowledgeSkillBase } from "./shared/knowledge-skill-base.js";
|
|
2
|
+
declare class FrameworkHelpServer extends XrayKnowledgeSkillBase {
|
|
3
3
|
constructor();
|
|
4
|
-
private setupToolHandlers;
|
|
5
4
|
private getActiveAgentEntries;
|
|
6
5
|
private handleGetCapabilities;
|
|
7
6
|
private handleGetCommands;
|
|
@@ -9,6 +8,5 @@ declare class FrameworkHelpServer {
|
|
|
9
8
|
private generateCommandList;
|
|
10
9
|
private generateFullCapabilities;
|
|
11
10
|
private generateCategoryCapabilities;
|
|
12
|
-
start(): Promise<void>;
|
|
13
11
|
}
|
|
14
12
|
export { FrameworkHelpServer };
|
|
@@ -1,107 +1,74 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
|
-
import { CallToolRequestSchema, ErrorCode, ListToolsRequestSchema, McpError, } from "@modelcontextprotocol/sdk/types.js";
|
|
1
|
+
import { ErrorCode, McpError, } from "@modelcontextprotocol/sdk/types.js";
|
|
4
2
|
import { frameworkLogger } from "../core/framework-logger.js";
|
|
5
3
|
import { AGENT_REGISTRY } from "../agents/registry.js";
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { XrayKnowledgeSkillBase } from "./shared/knowledge-skill-base.js";
|
|
5
|
+
class FrameworkHelpServer extends XrayKnowledgeSkillBase {
|
|
8
6
|
constructor() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
properties: {
|
|
29
|
-
category: {
|
|
30
|
-
type: "string",
|
|
31
|
-
enum: ["all", "agents", "skills", "commands", "reporting"],
|
|
32
|
-
description: "Filter capabilities by category",
|
|
33
|
-
default: "all",
|
|
34
|
-
},
|
|
35
|
-
format: {
|
|
36
|
-
type: "string",
|
|
37
|
-
enum: ["summary", "detailed", "commands"],
|
|
38
|
-
description: "Output format",
|
|
39
|
-
default: "summary",
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
required: [],
|
|
7
|
+
super("xray/framework-help", "2.0.1");
|
|
8
|
+
this.tools = [
|
|
9
|
+
{
|
|
10
|
+
name: "xray_get_capabilities",
|
|
11
|
+
description: "Get comprehensive list of all 0xRay framework capabilities, commands, and available tools",
|
|
12
|
+
inputSchema: {
|
|
13
|
+
type: "object",
|
|
14
|
+
properties: {
|
|
15
|
+
category: {
|
|
16
|
+
type: "string",
|
|
17
|
+
enum: ["all", "agents", "skills", "commands", "reporting"],
|
|
18
|
+
description: "Filter capabilities by category",
|
|
19
|
+
default: "all",
|
|
20
|
+
},
|
|
21
|
+
format: {
|
|
22
|
+
type: "string",
|
|
23
|
+
enum: ["summary", "detailed", "commands"],
|
|
24
|
+
description: "Output format",
|
|
25
|
+
default: "summary",
|
|
43
26
|
},
|
|
44
27
|
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
28
|
+
required: [],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "xray_get_commands",
|
|
33
|
+
description: "Get list of available 0xRay commands and their usage",
|
|
34
|
+
inputSchema: {
|
|
35
|
+
type: "object",
|
|
36
|
+
properties: {
|
|
37
|
+
type: {
|
|
38
|
+
type: "string",
|
|
39
|
+
enum: [
|
|
40
|
+
"agent-commands",
|
|
41
|
+
"system-commands",
|
|
42
|
+
"reporting-commands",
|
|
43
|
+
],
|
|
44
|
+
description: "Type of commands to list",
|
|
45
|
+
default: "agent-commands",
|
|
63
46
|
},
|
|
64
47
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
48
|
+
required: [],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "xray_explain_capability",
|
|
53
|
+
description: "Get detailed explanation of a specific 0xRay capability",
|
|
54
|
+
inputSchema: {
|
|
55
|
+
type: "object",
|
|
56
|
+
properties: {
|
|
57
|
+
capability: {
|
|
58
|
+
type: "string",
|
|
59
|
+
description: "Name of the capability to explain",
|
|
77
60
|
},
|
|
78
61
|
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
this.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
case "xray_get_commands":
|
|
90
|
-
return this.handleGetCommands(args);
|
|
91
|
-
case "xray_explain_capability":
|
|
92
|
-
return this.handleExplainCapability(args);
|
|
93
|
-
default:
|
|
94
|
-
throw new McpError(ErrorCode.MethodNotFound, `Unknown tool: ${name}`);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
catch (error) {
|
|
98
|
-
if (error instanceof McpError) {
|
|
99
|
-
throw error;
|
|
100
|
-
}
|
|
101
|
-
frameworkLogger.log("mcps/framework-help", "tool-call", "error", { tool: name, error: String(error) });
|
|
102
|
-
throw new McpError(ErrorCode.InternalError, `Tool "${name}" execution failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
103
|
-
}
|
|
104
|
-
});
|
|
62
|
+
required: ["capability"],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
];
|
|
66
|
+
this.handlers = {
|
|
67
|
+
"xray_get_capabilities": async (args) => this.handleGetCapabilities(args),
|
|
68
|
+
"xray_get_commands": async (args) => this.handleGetCommands(args),
|
|
69
|
+
"xray_explain_capability": async (args) => this.handleExplainCapability(args),
|
|
70
|
+
};
|
|
71
|
+
this.setupToolHandlers();
|
|
105
72
|
}
|
|
106
73
|
getActiveAgentEntries() {
|
|
107
74
|
return Object.values(AGENT_REGISTRY).filter((e) => e.status === "active");
|
|
@@ -386,15 +353,10 @@ ${items.map(([name, desc]) => `- **${name}**: ${desc}`).join("\n")}
|
|
|
386
353
|
**Total:** ${items.length} ${category}
|
|
387
354
|
`.trim();
|
|
388
355
|
}
|
|
389
|
-
async start() {
|
|
390
|
-
const transport = new StdioServerTransport();
|
|
391
|
-
await this.server.connect(transport);
|
|
392
|
-
frameworkLogger.log("mcps/framework-help", "start", "info", { message: "0xRay Framework Help Server started" });
|
|
393
|
-
}
|
|
394
356
|
}
|
|
395
357
|
// Auto-start if this file is run directly - conditional server initialization for development/testing
|
|
396
358
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
397
359
|
const server = new FrameworkHelpServer();
|
|
398
|
-
server.
|
|
360
|
+
server.run("xray/framework-help").catch((error) => frameworkLogger.log("mcps/framework-help", "run", "error", { error: String(error) }));
|
|
399
361
|
}
|
|
400
362
|
export { FrameworkHelpServer };
|
|
@@ -29,7 +29,7 @@ class GovernanceServer {
|
|
|
29
29
|
server;
|
|
30
30
|
constructor() {
|
|
31
31
|
this.server = new Server({
|
|
32
|
-
name: "governance", version: "2.
|
|
32
|
+
name: "governance", version: "2.1.3",
|
|
33
33
|
}, {
|
|
34
34
|
capabilities: {
|
|
35
35
|
tools: {},
|
|
@@ -205,7 +205,7 @@ class GovernanceServer {
|
|
|
205
205
|
})),
|
|
206
206
|
context: args.context || {},
|
|
207
207
|
options: {
|
|
208
|
-
requireExternalDynamo: args.options?.require_external ??
|
|
208
|
+
requireExternalDynamo: args.options?.require_external ?? !process.env.XRAY_LOCAL_MODE,
|
|
209
209
|
},
|
|
210
210
|
};
|
|
211
211
|
frameworkLogger.log("governance-mcp", "delegating-to-governance-service", "info", {
|
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
* Knowledge skill for API design patterns, RESTful conventions,
|
|
5
5
|
* GraphQL schema design, and API documentation standards
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
import { XrayKnowledgeSkillBase } from "../shared/knowledge-skill-base.js";
|
|
8
|
+
declare class XrayApiDesignServer extends XrayKnowledgeSkillBase {
|
|
9
9
|
constructor();
|
|
10
|
-
private setupToolHandlers;
|
|
11
10
|
private designApiEndpoints;
|
|
12
11
|
private validateApiDesign;
|
|
13
|
-
run(): Promise<void>;
|
|
14
12
|
}
|
|
15
13
|
export default XrayApiDesignServer;
|