@syke1/mcp-server 1.1.9 → 1.2.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/dist/index.d.ts CHANGED
@@ -1,2 +1,41 @@
1
1
  #!/usr/bin/env node
2
- export {};
2
+ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
3
+ /**
4
+ * Smithery sandbox server — returns a lightweight MCP server for tool/capability scanning.
5
+ * No project root, license, or file cache needed.
6
+ * See: https://smithery.ai/docs/deploy#sandbox-server
7
+ */
8
+ export declare function createSandboxServer(): Server<{
9
+ method: string;
10
+ params?: {
11
+ [x: string]: unknown;
12
+ _meta?: {
13
+ [x: string]: unknown;
14
+ progressToken?: string | number | undefined;
15
+ "io.modelcontextprotocol/related-task"?: {
16
+ taskId: string;
17
+ } | undefined;
18
+ } | undefined;
19
+ } | undefined;
20
+ }, {
21
+ method: string;
22
+ params?: {
23
+ [x: string]: unknown;
24
+ _meta?: {
25
+ [x: string]: unknown;
26
+ progressToken?: string | number | undefined;
27
+ "io.modelcontextprotocol/related-task"?: {
28
+ taskId: string;
29
+ } | undefined;
30
+ } | undefined;
31
+ } | undefined;
32
+ }, {
33
+ [x: string]: unknown;
34
+ _meta?: {
35
+ [x: string]: unknown;
36
+ progressToken?: string | number | undefined;
37
+ "io.modelcontextprotocol/related-task"?: {
38
+ taskId: string;
39
+ } | undefined;
40
+ } | undefined;
41
+ }>;
package/dist/index.js CHANGED
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.createSandboxServer = createSandboxServer;
37
38
  // Silence dotenv stdout output (v17+ writes to stdout, corrupting MCP stdio protocol)
38
39
  const origStdoutWrite = process.stdout.write.bind(process.stdout);
39
40
  process.stdout.write = (() => true);
@@ -537,3 +538,59 @@ main().catch((err) => {
537
538
  console.error("[syke] Fatal error:", err);
538
539
  process.exit(1);
539
540
  });
541
+ /**
542
+ * Smithery sandbox server — returns a lightweight MCP server for tool/capability scanning.
543
+ * No project root, license, or file cache needed.
544
+ * See: https://smithery.ai/docs/deploy#sandbox-server
545
+ */
546
+ function createSandboxServer() {
547
+ const sandboxServer = new index_js_1.Server({ name: "syke", version: "0.4.0" }, { capabilities: { tools: {} } });
548
+ sandboxServer.setRequestHandler(types_js_1.ListToolsRequestSchema, async () => ({
549
+ tools: [
550
+ {
551
+ name: "gate_build",
552
+ description: "MANDATORY: Call this BEFORE any build, deploy, or test command. Returns PASS, WARN, or FAIL verdict.",
553
+ inputSchema: { type: "object", properties: { files: { type: "array", items: { type: "string" }, description: "Files that were modified" } }, required: ["files"] },
554
+ },
555
+ {
556
+ name: "analyze_impact",
557
+ description: "Shows direct and transitive dependents when a file is modified.",
558
+ inputSchema: { type: "object", properties: { file: { type: "string", description: "File to analyze" } }, required: ["file"] },
559
+ },
560
+ {
561
+ name: "check_safe",
562
+ description: "Quick safety verdict: HIGH/MEDIUM/LOW/NONE risk.",
563
+ inputSchema: { type: "object", properties: { file: { type: "string", description: "File to check" } }, required: ["file"] },
564
+ },
565
+ {
566
+ name: "get_dependencies",
567
+ description: "Lists internal imports (forward dependencies) of a file.",
568
+ inputSchema: { type: "object", properties: { file: { type: "string", description: "File to check" } }, required: ["file"] },
569
+ },
570
+ {
571
+ name: "get_hub_files",
572
+ description: "Pro: Ranks files by how many other files depend on them.",
573
+ inputSchema: { type: "object", properties: {} },
574
+ },
575
+ {
576
+ name: "refresh_graph",
577
+ description: "Re-scans all source files and rebuilds the dependency graph.",
578
+ inputSchema: { type: "object", properties: {} },
579
+ },
580
+ {
581
+ name: "ai_analyze",
582
+ description: "Pro: Gemini AI semantic analysis of a file and its dependents.",
583
+ inputSchema: { type: "object", properties: { file: { type: "string", description: "File to analyze" } }, required: ["file"] },
584
+ },
585
+ {
586
+ name: "check_warnings",
587
+ description: "Pro: Real-time monitoring alerts for file changes.",
588
+ inputSchema: { type: "object", properties: {} },
589
+ },
590
+ ],
591
+ }));
592
+ sandboxServer.setRequestHandler(types_js_1.CallToolRequestSchema, async () => ({
593
+ content: [{ type: "text", text: "Sandbox mode — no project loaded." }],
594
+ }));
595
+ return sandboxServer;
596
+ }
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@syke1/mcp-server",
3
- "version": "1.1.9",
3
+ "version": "1.2.1",
4
+ "mcpName": "io.github.khalomsky/syke",
4
5
  "description": "AI code impact analysis MCP server — dependency graphs, cascade detection, and a mandatory build gate for AI coding agents",
5
6
  "main": "dist/index.js",
6
7
  "bin": {