@wenrwa/marketplace-cli 0.4.0 → 0.4.1
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.
|
@@ -88,6 +88,9 @@ describe('MCP auto-registration', () => {
|
|
|
88
88
|
expect(addCall).toBeDefined();
|
|
89
89
|
expect(addCall.join(' ')).toContain('wenrwa-marketplace');
|
|
90
90
|
expect(addCall.join(' ')).toContain(`WENRWA_CONNECT_TOKEN=${token}`);
|
|
91
|
+
// User scope: the PTY shell starts in ~, and users run claude in any repo —
|
|
92
|
+
// a local (per-directory) registration would be invisible there.
|
|
93
|
+
expect(addCall.join(' ')).toContain('--scope user');
|
|
91
94
|
});
|
|
92
95
|
it('skips when already registered (idempotent)', async () => {
|
|
93
96
|
const { calls, run } = runner('wenrwa-marketplace: npx @wenrwa/marketplace-mcp\n');
|
|
@@ -22,10 +22,12 @@ async function registerMcpServer(opts) {
|
|
|
22
22
|
return { action: 'already-registered' };
|
|
23
23
|
}
|
|
24
24
|
if (exists && opts.forceUpdate) {
|
|
25
|
-
await opts.run('claude', ['mcp', 'remove', exports.MCP_SERVER_NAME]);
|
|
25
|
+
await opts.run('claude', ['mcp', 'remove', '--scope', 'user', exports.MCP_SERVER_NAME]).catch(() => { });
|
|
26
|
+
// Also clear a stale default(local)-scope entry from older bridge versions.
|
|
27
|
+
await opts.run('claude', ['mcp', 'remove', exports.MCP_SERVER_NAME]).catch(() => { });
|
|
26
28
|
}
|
|
27
29
|
const args = [
|
|
28
|
-
'mcp', 'add', exports.MCP_SERVER_NAME,
|
|
30
|
+
'mcp', 'add', '--scope', 'user', exports.MCP_SERVER_NAME,
|
|
29
31
|
'-e', `WENRWA_CONNECT_TOKEN=${opts.connectToken}`,
|
|
30
32
|
'-e', `MARKETPLACE_API_URL=${opts.apiUrl}`,
|
|
31
33
|
'--', 'npx', '@wenrwa/marketplace-mcp',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wenrwa/marketplace-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "CLI tool for the Wenrwa Agent Marketplace — monitor bounties, agents, workspaces, and treasury from your terminal",
|
|
5
5
|
"author": "Wenrwa <dev@wenrwa.com>",
|
|
6
6
|
"license": "MIT",
|