0xray 2.0.1 → 2.1.1
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/.opencode/hooks/post-commit +1 -1
- package/.opencode/init.sh +2 -2
- package/AGENTS.md +1 -1
- package/README.md +2 -2
- package/dist/AGENTS.md +1 -1
- package/dist/CHANGELOG.md +10 -0
- package/dist/README.md +2 -2
- package/dist/analytics/routing-refiner.js +1 -1
- package/dist/benchmark/performance-benchmark.d.ts +2 -2
- package/dist/benchmark/performance-benchmark.js +3 -3
- package/dist/cli/commands/hermes-install.js +4 -4
- package/dist/cli/commands/mcp-install.js +1 -1
- package/dist/cli/commands/openclaw-install.js +1 -1
- package/dist/cli/commands/plugin-commands.js +2 -2
- package/dist/cli/commands/publish-agent.js +5 -5
- package/dist/cli/commands/skill-install.js +1 -1
- package/dist/cli/commands/status.js +3 -3
- package/dist/cli/commands/storyteller.js +2 -2
- package/dist/cli/index.js +8 -8
- package/dist/cli/server.js +1 -1
- package/dist/core/agent-spawn-gate.d.ts +1 -1
- package/dist/core/agent-spawn-gate.js +1 -1
- package/dist/core/boot-orchestrator.d.ts +4 -4
- package/dist/core/boot-orchestrator.js +27 -27
- package/dist/core/bridge.mjs +22 -22
- package/dist/core/codex-formatter.js +2 -2
- package/dist/core/codex-injector.d.ts +4 -3
- package/dist/core/codex-injector.js +11 -10
- package/dist/core/config-loader.d.ts +5 -4
- package/dist/core/config-loader.js +4 -2
- package/dist/core/config-paths.d.ts +9 -8
- package/dist/core/config-paths.js +24 -23
- package/dist/core/context-loader.d.ts +4 -3
- package/dist/core/context-loader.js +7 -5
- package/dist/core/features-config.js +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/orchestrator.d.ts +1 -0
- package/dist/core/orchestrator.js +3 -2
- package/dist/core/system-prompt-generator.js +2 -2
- package/dist/core/xray-activation.d.ts +4 -4
- package/dist/core/xray-activation.js +29 -24
- package/dist/delegation/agent-delegator.d.ts +3 -3
- package/dist/delegation/agent-delegator.js +3 -3
- package/dist/delegation/metrics-aggregator.d.ts +11 -11
- package/dist/delegation/session-coordinator.d.ts +3 -3
- package/dist/delegation/voting-coordinator.d.ts +3 -3
- package/dist/enforcement/enforcer-tools.js +2 -2
- package/dist/enforcement/loaders/codex-loader.d.ts +1 -1
- package/dist/enforcement/loaders/codex-loader.js +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -6
- package/dist/inference/deploy-verifier.js +1 -1
- package/dist/inference/inference-cycle.js +7 -7
- package/dist/integrations/base/README.md +2 -2
- package/dist/integrations/governance/index.js +1 -1
- package/dist/integrations/grok/grok-cli.d.ts +1 -1
- package/dist/integrations/grok/grok-cli.js +6 -6
- package/dist/integrations/grok/hooks/pre-tool-use.js +1 -1
- package/dist/integrations/grok/plugin/0xray/.mcp.json +3 -3
- package/dist/integrations/grok/plugin/0xray/hooks/hooks.json +2 -2
- package/dist/integrations/hermes-agent/__init__.py +77 -71
- 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/after-install.md +14 -14
- package/dist/integrations/hermes-agent/bridge.mjs +14 -14
- package/dist/integrations/hermes-agent/logs/framework/routing-outcomes.json +1 -0
- package/dist/integrations/hermes-agent/plugin.yaml +5 -5
- package/dist/integrations/hermes-agent/schemas.py +12 -12
- package/dist/integrations/hermes-agent/test_plugin.py +128 -125
- package/dist/integrations/hermes-agent/tools.py +85 -23
- package/dist/integrations/openclaw/README.md +16 -16
- package/dist/integrations/openclaw/api-server.d.ts +4 -4
- package/dist/integrations/openclaw/api-server.js +9 -9
- package/dist/integrations/openclaw/config.js +1 -1
- package/dist/integrations/openclaw/hooks/{strray-hooks.d.ts → xray-hooks.d.ts} +4 -4
- package/dist/integrations/openclaw/index.d.ts +4 -4
- package/dist/integrations/openclaw/index.js +4 -4
- package/dist/integrations/openclaw/types.d.ts +1 -1
- package/dist/integrations/plugins/plugin-registry.js +2 -2
- package/dist/mcps/architect-tools.server.d.ts +2 -2
- package/dist/mcps/architect-tools.server.js +4 -4
- package/dist/mcps/auto-format.server.d.ts +2 -2
- package/dist/mcps/auto-format.server.js +4 -4
- package/dist/mcps/boot-orchestrator.server.d.ts +2 -2
- package/dist/mcps/boot-orchestrator.server.js +4 -4
- package/dist/mcps/config/server-config-registry.d.ts +1 -1
- package/dist/mcps/config/server-config-registry.js +7 -7
- package/dist/mcps/connection/mcp-connection.js +1 -1
- package/dist/mcps/enforcer-tools.server.d.ts +2 -2
- package/dist/mcps/enforcer-tools.server.js +4 -4
- package/dist/mcps/estimation.server.js +1 -1
- package/dist/mcps/framework-compliance-audit.server.d.ts +2 -2
- package/dist/mcps/framework-compliance-audit.server.js +4 -4
- package/dist/mcps/framework-help.server.js +7 -7
- package/dist/mcps/governance.server.js +1 -1
- package/dist/mcps/in-process-skill-registry.js +6 -6
- package/dist/mcps/knowledge-skills/api-design.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/api-design.server.js +4 -4
- package/dist/mcps/knowledge-skills/architecture-patterns.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/architecture-patterns.server.js +4 -4
- package/dist/mcps/knowledge-skills/bug-triage-specialist.server.js +1 -1
- package/dist/mcps/knowledge-skills/code-analyzer.server.js +1 -1
- package/dist/mcps/knowledge-skills/code-review.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/code-review.server.js +4 -4
- package/dist/mcps/knowledge-skills/content-creator.server.js +1 -1
- package/dist/mcps/knowledge-skills/database-design.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/database-design.server.js +4 -4
- package/dist/mcps/knowledge-skills/devops-deployment.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/devops-deployment.server.js +4 -4
- package/dist/mcps/knowledge-skills/git-workflow.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/git-workflow.server.js +4 -4
- package/dist/mcps/knowledge-skills/growth-strategist.server.js +1 -1
- package/dist/mcps/knowledge-skills/log-monitor.server.js +1 -1
- package/dist/mcps/knowledge-skills/mobile-development.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/mobile-development.server.js +4 -4
- package/dist/mcps/knowledge-skills/multimodal-looker.server.js +1 -1
- package/dist/mcps/knowledge-skills/performance-optimization.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/performance-optimization.server.js +4 -4
- package/dist/mcps/knowledge-skills/project-analysis.server.js +1 -1
- package/dist/mcps/knowledge-skills/refactoring-strategies.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/refactoring-strategies.server.js +4 -4
- package/dist/mcps/knowledge-skills/security-audit.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/security-audit.server.js +4 -4
- package/dist/mcps/knowledge-skills/seo-consultant.server.js +1 -1
- package/dist/mcps/knowledge-skills/session-management.server.js +1 -1
- package/dist/mcps/knowledge-skills/skill-invocation.server.js +1 -1
- package/dist/mcps/knowledge-skills/strategist.server.js +1 -1
- package/dist/mcps/knowledge-skills/tech-writer.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/tech-writer.server.js +5 -5
- package/dist/mcps/knowledge-skills/testing-best-practices.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/testing-best-practices.server.js +4 -4
- package/dist/mcps/knowledge-skills/testing-strategy.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/testing-strategy.server.js +4 -4
- package/dist/mcps/knowledge-skills/ui-ux-design.server.d.ts +2 -2
- package/dist/mcps/knowledge-skills/ui-ux-design.server.js +6 -6
- package/dist/mcps/lint.server.d.ts +2 -2
- package/dist/mcps/lint.server.js +6 -6
- package/dist/mcps/mcp-client.js +3 -3
- package/dist/mcps/model-health-check.server.d.ts +2 -2
- package/dist/mcps/model-health-check.server.js +4 -4
- package/dist/mcps/orchestrator/server.js +2 -2
- package/dist/mcps/performance-analysis.server.d.ts +2 -2
- package/dist/mcps/performance-analysis.server.js +4 -4
- package/dist/mcps/processor-pipeline.server.d.ts +2 -2
- package/dist/mcps/processor-pipeline.server.js +4 -4
- package/dist/mcps/registry.json +1 -1
- package/dist/mcps/researcher.server.d.ts +3 -3
- package/dist/mcps/researcher.server.js +5 -5
- package/dist/mcps/security-scan.server.d.ts +2 -2
- package/dist/mcps/security-scan.server.js +4 -4
- package/dist/mcps/simulation/server-simulations.js +3 -3
- package/dist/mcps/state-manager.server.js +1 -1
- package/dist/metrics/agent-metrics.d.ts +4 -4
- package/dist/metrics/agent-metrics.js +1 -1
- package/dist/orchestrator/enhanced-multi-agent-orchestrator.d.ts +2 -2
- package/dist/orchestrator/enhanced-multi-agent-orchestrator.js +2 -2
- package/dist/orchestrator/intelligent-commit-batcher.d.ts +1 -1
- package/dist/orchestrator/intelligent-commit-batcher.js +3 -3
- package/dist/orchestrator/multi-agent-orchestration-coordinator.d.ts +3 -3
- package/dist/orchestrator/multi-agent-orchestration-coordinator.js +9 -9
- package/dist/orchestrator/orchestrator.d.ts +3 -2
- package/dist/orchestrator/orchestrator.js +8 -6
- 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 +8 -7
- package/dist/postprocessor/PostProcessor.d.ts +2 -2
- package/dist/postprocessor/PostProcessor.js +1 -1
- package/dist/postprocessor/monitoring/MonitoringEngine.d.ts +2 -2
- package/dist/postprocessor/services/RegressionAnalysisService.js +2 -2
- package/dist/postprocessor/triggers/GitHookTrigger.js +14 -14
- package/dist/processors/implementations/agents-md-validation-processor.js +2 -2
- package/dist/processors/implementations/inference-improvement-processor.js +2 -2
- package/dist/processors/implementations/log-protection-processor.d.ts +1 -1
- package/dist/processors/implementations/log-protection-processor.js +2 -2
- package/dist/processors/implementations/publish-preflight-processor.d.ts +1 -1
- package/dist/processors/implementations/publish-preflight-processor.js +3 -3
- package/dist/processors/implementations/regression-testing-processor.js +2 -2
- package/dist/processors/implementations/session-summary-processor.js +2 -2
- package/dist/processors/implementations/storytelling-trigger-processor.js +2 -2
- package/dist/processors/processor-manager.d.ts +2 -2
- package/dist/public/about.html +6 -6
- package/dist/public/enterprise.html +1 -1
- package/dist/public/features.html +2 -2
- package/dist/public/index.html +4 -4
- package/dist/reporting/report-formatter.js +1 -1
- package/dist/scripts/activate-kernel-pipeline.js +2 -2
- package/dist/scripts/pre-command +1 -1
- package/dist/services/inference-tuner.js +2 -2
- package/dist/session/session-cleanup-manager.d.ts +3 -3
- package/dist/session/session-monitor.d.ts +3 -3
- package/dist/session/session-state-manager.d.ts +3 -3
- package/dist/skills/hermes-agent/SKILL.md +12 -12
- package/dist/skills/registry.json +1 -1
- package/dist/skills/storyteller/SKILL.md +1 -1
- package/dist/skills/xray-orchestrator/SKILL.md +141 -0
- package/dist/skills/xray-orchestrator/index.d.ts +13 -0
- package/dist/skills/xray-orchestrator/index.js +224 -0
- package/dist/state/index.d.ts +2 -1
- package/dist/state/index.js +2 -1
- package/dist/state/state-manager.d.ts +2 -2
- package/dist/state/state-manager.js +5 -4
- package/dist/utils/import-resolver.js +1 -1
- package/dist/utils/path-resolver.js +2 -2
- package/dist/utils/token-manager.js +1 -1
- package/dist/validation/estimation-validator.js +1 -1
- package/package.json +2 -2
- package/scripts/hooks/pre-command +1 -1
- package/scripts/hooks/run-hook.js +2 -2
- package/scripts/node/auto-reflection-generator.mjs +2 -2
- package/scripts/node/postinstall.cjs +1 -1
- package/scripts/node/pre-publish-guard.js +16 -10
- package/scripts/node/release.js +6 -6
- package/scripts/node/release.mjs +11 -11
- package/scripts/node/universal-version-manager.js +2 -2
- package/scripts/node/version-manager.mjs +1 -1
- package/src/integrations/grok/plugin/0xray/.mcp.json +3 -3
- package/src/integrations/grok/plugin/0xray/hooks/hooks.json +2 -2
- package/src/mcps/architect-tools.server.ts +4 -4
- package/src/mcps/auto-format.server.ts +4 -4
- package/src/mcps/boot-orchestrator.server.ts +4 -4
- package/src/mcps/config/server-config-registry.ts +7 -7
- package/src/mcps/connection/mcp-connection.ts +1 -1
- package/src/mcps/enforcer-tools.server.ts +4 -4
- package/src/mcps/estimation.server.ts +1 -1
- package/src/mcps/framework-compliance-audit.server.ts +4 -4
- package/src/mcps/framework-help.server.ts +7 -7
- package/src/mcps/governance.server.ts +1 -1
- package/src/mcps/in-process-skill-registry.ts +6 -6
- package/src/mcps/knowledge-skills/api-design.server.test.ts +8 -8
- package/src/mcps/knowledge-skills/api-design.server.ts +4 -4
- package/src/mcps/knowledge-skills/architecture-patterns.server.ts +4 -4
- package/src/mcps/knowledge-skills/bug-triage-specialist.server.ts +1 -1
- package/src/mcps/knowledge-skills/code-analyzer.server.ts +1 -1
- package/src/mcps/knowledge-skills/code-review.server.ts +4 -4
- package/src/mcps/knowledge-skills/content-creator.server.ts +1 -1
- package/src/mcps/knowledge-skills/database-design.server.ts +4 -4
- package/src/mcps/knowledge-skills/devops-deployment.server.ts +4 -4
- package/src/mcps/knowledge-skills/git-workflow.server.ts +4 -4
- package/src/mcps/knowledge-skills/growth-strategist.server.ts +1 -1
- package/src/mcps/knowledge-skills/log-monitor.server.ts +1 -1
- package/src/mcps/knowledge-skills/mobile-development.server.ts +4 -4
- package/src/mcps/knowledge-skills/multimodal-looker.server.ts +1 -1
- package/src/mcps/knowledge-skills/performance-optimization.server.ts +4 -4
- package/src/mcps/knowledge-skills/project-analysis.server.ts +1 -1
- package/src/mcps/knowledge-skills/refactoring-strategies.server.ts +4 -4
- package/src/mcps/knowledge-skills/security-audit.server.test.ts +23 -23
- package/src/mcps/knowledge-skills/security-audit.server.ts +4 -4
- package/src/mcps/knowledge-skills/seo-consultant.server.ts +1 -1
- package/src/mcps/knowledge-skills/session-management.server.ts +1 -1
- package/src/mcps/knowledge-skills/skill-invocation.server.ts +1 -1
- package/src/mcps/knowledge-skills/strategist.server.ts +1 -1
- package/src/mcps/knowledge-skills/tech-writer.server.ts +5 -5
- package/src/mcps/knowledge-skills/testing-best-practices.server.test.ts +28 -28
- package/src/mcps/knowledge-skills/testing-best-practices.server.ts +4 -4
- package/src/mcps/knowledge-skills/testing-strategy.server.test.ts +19 -19
- package/src/mcps/knowledge-skills/testing-strategy.server.ts +4 -4
- package/src/mcps/knowledge-skills/ui-ux-design.server.ts +6 -6
- package/src/mcps/lint.server.ts +6 -6
- package/src/mcps/mcp-client.ts +3 -3
- package/src/mcps/model-health-check.server.ts +4 -4
- package/src/mcps/orchestrator/server.ts +2 -2
- package/src/mcps/performance-analysis.server.ts +4 -4
- package/src/mcps/processor-pipeline.server.ts +4 -4
- package/src/mcps/registry.json +1 -1
- package/src/mcps/researcher.server.ts +5 -5
- package/src/mcps/security-scan.server.ts +4 -4
- package/src/mcps/simulation/server-simulations.ts +3 -3
- package/src/mcps/state-manager.server.ts +1 -1
- 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/hermes-agent/SKILL.md +12 -12
- package/src/skills/registry.json +1 -1
- package/src/skills/storyteller/SKILL.md +1 -1
- package/src/skills/xray-orchestrator/SKILL.md +141 -0
- package/src/skills/xray-orchestrator/index.ts +268 -0
- package/scripts/validate-stringray-comprehensive.js +0 -636
- /package/dist/integrations/openclaw/hooks/{strray-hooks.js → xray-hooks.js} +0 -0
|
@@ -17,7 +17,7 @@ import fs from 'fs';
|
|
|
17
17
|
* Resolve the correct framework root and MCP servers path.
|
|
18
18
|
* Priority:
|
|
19
19
|
* 1. STRRAY_DEV_PATH env var (explicit dev override)
|
|
20
|
-
* 2. The "
|
|
20
|
+
* 2. The "xray" field in the nearest package.json that declares it (works in both source tree and installed package)
|
|
21
21
|
* 3. Safe fallback to node_modules/0xray/dist
|
|
22
22
|
*/
|
|
23
23
|
function resolveFrameworkPaths() {
|
|
@@ -29,7 +29,7 @@ function resolveFrameworkPaths() {
|
|
|
29
29
|
mcpServersPath: join(devPath, 'mcps'),
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
// Walk upward from this module to find the package that owns the "
|
|
32
|
+
// Walk upward from this module to find the package that owns the "xray" config
|
|
33
33
|
let currentDir = dirname(fileURLToPath(import.meta.url));
|
|
34
34
|
// Safety limit to avoid walking the entire filesystem
|
|
35
35
|
const MAX_LEVELS = 12;
|
|
@@ -38,10 +38,10 @@ function resolveFrameworkPaths() {
|
|
|
38
38
|
if (fs.existsSync(pkgPath)) {
|
|
39
39
|
try {
|
|
40
40
|
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
|
|
41
|
-
if (pkg.name === '0xray' && pkg.
|
|
42
|
-
const
|
|
41
|
+
if (pkg.name === '0xray' && pkg.xray) {
|
|
42
|
+
const xrayCfg = pkg.xray;
|
|
43
43
|
const frameworkRoot = currentDir;
|
|
44
|
-
const declaredMcp =
|
|
44
|
+
const declaredMcp = xrayCfg.mcpServersPath || (xrayCfg.dist ? join(xrayCfg.dist, 'mcps') : 'dist/mcps');
|
|
45
45
|
return {
|
|
46
46
|
frameworkRoot,
|
|
47
47
|
mcpServersPath: join(frameworkRoot, declaredMcp),
|
|
@@ -60,7 +60,7 @@ function resolveFrameworkPaths() {
|
|
|
60
60
|
// Final fallback (should almost never be reached)
|
|
61
61
|
const fallback = 'node_modules/0xray/dist';
|
|
62
62
|
frameworkLogger.log('server-config-registry', 'using-fallback-path', 'warning', {
|
|
63
|
-
reason: 'Could not locate
|
|
63
|
+
reason: 'Could not locate xray package.json with "xray" field',
|
|
64
64
|
fallback,
|
|
65
65
|
});
|
|
66
66
|
return {
|
|
@@ -323,7 +323,7 @@ export class ServerConfigRegistry {
|
|
|
323
323
|
/**
|
|
324
324
|
* Create a dynamic configuration for an unknown server
|
|
325
325
|
* Uses the knowledge-skills directory as default location.
|
|
326
|
-
|
|
326
|
+
* Now respects the "xray" field declared in package.json.
|
|
327
327
|
*/
|
|
328
328
|
createDynamicConfig(serverName) {
|
|
329
329
|
// Validate serverName against path traversal attacks
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Converts enforcer-tools.ts functions into MCP server tools
|
|
5
5
|
* Provides rule enforcement and validation capabilities via MCP protocol
|
|
6
6
|
*/
|
|
7
|
-
declare class
|
|
7
|
+
declare class XrayEnforcerToolsServer {
|
|
8
8
|
private server;
|
|
9
9
|
constructor();
|
|
10
10
|
private setupToolHandlers;
|
|
@@ -24,4 +24,4 @@ declare class StringRayEnforcerToolsServer {
|
|
|
24
24
|
run(): Promise<void>;
|
|
25
25
|
private securityScan;
|
|
26
26
|
}
|
|
27
|
-
export default
|
|
27
|
+
export default XrayEnforcerToolsServer;
|
|
@@ -12,11 +12,11 @@ import { frameworkLogger } from "../core/framework-logger.js";
|
|
|
12
12
|
import { getCodexPolicyService } from "../governance/codex-policy.service.js";
|
|
13
13
|
// Import actual enforcer-tools functions
|
|
14
14
|
import { ruleValidation as runRuleValidation } from "../enforcement/enforcer-tools.js";
|
|
15
|
-
class
|
|
15
|
+
class XrayEnforcerToolsServer {
|
|
16
16
|
server;
|
|
17
17
|
constructor() {
|
|
18
18
|
this.server = new Server({
|
|
19
|
-
name: "enforcer", version: "2.0.
|
|
19
|
+
name: "enforcer", version: "2.0.1",
|
|
20
20
|
}, {
|
|
21
21
|
capabilities: {
|
|
22
22
|
tools: {},
|
|
@@ -772,7 +772,7 @@ class StringRayEnforcerToolsServer {
|
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
774
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
775
|
-
const server = new
|
|
775
|
+
const server = new XrayEnforcerToolsServer();
|
|
776
776
|
server.run().catch((error) => frameworkLogger.log("mcps/enforcer", "run", "error", { error: String(error) }));
|
|
777
777
|
}
|
|
778
|
-
export default
|
|
778
|
+
export default XrayEnforcerToolsServer;
|
|
@@ -17,7 +17,7 @@ class EstimationServer {
|
|
|
17
17
|
validator = getEstimationValidator();
|
|
18
18
|
constructor() {
|
|
19
19
|
this.server = new Server({
|
|
20
|
-
name: "estimation-validator", version: "2.0.
|
|
20
|
+
name: "estimation-validator", version: "2.0.1",
|
|
21
21
|
}, {
|
|
22
22
|
capabilities: { tools: {} },
|
|
23
23
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Comprehensive validation of all framework components and Universal Development Codex compliance
|
|
5
5
|
*/
|
|
6
|
-
declare class
|
|
6
|
+
declare class XrayFrameworkComplianceAuditServer {
|
|
7
7
|
private server;
|
|
8
8
|
constructor();
|
|
9
9
|
private setupToolHandlers;
|
|
@@ -19,4 +19,4 @@ declare class StringRayFrameworkComplianceAuditServer {
|
|
|
19
19
|
private getDetailedFindings;
|
|
20
20
|
run(): Promise<void>;
|
|
21
21
|
}
|
|
22
|
-
export {
|
|
22
|
+
export { XrayFrameworkComplianceAuditServer };
|
|
@@ -8,11 +8,11 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
|
|
|
8
8
|
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
9
9
|
import fs from "fs";
|
|
10
10
|
import { frameworkLogger } from "../core/framework-logger.js";
|
|
11
|
-
class
|
|
11
|
+
class XrayFrameworkComplianceAuditServer {
|
|
12
12
|
server;
|
|
13
13
|
constructor() {
|
|
14
14
|
this.server = new Server({
|
|
15
|
-
name: "framework-compliance-audit", version: "2.0.
|
|
15
|
+
name: "framework-compliance-audit", version: "2.0.1",
|
|
16
16
|
}, {
|
|
17
17
|
capabilities: {
|
|
18
18
|
tools: {},
|
|
@@ -494,7 +494,7 @@ ${results.recommendations.map((r) => `• 💡 ${r}`).join("\n")}
|
|
|
494
494
|
}
|
|
495
495
|
// Start the server if run directly
|
|
496
496
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
497
|
-
const server = new
|
|
497
|
+
const server = new XrayFrameworkComplianceAuditServer();
|
|
498
498
|
server.run().catch((error) => frameworkLogger.log("mcps/framework-compliance-audit", "run", "error", { error: String(error) }));
|
|
499
499
|
}
|
|
500
|
-
export {
|
|
500
|
+
export { XrayFrameworkComplianceAuditServer };
|
|
@@ -7,7 +7,7 @@ class FrameworkHelpServer {
|
|
|
7
7
|
server;
|
|
8
8
|
constructor() {
|
|
9
9
|
this.server = new Server({
|
|
10
|
-
name: "xray/framework-help", version: "2.0.
|
|
10
|
+
name: "xray/framework-help", version: "2.0.1",
|
|
11
11
|
}, {
|
|
12
12
|
capabilities: {
|
|
13
13
|
tools: {},
|
|
@@ -21,7 +21,7 @@ class FrameworkHelpServer {
|
|
|
21
21
|
return {
|
|
22
22
|
tools: [
|
|
23
23
|
{
|
|
24
|
-
name: "
|
|
24
|
+
name: "xray_get_capabilities",
|
|
25
25
|
description: "Get comprehensive list of all 0xRay framework capabilities, commands, and available tools",
|
|
26
26
|
inputSchema: {
|
|
27
27
|
type: "object",
|
|
@@ -43,7 +43,7 @@ class FrameworkHelpServer {
|
|
|
43
43
|
},
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
name: "
|
|
46
|
+
name: "xray_get_commands",
|
|
47
47
|
description: "Get list of available 0xRay commands and their usage",
|
|
48
48
|
inputSchema: {
|
|
49
49
|
type: "object",
|
|
@@ -63,7 +63,7 @@ class FrameworkHelpServer {
|
|
|
63
63
|
},
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
name: "
|
|
66
|
+
name: "xray_explain_capability",
|
|
67
67
|
description: "Get detailed explanation of a specific 0xRay capability",
|
|
68
68
|
inputSchema: {
|
|
69
69
|
type: "object",
|
|
@@ -84,11 +84,11 @@ class FrameworkHelpServer {
|
|
|
84
84
|
const { name, arguments: args } = request.params;
|
|
85
85
|
try {
|
|
86
86
|
switch (name) {
|
|
87
|
-
case "
|
|
87
|
+
case "xray_get_capabilities":
|
|
88
88
|
return this.handleGetCapabilities(args);
|
|
89
|
-
case "
|
|
89
|
+
case "xray_get_commands":
|
|
90
90
|
return this.handleGetCommands(args);
|
|
91
|
-
case "
|
|
91
|
+
case "xray_explain_capability":
|
|
92
92
|
return this.handleExplainCapability(args);
|
|
93
93
|
default:
|
|
94
94
|
throw new McpError(ErrorCode.MethodNotFound, `Unknown tool: ${name}`);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { XrayCodeReviewServer } from "./knowledge-skills/code-review.server.js";
|
|
2
|
+
import { XraySecurityAuditServer } from "./knowledge-skills/security-audit.server.js";
|
|
3
|
+
import { XrayLibrarianServer } from "./researcher.server.js";
|
|
4
4
|
const instances = new Map();
|
|
5
5
|
function getCodeReview() {
|
|
6
6
|
if (!instances.has("code-review")) {
|
|
7
|
-
const server = new
|
|
7
|
+
const server = new XrayCodeReviewServer();
|
|
8
8
|
instances.set("code-review", {
|
|
9
9
|
analyzeProposal: (args) => server.analyzeProposal(args),
|
|
10
10
|
});
|
|
@@ -13,7 +13,7 @@ function getCodeReview() {
|
|
|
13
13
|
}
|
|
14
14
|
function getSecurityAudit() {
|
|
15
15
|
if (!instances.has("security-audit")) {
|
|
16
|
-
const server = new
|
|
16
|
+
const server = new XraySecurityAuditServer();
|
|
17
17
|
instances.set("security-audit", {
|
|
18
18
|
analyzeProposal: (args) => server.analyzeProposal(args),
|
|
19
19
|
});
|
|
@@ -22,7 +22,7 @@ function getSecurityAudit() {
|
|
|
22
22
|
}
|
|
23
23
|
function getResearcher() {
|
|
24
24
|
if (!instances.has("researcher")) {
|
|
25
|
-
const server = new
|
|
25
|
+
const server = new XrayLibrarianServer();
|
|
26
26
|
instances.set("researcher", {
|
|
27
27
|
analyzeProposal: (args) => server.analyzeProposal(args),
|
|
28
28
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Knowledge skill for API design patterns, RESTful conventions,
|
|
5
5
|
* GraphQL schema design, and API documentation standards
|
|
6
6
|
*/
|
|
7
|
-
declare class
|
|
7
|
+
declare class XrayApiDesignServer {
|
|
8
8
|
private server;
|
|
9
9
|
constructor();
|
|
10
10
|
private setupToolHandlers;
|
|
@@ -12,4 +12,4 @@ declare class StringRayApiDesignServer {
|
|
|
12
12
|
private validateApiDesign;
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
15
|
-
export default
|
|
15
|
+
export default XrayApiDesignServer;
|
|
@@ -8,11 +8,11 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
|
8
8
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
9
9
|
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
10
10
|
import { createGracefulShutdown } from "../../utils/shutdown-handler.js";
|
|
11
|
-
class
|
|
11
|
+
class XrayApiDesignServer {
|
|
12
12
|
server;
|
|
13
13
|
constructor() {
|
|
14
14
|
this.server = new Server({
|
|
15
|
-
name: "api-design", version: "2.0.
|
|
15
|
+
name: "api-design", version: "2.0.1",
|
|
16
16
|
}, {
|
|
17
17
|
capabilities: {
|
|
18
18
|
tools: {},
|
|
@@ -117,7 +117,7 @@ class StringRayApiDesignServer {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
120
|
-
const server = new
|
|
120
|
+
const server = new XrayApiDesignServer();
|
|
121
121
|
server.run().catch(() => { });
|
|
122
122
|
}
|
|
123
|
-
export default
|
|
123
|
+
export default XrayApiDesignServer;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Knowledge skill for architectural pattern recognition,
|
|
5
5
|
* design pattern recommendations, and system architecture guidance
|
|
6
6
|
*/
|
|
7
|
-
declare class
|
|
7
|
+
declare class XrayArchitecturePatternsServer {
|
|
8
8
|
private server;
|
|
9
9
|
constructor();
|
|
10
10
|
private setupToolHandlers;
|
|
@@ -12,4 +12,4 @@ declare class StringRayArchitecturePatternsServer {
|
|
|
12
12
|
private recommendPatterns;
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
15
|
-
export default
|
|
15
|
+
export default XrayArchitecturePatternsServer;
|
|
@@ -8,11 +8,11 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
|
8
8
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
9
9
|
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
10
10
|
import { createGracefulShutdown } from "../../utils/shutdown-handler.js";
|
|
11
|
-
class
|
|
11
|
+
class XrayArchitecturePatternsServer {
|
|
12
12
|
server;
|
|
13
13
|
constructor() {
|
|
14
14
|
this.server = new Server({
|
|
15
|
-
name: "architecture-patterns", version: "2.0.
|
|
15
|
+
name: "architecture-patterns", version: "2.0.1",
|
|
16
16
|
}, {
|
|
17
17
|
capabilities: {
|
|
18
18
|
tools: {},
|
|
@@ -107,7 +107,7 @@ class StringRayArchitecturePatternsServer {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
110
|
-
const server = new
|
|
110
|
+
const server = new XrayArchitecturePatternsServer();
|
|
111
111
|
server.run().catch(() => { });
|
|
112
112
|
}
|
|
113
|
-
export default
|
|
113
|
+
export default XrayArchitecturePatternsServer;
|
|
@@ -13,7 +13,7 @@ import { fileURLToPath } from "url";
|
|
|
13
13
|
class BugTriageSpecialistServer {
|
|
14
14
|
server;
|
|
15
15
|
constructor() {
|
|
16
|
-
this.server = new Server({ name: "bug-triage-specialist", version: "2.0.
|
|
16
|
+
this.server = new Server({ name: "bug-triage-specialist", version: "2.0.1" }, { capabilities: { tools: {} } });
|
|
17
17
|
this.setupToolHandlers();
|
|
18
18
|
}
|
|
19
19
|
setupToolHandlers() {
|
|
@@ -242,7 +242,7 @@ class CodeAnalyzerServer {
|
|
|
242
242
|
},
|
|
243
243
|
];
|
|
244
244
|
constructor() {
|
|
245
|
-
this.server = new Server({ name: "code-analyzer", version: "2.0.
|
|
245
|
+
this.server = new Server({ name: "code-analyzer", version: "2.0.1" }, { capabilities: { tools: {} } });
|
|
246
246
|
this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
247
247
|
tools: this.tools,
|
|
248
248
|
}));
|
|
@@ -10,7 +10,7 @@ interface AnalyzeProposalArgs {
|
|
|
10
10
|
evidence?: string[];
|
|
11
11
|
proposalType?: string;
|
|
12
12
|
}
|
|
13
|
-
declare class
|
|
13
|
+
declare class XrayCodeReviewServer {
|
|
14
14
|
private server;
|
|
15
15
|
constructor();
|
|
16
16
|
private setupToolHandlers;
|
|
@@ -43,4 +43,4 @@ declare class StringRayCodeReviewServer {
|
|
|
43
43
|
private calculateComplianceScore;
|
|
44
44
|
run(): Promise<void>;
|
|
45
45
|
}
|
|
46
|
-
export {
|
|
46
|
+
export { XrayCodeReviewServer };
|
|
@@ -10,11 +10,11 @@ import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextpro
|
|
|
10
10
|
import * as fs from "fs";
|
|
11
11
|
import * as path from "path";
|
|
12
12
|
import { createGracefulShutdown } from "../../utils/shutdown-handler.js";
|
|
13
|
-
class
|
|
13
|
+
class XrayCodeReviewServer {
|
|
14
14
|
server;
|
|
15
15
|
constructor() {
|
|
16
16
|
this.server = new Server({
|
|
17
|
-
name: "code-review", version: "2.0.
|
|
17
|
+
name: "code-review", version: "2.0.1",
|
|
18
18
|
}, {
|
|
19
19
|
capabilities: {
|
|
20
20
|
tools: {},
|
|
@@ -841,7 +841,7 @@ class StringRayCodeReviewServer {
|
|
|
841
841
|
}
|
|
842
842
|
// Run the server if this file is executed directly
|
|
843
843
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
844
|
-
const server = new
|
|
844
|
+
const server = new XrayCodeReviewServer();
|
|
845
845
|
server.run().catch(() => { });
|
|
846
846
|
}
|
|
847
|
-
export {
|
|
847
|
+
export { XrayCodeReviewServer };
|
|
@@ -86,7 +86,7 @@ class SEOCopywriterServer {
|
|
|
86
86
|
},
|
|
87
87
|
];
|
|
88
88
|
constructor() {
|
|
89
|
-
this.server = new Server({ name: "content-creator", version: "2.0.
|
|
89
|
+
this.server = new Server({ name: "content-creator", version: "2.0.1" }, { capabilities: { tools: {} } });
|
|
90
90
|
this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
91
91
|
tools: this.tools,
|
|
92
92
|
}));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Knowledge skill for database architecture, schema optimization,
|
|
5
5
|
* query performance analysis, and data modeling best practices
|
|
6
6
|
*/
|
|
7
|
-
declare class
|
|
7
|
+
declare class XrayDatabaseDesignServer {
|
|
8
8
|
private server;
|
|
9
9
|
constructor();
|
|
10
10
|
private setupToolHandlers;
|
|
@@ -40,4 +40,4 @@ declare class StringRayDatabaseDesignServer {
|
|
|
40
40
|
private getIssueSeverityIcon;
|
|
41
41
|
run(): Promise<void>;
|
|
42
42
|
}
|
|
43
|
-
export {
|
|
43
|
+
export { XrayDatabaseDesignServer };
|
|
@@ -10,11 +10,11 @@ import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextpro
|
|
|
10
10
|
import * as fs from "fs";
|
|
11
11
|
import * as path from "path";
|
|
12
12
|
import { createGracefulShutdown } from "../../utils/shutdown-handler.js";
|
|
13
|
-
class
|
|
13
|
+
class XrayDatabaseDesignServer {
|
|
14
14
|
server;
|
|
15
15
|
constructor() {
|
|
16
16
|
this.server = new Server({
|
|
17
|
-
name: "database-design", version: "2.0.
|
|
17
|
+
name: "database-design", version: "2.0.1",
|
|
18
18
|
}, {
|
|
19
19
|
capabilities: {
|
|
20
20
|
tools: {},
|
|
@@ -816,7 +816,7 @@ class StringRayDatabaseDesignServer {
|
|
|
816
816
|
}
|
|
817
817
|
// Run the server if this file is executed directly
|
|
818
818
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
819
|
-
const server = new
|
|
819
|
+
const server = new XrayDatabaseDesignServer();
|
|
820
820
|
server.run().catch(() => { });
|
|
821
821
|
}
|
|
822
|
-
export {
|
|
822
|
+
export { XrayDatabaseDesignServer };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Knowledge skill for DevOps practices, deployment strategies,
|
|
5
5
|
* CI/CD pipeline design, and infrastructure automation
|
|
6
6
|
*/
|
|
7
|
-
declare class
|
|
7
|
+
declare class XrayDevOpsDeploymentServer {
|
|
8
8
|
private server;
|
|
9
9
|
constructor();
|
|
10
10
|
private setupToolHandlers;
|
|
@@ -40,4 +40,4 @@ declare class StringRayDevOpsDeploymentServer {
|
|
|
40
40
|
private getInfrastructureLanguage;
|
|
41
41
|
run(): Promise<void>;
|
|
42
42
|
}
|
|
43
|
-
export {
|
|
43
|
+
export { XrayDevOpsDeploymentServer };
|
|
@@ -8,11 +8,11 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
|
8
8
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
9
9
|
import { createGracefulShutdown } from "../../utils/shutdown-handler.js";
|
|
10
10
|
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
11
|
-
class
|
|
11
|
+
class XrayDevOpsDeploymentServer {
|
|
12
12
|
server;
|
|
13
13
|
constructor() {
|
|
14
14
|
this.server = new Server({
|
|
15
|
-
name: "devops-deployment", version: "2.0.
|
|
15
|
+
name: "devops-deployment", version: "2.0.1",
|
|
16
16
|
}, {
|
|
17
17
|
capabilities: {
|
|
18
18
|
tools: {},
|
|
@@ -1174,7 +1174,7 @@ spec:
|
|
|
1174
1174
|
}
|
|
1175
1175
|
// Run the server if this file is executed directly
|
|
1176
1176
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
1177
|
-
const server = new
|
|
1177
|
+
const server = new XrayDevOpsDeploymentServer();
|
|
1178
1178
|
server.run().catch(() => { });
|
|
1179
1179
|
}
|
|
1180
|
-
export {
|
|
1180
|
+
export { XrayDevOpsDeploymentServer };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Knowledge skill for version control strategies, branching models,
|
|
5
5
|
* and collaborative development workflows
|
|
6
6
|
*/
|
|
7
|
-
declare class
|
|
7
|
+
declare class XrayGitWorkflowServer {
|
|
8
8
|
private server;
|
|
9
9
|
constructor();
|
|
10
10
|
private setupToolHandlers;
|
|
@@ -12,4 +12,4 @@ declare class StringRayGitWorkflowServer {
|
|
|
12
12
|
private recommendBranchingStrategy;
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
15
|
-
export default
|
|
15
|
+
export default XrayGitWorkflowServer;
|
|
@@ -8,11 +8,11 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
|
8
8
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
9
9
|
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
10
10
|
import { createGracefulShutdown } from "../../utils/shutdown-handler.js";
|
|
11
|
-
class
|
|
11
|
+
class XrayGitWorkflowServer {
|
|
12
12
|
server;
|
|
13
13
|
constructor() {
|
|
14
14
|
this.server = new Server({
|
|
15
|
-
name: "git-workflow", version: "2.0.
|
|
15
|
+
name: "git-workflow", version: "2.0.1",
|
|
16
16
|
}, {
|
|
17
17
|
capabilities: {
|
|
18
18
|
tools: {},
|
|
@@ -109,7 +109,7 @@ class StringRayGitWorkflowServer {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
112
|
-
const server = new
|
|
112
|
+
const server = new XrayGitWorkflowServer();
|
|
113
113
|
server.run().catch(() => { });
|
|
114
114
|
}
|
|
115
|
-
export default
|
|
115
|
+
export default XrayGitWorkflowServer;
|
|
@@ -93,7 +93,7 @@ class MarketingExpertServer {
|
|
|
93
93
|
},
|
|
94
94
|
];
|
|
95
95
|
constructor() {
|
|
96
|
-
this.server = new Server({ name: "growth-strategist", version: "2.0.
|
|
96
|
+
this.server = new Server({ name: "growth-strategist", version: "2.0.1" }, { capabilities: { tools: {} } });
|
|
97
97
|
this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
98
98
|
tools: this.tools,
|
|
99
99
|
}));
|
|
@@ -60,7 +60,7 @@ class LogMonitorServer {
|
|
|
60
60
|
},
|
|
61
61
|
];
|
|
62
62
|
constructor() {
|
|
63
|
-
this.server = new Server({ name: "log-monitor", version: "2.0.
|
|
63
|
+
this.server = new Server({ name: "log-monitor", version: "2.0.1" }, { capabilities: { tools: {} } });
|
|
64
64
|
this.setupToolHandlers();
|
|
65
65
|
}
|
|
66
66
|
setupToolHandlers() {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Knowledge skill for mobile app development including iOS, Android,
|
|
5
5
|
* React Native, Flutter, and mobile performance optimization
|
|
6
6
|
*/
|
|
7
|
-
declare class
|
|
7
|
+
declare class XrayMobileDevelopmentServer {
|
|
8
8
|
private server;
|
|
9
9
|
constructor();
|
|
10
10
|
private setupToolHandlers;
|
|
@@ -16,4 +16,4 @@ declare class StringRayMobileDevelopmentServer {
|
|
|
16
16
|
private generateAppStoreMetadata;
|
|
17
17
|
start(): Promise<void>;
|
|
18
18
|
}
|
|
19
|
-
export {
|
|
19
|
+
export { XrayMobileDevelopmentServer };
|
|
@@ -9,11 +9,11 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
|
|
|
9
9
|
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
10
10
|
import * as path from "path";
|
|
11
11
|
import { fileURLToPath } from "url";
|
|
12
|
-
class
|
|
12
|
+
class XrayMobileDevelopmentServer {
|
|
13
13
|
server;
|
|
14
14
|
constructor() {
|
|
15
15
|
this.server = new Server({
|
|
16
|
-
name: "mobile-development", version: "2.0.
|
|
16
|
+
name: "mobile-development", version: "2.0.1",
|
|
17
17
|
}, {
|
|
18
18
|
capabilities: {
|
|
19
19
|
tools: {},
|
|
@@ -519,7 +519,7 @@ class HomePage extends StatelessWidget {
|
|
|
519
519
|
}
|
|
520
520
|
const entryPoint = path.resolve(process.argv[1] ?? "");
|
|
521
521
|
if (entryPoint && fileURLToPath(import.meta.url) === entryPoint) {
|
|
522
|
-
const server = new
|
|
522
|
+
const server = new XrayMobileDevelopmentServer();
|
|
523
523
|
server.start().catch(() => { });
|
|
524
524
|
}
|
|
525
|
-
export {
|
|
525
|
+
export { XrayMobileDevelopmentServer };
|
|
@@ -19,7 +19,7 @@ import { frameworkLogger } from "../../core/framework-logger.js";
|
|
|
19
19
|
class MultimodalLookerServer {
|
|
20
20
|
server;
|
|
21
21
|
constructor() {
|
|
22
|
-
this.server = new Server({ name: "multimodal-looker", version: "2.0.
|
|
22
|
+
this.server = new Server({ name: "multimodal-looker", version: "2.0.1" }, { capabilities: { tools: {} } });
|
|
23
23
|
this.setupToolHandlers();
|
|
24
24
|
}
|
|
25
25
|
/* --------------------------------------------------------------------------
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Knowledge skill for performance analysis, optimization recommendations,
|
|
5
5
|
* profiling, benchmarking, memory analysis, and Core Web Vitals measurement
|
|
6
6
|
*/
|
|
7
|
-
declare class
|
|
7
|
+
declare class XrayPerformanceOptimizationServer {
|
|
8
8
|
private server;
|
|
9
9
|
private startTime;
|
|
10
10
|
constructor();
|
|
@@ -69,4 +69,4 @@ declare class StringRayPerformanceOptimizationServer {
|
|
|
69
69
|
private findCodeFiles;
|
|
70
70
|
run(): Promise<void>;
|
|
71
71
|
}
|
|
72
|
-
export {
|
|
72
|
+
export { XrayPerformanceOptimizationServer };
|
|
@@ -11,12 +11,12 @@ import { frameworkLogger, generateJobId } from "../../core/framework-logger.js";
|
|
|
11
11
|
import { createGracefulShutdown } from "../../utils/shutdown-handler.js";
|
|
12
12
|
import fs from "fs";
|
|
13
13
|
import path from "path";
|
|
14
|
-
class
|
|
14
|
+
class XrayPerformanceOptimizationServer {
|
|
15
15
|
server;
|
|
16
16
|
startTime;
|
|
17
17
|
constructor() {
|
|
18
18
|
this.server = new Server({
|
|
19
|
-
name: "performance-optimization", version: "2.0.
|
|
19
|
+
name: "performance-optimization", version: "2.0.1",
|
|
20
20
|
}, {
|
|
21
21
|
capabilities: {
|
|
22
22
|
tools: {},
|
|
@@ -1579,9 +1579,9 @@ ${result.recommendations.slice(0, 5).map((r, i) => `${i + 1}. ${r}`).join("\n")
|
|
|
1579
1579
|
}
|
|
1580
1580
|
}
|
|
1581
1581
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
1582
|
-
const server = new
|
|
1582
|
+
const server = new XrayPerformanceOptimizationServer();
|
|
1583
1583
|
server.run().catch((error) => {
|
|
1584
1584
|
frameworkLogger.log("mcp/performance-optimization", "run", "error", { error: String(error) });
|
|
1585
1585
|
});
|
|
1586
1586
|
}
|
|
1587
|
-
export {
|
|
1587
|
+
export { XrayPerformanceOptimizationServer };
|