patchcord 0.5.132 → 0.5.133
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/.claude-plugin/plugin.json +1 -1
- package/bin/patchcord.mjs +10 -2
- package/package.json +1 -1
package/bin/patchcord.mjs
CHANGED
|
@@ -1014,8 +1014,13 @@ if (cmd === "login" || cmd === "orchestrator" || cmd === "teamlead" || cmd === "
|
|
|
1014
1014
|
const cdir = join(dir, ".cursor"); mkdirSync(cdir, { recursive: true });
|
|
1015
1015
|
return writeJson(join(cdir, "mcp.json"), (o) => {
|
|
1016
1016
|
o.mcpServers = o.mcpServers || {};
|
|
1017
|
+
// NO "type" field — cursor-agent silently drops the entire server entry
|
|
1018
|
+
// when "type" is set to any value here (verified: tools simply never
|
|
1019
|
+
// load, ListMcpResources returns empty, no error surfaced anywhere).
|
|
1020
|
+
// Confirmed via 3 headless `cursor-agent --print` variants: with "type"
|
|
1021
|
+
// set, 0 tools; without it, all patchcord tools load correctly — both
|
|
1022
|
+
// against /mcp/bearer and plain /mcp. Do not re-add this field.
|
|
1017
1023
|
o.mcpServers.patchcord = {
|
|
1018
|
-
type: "streamable-http",
|
|
1019
1024
|
url: `${baseUrl}/mcp/bearer`,
|
|
1020
1025
|
headers: hdr,
|
|
1021
1026
|
};
|
|
@@ -2548,8 +2553,11 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd?.startsWith("--")) {
|
|
|
2548
2553
|
const cursorPath = join(cursorDir, "mcp.json");
|
|
2549
2554
|
const cursorConfig = {
|
|
2550
2555
|
mcpServers: {
|
|
2556
|
+
// NO "type" field — cursor-agent silently drops the entire server
|
|
2557
|
+
// entry when "type" is set (verified: tools never load, no error
|
|
2558
|
+
// surfaced anywhere). Confirmed via headless cursor-agent --print
|
|
2559
|
+
// testing. Do not re-add this field.
|
|
2551
2560
|
patchcord: {
|
|
2552
|
-
type: "streamable-http",
|
|
2553
2561
|
url: `${serverUrl}/mcp/bearer`,
|
|
2554
2562
|
headers: {
|
|
2555
2563
|
Authorization: `Bearer ${token}`,
|
package/package.json
CHANGED