@neopress/mcp 1.3.1 → 1.5.0

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.
@@ -1,54 +1,48 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- copyFileSync,
4
- existsSync,
5
- mkdirSync,
6
- rmSync,
7
- writeFileSync,
8
- } from 'node:fs';
9
- import { dirname, resolve } from 'node:path';
10
- import { fileURLToPath } from 'node:url';
2
+ import { copyFileSync, existsSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
3
+ import { dirname, resolve } from "node:path";
4
+ import { fileURLToPath } from "node:url";
11
5
 
12
- const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..');
13
- const distBin = resolve(packageRoot, 'dist/bin.cjs');
14
- const manifest = resolve(packageRoot, 'integrations/claude-desktop/manifest.json');
15
- const outDir = resolve(packageRoot, 'dist/mcpb/neopress');
16
- const outServerDir = resolve(outDir, 'server');
6
+ const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
7
+ const distBin = resolve(packageRoot, "dist/bin.cjs");
8
+ const manifest = resolve(packageRoot, "integrations/claude-desktop/manifest.json");
9
+ const outDir = resolve(packageRoot, "dist/mcpb/neopress");
10
+ const outServerDir = resolve(outDir, "server");
17
11
 
18
12
  if (!existsSync(distBin)) {
19
- console.error('Missing dist/bin.cjs. Run `pnpm --filter @neopress/mcp build` first.');
13
+ console.error("Missing dist/bin.cjs. Run `pnpm --filter @neopress/mcp build` first.");
20
14
  process.exit(1);
21
15
  }
22
16
 
23
17
  if (!existsSync(manifest)) {
24
- console.error('Missing Claude Desktop MCPB manifest.');
18
+ console.error("Missing Claude Desktop MCPB manifest.");
25
19
  process.exit(1);
26
20
  }
27
21
 
28
22
  rmSync(outDir, { recursive: true, force: true });
29
23
  mkdirSync(outServerDir, { recursive: true });
30
24
 
31
- copyFileSync(manifest, resolve(outDir, 'manifest.json'));
32
- copyFileSync(distBin, resolve(outServerDir, 'bin.cjs'));
25
+ copyFileSync(manifest, resolve(outDir, "manifest.json"));
26
+ copyFileSync(distBin, resolve(outServerDir, "bin.cjs"));
33
27
  writeFileSync(
34
- resolve(outDir, 'README.md'),
28
+ resolve(outDir, "README.md"),
35
29
  [
36
- '# Neopress MCPB Draft',
37
- '',
38
- 'This bundle stages the local Neopress stdio MCP server for Claude Desktop.',
39
- '',
40
- 'Before installing, run `neopress login` so the MCP server can reuse and refresh',
41
- 'the first-party OAuth session. Alternatively, configure a short-lived OAuth',
42
- 'access token in the extension settings for testing only.',
43
- '',
44
- 'To pack this directory:',
45
- '',
46
- '```bash',
47
- 'pnpm dlx @anthropic-ai/mcpb pack packages/mcp/dist/mcpb/neopress',
48
- '```',
49
- '',
50
- ].join('\n'),
51
- 'utf-8'
30
+ "# Neopress MCPB Draft",
31
+ "",
32
+ "This bundle stages the local Neopress stdio MCP server for Claude Desktop.",
33
+ "",
34
+ "Before installing, run `neopress login` so the MCP server can reuse and refresh",
35
+ "the first-party OAuth session. Alternatively, configure a short-lived OAuth",
36
+ "access token in the extension settings for testing only.",
37
+ "",
38
+ "To pack this directory:",
39
+ "",
40
+ "```bash",
41
+ "pnpm dlx @anthropic-ai/mcpb pack packages/mcp/dist/mcpb/neopress",
42
+ "```",
43
+ "",
44
+ ].join("\n"),
45
+ "utf-8",
52
46
  );
53
47
 
54
48
  console.log(`Staged MCPB directory: ${outDir}`);