@cg3/equip 0.2.9 → 0.2.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/lib/detect.js +1 -1
- package/lib/mcp.js +2 -1
- package/lib/platforms.js +1 -1
- package/package.json +1 -1
package/lib/detect.js
CHANGED
|
@@ -57,7 +57,7 @@ function detectPlatforms(serverName) {
|
|
|
57
57
|
// Claude Code
|
|
58
58
|
const claudeVersion = whichSync("claude") ? getClaudeCodeVersion() : null;
|
|
59
59
|
if (claudeVersion || dirExists(path.join(home, ".claude"))) {
|
|
60
|
-
const configPath = path.join(home, ".claude.json");
|
|
60
|
+
const configPath = path.join(home, ".claude", "settings.json");
|
|
61
61
|
const rulesPath = path.join(home, ".claude", "CLAUDE.md");
|
|
62
62
|
platforms.push({
|
|
63
63
|
platform: "claude-code",
|
package/lib/mcp.js
CHANGED
|
@@ -188,10 +188,11 @@ function readMcpEntry(configPath, rootKey, serverName, configFormat = "json") {
|
|
|
188
188
|
*/
|
|
189
189
|
function buildHttpConfig(serverUrl, platform) {
|
|
190
190
|
if (platform === "windsurf") return { serverUrl };
|
|
191
|
+
if (platform === "claude-code") return { type: "http", url: serverUrl };
|
|
191
192
|
if (platform === "vscode") return { type: "http", url: serverUrl };
|
|
192
193
|
if (platform === "cursor") return { type: "streamable-http", url: serverUrl };
|
|
193
194
|
if (platform === "gemini-cli") return { httpUrl: serverUrl };
|
|
194
|
-
// codex,
|
|
195
|
+
// codex, cline, roo-code all use { url }
|
|
195
196
|
return { url: serverUrl };
|
|
196
197
|
}
|
|
197
198
|
|
package/lib/platforms.js
CHANGED
|
@@ -68,7 +68,7 @@ function createManualPlatform(platformId) {
|
|
|
68
68
|
const home = os.homedir();
|
|
69
69
|
const configs = {
|
|
70
70
|
"claude-code": {
|
|
71
|
-
configPath: path.join(home, ".claude.json"),
|
|
71
|
+
configPath: path.join(home, ".claude", "settings.json"),
|
|
72
72
|
rulesPath: path.join(home, ".claude", "CLAUDE.md"),
|
|
73
73
|
rootKey: "mcpServers",
|
|
74
74
|
configFormat: "json",
|