trace-mcp 1.0.10 → 1.0.11
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.
- package/dist/cli.js +2 -23
- package/dist/cli.js.map +1 -1
- package/dist/index.js +0 -22
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
package/dist/cli.js
CHANGED
|
@@ -23663,28 +23663,6 @@ function createServer2(store, registry, config, rootPath) {
|
|
|
23663
23663
|
};
|
|
23664
23664
|
}
|
|
23665
23665
|
);
|
|
23666
|
-
server.tool(
|
|
23667
|
-
"plan_batch_change",
|
|
23668
|
-
"Analyze the impact of updating a dependency across the codebase. Shows affected files, import sites, and line references. Generates a PR description template with risk level, breaking changes checklist, and affected file list.",
|
|
23669
|
-
{
|
|
23670
|
-
package: z4.string().min(1).max(256).describe('Package name being updated (e.g. "@myorg/auth-lib", "lodash")'),
|
|
23671
|
-
from_version: z4.string().max(64).optional().describe("Current version"),
|
|
23672
|
-
to_version: z4.string().max(64).optional().describe("Target version"),
|
|
23673
|
-
breaking_changes: z4.array(z4.string().max(500)).max(20).optional().describe('Known breaking changes (e.g. "login() now returns Promise<AuthResult>")')
|
|
23674
|
-
},
|
|
23675
|
-
async ({ package: pkg, from_version, to_version, breaking_changes }) => {
|
|
23676
|
-
const result = planBatchChange(store, {
|
|
23677
|
-
package: pkg,
|
|
23678
|
-
fromVersion: from_version,
|
|
23679
|
-
toVersion: to_version,
|
|
23680
|
-
breakingChanges: breaking_changes
|
|
23681
|
-
});
|
|
23682
|
-
if (result.isErr()) {
|
|
23683
|
-
return { content: [{ type: "text", text: j2(formatToolError(result.error)) }], isError: true };
|
|
23684
|
-
}
|
|
23685
|
-
return { content: [{ type: "text", text: j2(result.value) }] };
|
|
23686
|
-
}
|
|
23687
|
-
);
|
|
23688
23666
|
server.resource(
|
|
23689
23667
|
"project-map",
|
|
23690
23668
|
"project://map",
|
|
@@ -49181,7 +49159,7 @@ function writeTraceMcpEntry(configPath, entry) {
|
|
|
49181
49159
|
function getConfigPath(name, projectRoot, scope) {
|
|
49182
49160
|
switch (name) {
|
|
49183
49161
|
case "claude-code":
|
|
49184
|
-
return scope === "global" ? path69.join(HOME, ".claude
|
|
49162
|
+
return scope === "global" ? path69.join(HOME, ".claude.json") : path69.join(projectRoot, ".mcp.json");
|
|
49185
49163
|
case "claude-desktop":
|
|
49186
49164
|
return process.platform === "darwin" ? path69.join(HOME, "Library", "Application Support", "Claude", "claude_desktop_config.json") : path69.join(process.env.APPDATA ?? path69.join(HOME, "AppData", "Roaming"), "Claude", "claude_desktop_config.json");
|
|
49187
49165
|
case "cursor":
|
|
@@ -49579,6 +49557,7 @@ function detectMcpClients(projectRoot) {
|
|
|
49579
49557
|
if (projectRoot) {
|
|
49580
49558
|
checkConfig("claude-code", path73.join(projectRoot, ".mcp.json"));
|
|
49581
49559
|
}
|
|
49560
|
+
checkConfig("claude-code", path73.join(HOME3, ".claude.json"));
|
|
49582
49561
|
checkConfig("claude-code", path73.join(HOME3, ".claude", "settings.json"));
|
|
49583
49562
|
const platform = os4.platform();
|
|
49584
49563
|
if (platform === "darwin") {
|