circuit-mcp 1.0.4 → 1.0.5
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/package.json +1 -1
- package/publish.sh +21 -0
- package/src/index.js +15 -13
package/package.json
CHANGED
package/publish.sh
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Publish script for circuit-mcp package
|
|
4
|
+
# Uses token to bypass 2FA
|
|
5
|
+
|
|
6
|
+
set -e
|
|
7
|
+
|
|
8
|
+
# NPM token for publishing (bypasses 2FA)
|
|
9
|
+
NPM_TOKEN="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"
|
|
10
|
+
|
|
11
|
+
# Create temporary .npmrc with token
|
|
12
|
+
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
|
|
13
|
+
|
|
14
|
+
# Publish the package
|
|
15
|
+
npm publish --access public
|
|
16
|
+
|
|
17
|
+
# Clean up .npmrc
|
|
18
|
+
rm .npmrc
|
|
19
|
+
|
|
20
|
+
echo "✅ Published successfully!"
|
|
21
|
+
|
package/src/index.js
CHANGED
|
@@ -119,23 +119,25 @@ async function runSetup() {
|
|
|
119
119
|
console.log(chalk.dim(' ─────────────────────────────────────────\n'));
|
|
120
120
|
|
|
121
121
|
console.log(chalk.cyan.bold(' Cursor\n'));
|
|
122
|
-
console.log(chalk.dim('
|
|
123
|
-
console.log(chalk.white(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
122
|
+
console.log(chalk.dim(' 1. Open your MCP config file:\n'));
|
|
123
|
+
console.log(chalk.white(' open ~/.cursor/mcp.json\n'));
|
|
124
|
+
console.log(chalk.dim(' 2. Add this to the file:\n'));
|
|
125
|
+
console.log(chalk.white(` {
|
|
126
|
+
"mcpServers": {
|
|
127
|
+
"circuit": {
|
|
128
|
+
"command": "npx",
|
|
129
|
+
"args": ["circuit-mcp"]
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}\n`));
|
|
133
|
+
console.log(chalk.dim(' 3. Restart Cursor\n'));
|
|
131
134
|
|
|
132
135
|
console.log(chalk.cyan.bold(' Claude Code\n'));
|
|
133
|
-
console.log(chalk.dim(' Run:\n'));
|
|
134
|
-
console.log(chalk.white(
|
|
136
|
+
console.log(chalk.dim(' Run this in your terminal:\n'));
|
|
137
|
+
console.log(chalk.white(' claude mcp add circuit -- npx circuit-mcp\n'));
|
|
135
138
|
|
|
136
139
|
console.log(chalk.dim(' ─────────────────────────────────────────\n'));
|
|
137
|
-
console.log(chalk.dim('
|
|
138
|
-
console.log(chalk.dim(' prompt you to sign in on first use.\n'));
|
|
140
|
+
console.log(chalk.dim(' Circuit will prompt you to sign in on first use.\n'));
|
|
139
141
|
}
|
|
140
142
|
|
|
141
143
|
async function runAuth() {
|