@macula-io/mcp 0.3.1 → 0.3.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.
@@ -1,8 +1,16 @@
1
1
  // Claude Code MCP client integration.
2
2
  //
3
- // Config path: ~/.claude/mcp.json (global) AND/OR project-local
4
- // .mcp.json. MVP writes the global file only; project-local is the
5
- // user's choice on a per-repo basis.
3
+ // Config path: ~/.claude.json (a FILE, not inside the ~/.claude/
4
+ // directory) -- this is Claude Code's real user-scope config, storing
5
+ // startup counts, project state, and MCP servers all in one JSON
6
+ // object under a top-level `mcpServers` key. Verified directly (not
7
+ // assumed) 2026-08-29 via `claude mcp add --scope user`, since an
8
+ // earlier guess of `~/.claude/mcp.json` here was simply wrong --
9
+ // Claude Code never reads that path, so every prior install this ran
10
+ // against was silently a no-op for this client. Project-local
11
+ // `.mcp.json` (checked into or living alongside a specific project)
12
+ // takes precedence over this when both define the same server name;
13
+ // this installer only ever writes user scope.
6
14
  //
7
15
  // Entry format (Claude Code's spec):
8
16
  // {
@@ -30,14 +38,10 @@ import { mergeMcpServer, removeMcpServer, } from "../config_merge.js";
30
38
  export const CLIENT_ID = "claude-code";
31
39
  export const CLIENT_LABEL = "Claude Code";
32
40
  export function configPath() {
33
- return join(homedir(), ".claude", "mcp.json");
41
+ return join(homedir(), ".claude.json");
34
42
  }
35
43
  export function isInstalled() {
36
- // Claude Code installs at ~/.claude — presence of that directory
37
- // (or any of the canonical files) is a strong-enough signal for
38
- // MVP. False positives are harmless (we just write a config file
39
- // the client can pick up later).
40
- return existsSync(join(homedir(), ".claude"));
44
+ return existsSync(configPath());
41
45
  }
42
46
  export async function install() {
43
47
  return mergeMcpServer(configPath(), "macula", {
@@ -1 +1 @@
1
- {"version":3,"file":"claude_code.js","sourceRoot":"","sources":["../../../src/install/mcp_clients/claude_code.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,EAAE;AACF,gEAAgE;AAChE,mEAAmE;AACnE,qCAA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SAAS;IAC7B,OAAO,eAAe,CAAC,UAAU,EAAE,EAAE,QAAQ,CAAC,CAAC;AACjD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@macula-io/mcp",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Model Context Protocol server that exposes the Macula mesh to any agent harness, via macula-cli",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",