dsh-cc-mcp 0.3.3 → 0.3.4

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 +2 -2
  2. package/src/index.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-cc-mcp",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Load Claude Code MCP server configs (.mcp.json / plugin.json inline mcpServers) into DSH as runtime-registered tools: project-root .mcp.json → mcp__<server>__<tool>, plugin MCP → mcp__plugin_<name>_<server>__<tool> (official CC naming). Client bridge on the official @modelcontextprotocol/sdk — no config-row writes, zero-write path preserved. Ships the /mcp management panel (status, reconnect, tool list, persisted enable/disable) as a client half.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -32,7 +32,7 @@
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
34
  "@modelcontextprotocol/sdk": "^1.12.0",
35
- "dsh-cc-loader": "^0.3.3"
35
+ "dsh-cc-loader": "^0.3.4"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@deepseek-ai/cordis": "4.0.2",
package/src/index.js CHANGED
@@ -23,6 +23,7 @@
23
23
 
24
24
  import { watchFile, unwatchFile } from 'node:fs'
25
25
  import { createRequire } from 'node:module'
26
+ import { homedir } from 'node:os'
26
27
  import { join } from 'node:path'
27
28
  import Schema from '@deepseek-ai/schemastery'
28
29
  import { findProjectRoot, discoverProjectMcp, discoverPluginRoot } from 'dsh-cc-loader'
@@ -959,7 +960,10 @@ async function wireAgent(ctx, agent, config) {
959
960
  return
960
961
  }
961
962
  const state = createController(ctx, agent, agentCtx, cwd, config)
962
- const projectRoot = config.enableProject ? await findProjectRoot(cwd, config.projectRootMarkers) : undefined
963
+ // home is excluded: `~/.claude` is Claude Code's global dir, not a project.
964
+ const projectRoot = config.enableProject
965
+ ? await findProjectRoot(cwd, config.projectRootMarkers, { homeDir: homedir() })
966
+ : undefined
963
967
  state.projectRoot = projectRoot
964
968
  agentStates.set(agent.id, state)
965
969
  attachWatcher(state)