@recapt/mcp 0.0.6-beta → 0.0.7-beta

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.
@@ -30,7 +30,7 @@ function openBrowser(url) {
30
30
  });
31
31
  }
32
32
  function validateMcpKey(key) {
33
- return key.startsWith(MCP_KEY_PREFIX) && key.length > MCP_KEY_PREFIX.length + 10;
33
+ return (key.startsWith(MCP_KEY_PREFIX) && key.length > MCP_KEY_PREFIX.length + 10);
34
34
  }
35
35
  async function promptForKey() {
36
36
  const hasKey = await confirm("Do you have a Recapt MCP key?", false);
@@ -61,9 +61,7 @@ async function runSetup() {
61
61
  newline();
62
62
  for (const ide of detectedIdes) {
63
63
  const marker = ide.detected ? "[x]" : "[ ]";
64
- const status = ide.detected
65
- ? `(${ide.globalPathResolved})`
66
- : "(not found)";
64
+ const status = ide.detected ? `(${ide.globalPathResolved})` : "(not found)";
67
65
  print(` ${marker} ${ide.config.name} ${status}`);
68
66
  }
69
67
  newline();
@@ -70,7 +70,8 @@ function ideExists(config) {
70
70
  const resolved = expandPath(config.globalPath);
71
71
  const dir = path.dirname(resolved);
72
72
  if (config.name === "Claude Code") {
73
- return fs.existsSync(resolved) || fs.existsSync(path.join(os.homedir(), ".claude"));
73
+ return (fs.existsSync(resolved) ||
74
+ fs.existsSync(path.join(os.homedir(), ".claude")));
74
75
  }
75
76
  if (config.name === "Zed") {
76
77
  return fs.existsSync(path.join(os.homedir(), ".config", "zed"));
@@ -84,7 +85,9 @@ export function detectInstalledIdes() {
84
85
  return IDE_CONFIGS.map((config) => ({
85
86
  config,
86
87
  detected: ideExists(config),
87
- globalPathResolved: config.globalPath ? expandPath(config.globalPath) : null,
88
+ globalPathResolved: config.globalPath
89
+ ? expandPath(config.globalPath)
90
+ : null,
88
91
  }));
89
92
  }
90
93
  function getRecaptServerConfig(secretKey) {
@@ -180,7 +183,8 @@ function parseTomlValue(raw) {
180
183
  return [];
181
184
  return inner.split(",").map((item) => {
182
185
  const t = item.trim();
183
- if ((t.startsWith('"') && t.endsWith('"')) || (t.startsWith("'") && t.endsWith("'"))) {
186
+ if ((t.startsWith('"') && t.endsWith('"')) ||
187
+ (t.startsWith("'") && t.endsWith("'"))) {
184
188
  return t.slice(1, -1);
185
189
  }
186
190
  return t;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recapt/mcp",
3
- "version": "0.0.6-beta",
3
+ "version": "0.0.7-beta",
4
4
  "description": "MCP exposing recapt behavioral intelligence to AI coding agents",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,6 +15,7 @@
15
15
  "generate-catalog": "tsx scripts/generateCatalog.ts"
16
16
  },
17
17
  "bin": {
18
+ "mcp": "./dist/cli/index.js",
18
19
  "recapt-mcp": "./dist/index.js",
19
20
  "recapt": "./dist/cli/index.js"
20
21
  },