@syke1/mcp-server 1.8.6 → 1.8.7

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.
@@ -1328,7 +1328,7 @@ async function loadCodePreview(fileId) {
1328
1328
  const el = document.getElementById("code-content");
1329
1329
  el.innerHTML = '<div class="loading"><div class="spinner"></div>LOADING...</div>';
1330
1330
  try {
1331
- const res = await fetch("/api/file-content/" + fileId.split("/").map(encodeURIComponent).join("/"));
1331
+ const res = await fetch("/api/file-content?path=" + encodeURIComponent(fileId));
1332
1332
  const ct = res.headers.get("content-type") || "";
1333
1333
  if (!ct.includes("application/json")) {
1334
1334
  el.innerHTML = `<p class="placeholder">ERROR: Server returned non-JSON (${res.status}). File: ${fileId}</p>`;
@@ -629,10 +629,9 @@ function createWebServer(getGraphFn, initialFileCache, switchProjectFn, getProje
629
629
  }
630
630
  res.json({ files: results });
631
631
  });
632
- // GET /api/file-content/:file — Source code preview
633
- app.get("/api/file-content/*splat", (req, res) => {
634
- const splat = req.params.splat;
635
- const fileParam = Array.isArray(splat) ? splat.join("/") : splat;
632
+ // GET /api/file-content?path=... — Source code preview
633
+ app.get("/api/file-content", (req, res) => {
634
+ const fileParam = req.query.path;
636
635
  if (!fileParam)
637
636
  return res.status(400).json({ error: "File path required" });
638
637
  const graph = getGraphFn();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syke1/mcp-server",
3
- "version": "1.8.6",
3
+ "version": "1.8.7",
4
4
  "mcpName": "io.github.khalomsky/syke",
5
5
  "description": "AI code impact analysis MCP server — dependency graphs, cascade detection, and a mandatory build gate for AI coding agents",
6
6
  "main": "dist/index.js",