fathom-mcp 0.4.7 → 0.4.8

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/package.json +1 -1
  2. package/src/cli.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fathom-mcp",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "MCP server for Fathom — vault operations, search, rooms, and cross-workspace communication",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -785,8 +785,9 @@ async function runUpdate() {
785
785
  fs.writeFileSync(path.join(fathomDir, "version"), packageVersion + "\n");
786
786
 
787
787
  // Ensure SessionStart hook is registered for Claude Code workspaces
788
- const agents = found.config.agents || [];
789
- const hasClaude = agents.includes("claude-code");
788
+ // Detect by .claude/ dir (older configs may not have agents field)
789
+ const hasClaude = (found.config.agents || []).includes("claude-code")
790
+ || fs.existsSync(path.join(projectDir, ".claude"));
790
791
  let hooksUpdated = false;
791
792
  if (hasClaude) {
792
793
  const claudeSettingsPath = path.join(projectDir, ".claude", "settings.local.json");