mcp-docs-service 0.2.10 → 0.2.11

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to the MCP Docs Service will be documented in this file.
4
4
 
5
+ ## [0.2.11] - 2024-05-15
6
+
7
+ ### Fixed
8
+
9
+ - Fixed MCP Inspector wrapper script to use ES module syntax
10
+ - Improved compatibility with MCP Inspector
11
+
5
12
  ## [0.2.10] - 2024-05-15
6
13
 
7
14
  ### Added
package/dist/index.js CHANGED
@@ -67,7 +67,7 @@ else {
67
67
  // Create server
68
68
  const server = new Server({
69
69
  name: "secure-filesystem-server",
70
- version: "0.2.10",
70
+ version: "0.2.11",
71
71
  }, {
72
72
  capabilities: {
73
73
  tools: {},
@@ -7,9 +7,14 @@
7
7
  * It extracts the docs directory from the arguments and passes it to the MCP Docs Service.
8
8
  */
9
9
 
10
- const path = require("path");
11
- const { spawn } = require("child_process");
12
- const fs = require("fs");
10
+ import path from "path";
11
+ import { spawn } from "child_process";
12
+ import fs from "fs";
13
+ import { fileURLToPath } from "url";
14
+
15
+ // Get the current directory
16
+ const __filename = fileURLToPath(import.meta.url);
17
+ const __dirname = path.dirname(__filename);
13
18
 
14
19
  // Get all arguments
15
20
  const args = process.argv.slice(2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-docs-service",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "MCP Documentation Management Service - A Model Context Protocol implementation for documentation management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",