mcp-macos 2.0.0 → 2.0.2

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.
@@ -54,7 +54,7 @@ function isCorrectProjectRoot(dir) {
54
54
  try {
55
55
  const packageContent = fs.readFileSync(packageJsonPath, 'utf8');
56
56
  const packageData = JSON.parse(packageContent);
57
- return packageData.name === 'macos-mcp';
57
+ return packageData.name === 'mcp-macos';
58
58
  }
59
59
  catch {
60
60
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-macos",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "MCP server that provides native integration with Apple Reminders, Calendar, Notes, Mail, and Messages on macOS.",
5
5
  "author": "Kyle Jensen",
6
6
  "contributors": [
@@ -25,10 +25,15 @@ async function main() {
25
25
  process.exit(1);
26
26
  }
27
27
 
28
- const scriptDir = path.resolve(process.cwd(), 'src', 'swift');
28
+ // Use package root (not cwd) so this works during npm postinstall
29
+ const packageRoot = path.resolve(
30
+ new URL('.', import.meta.url).pathname,
31
+ '..',
32
+ );
33
+ const scriptDir = path.resolve(packageRoot, 'src', 'swift');
29
34
  const sourceFile = path.join(scriptDir, 'EventKitCLI.swift');
30
35
  const infoPlistFile = path.join(scriptDir, 'Info.plist');
31
- const binDir = path.resolve(process.cwd(), 'bin');
36
+ const binDir = path.resolve(packageRoot, 'bin');
32
37
  const outputFile = path.join(binDir, 'EventKitCLI');
33
38
 
34
39
  try {