@manex/obsidianmcp 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/bin/index.js +13 -0
  2. package/package.json +2 -2
package/bin/index.js ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ // ES module wrapper for MCP server
3
+ import { fileURLToPath } from 'url';
4
+ import { dirname, join } from 'path';
5
+
6
+ const __filename = fileURLToPath(import.meta.url);
7
+ const __dirname = dirname(__filename);
8
+
9
+ // Import and run the server
10
+ import(join(__dirname, '../dist/server.js')).catch(err => {
11
+ console.error('Error starting MCP server:', err);
12
+ process.exit(1);
13
+ });
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@manex/obsidianmcp",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "A Model Context Protocol server for secure integration with Obsidian vaults",
5
5
  "author": "Manex142",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
8
  "private": false,
9
- "bin": "bin/cli.sh",
10
9
  "repository": {
11
10
  "type": "git",
12
11
  "url": "https://github.com/Manex142/ObsidianMCP.git"
@@ -22,6 +21,7 @@
22
21
  "ai"
23
22
  ],
24
23
  "main": "dist/server.js",
24
+ "bin": "bin/index.js",
25
25
  "scripts": {
26
26
  "dev": "bun run src/server.ts",
27
27
  "build": "bun build src/server.ts --outdir dist --target node",