@ign8t/mcp 0.0.1 → 0.1.0
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/README.md +71 -11
- package/dist/index.js +40 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ pnpm install -g @ign8t/mcp
|
|
|
33
33
|
### 3. Configure Your AI Tool
|
|
34
34
|
|
|
35
35
|
<details>
|
|
36
|
-
<summary><strong>Cursor IDE</strong></summary>
|
|
36
|
+
<summary><strong>Cursor IDE (Recommended - using npx)</strong></summary>
|
|
37
37
|
|
|
38
38
|
Add to `~/.cursor/mcp/settings.json`:
|
|
39
39
|
|
|
@@ -41,40 +41,85 @@ Add to `~/.cursor/mcp/settings.json`:
|
|
|
41
41
|
{
|
|
42
42
|
"mcpServers": {
|
|
43
43
|
"ign8t": {
|
|
44
|
-
"command": "
|
|
45
|
-
"
|
|
46
|
-
"IGN8T_API_KEY": "your-api-key-here" // This is all you need!
|
|
47
|
-
}
|
|
44
|
+
"command": "npx",
|
|
45
|
+
"args": ["-y", "@ign8t/mcp@latest", "--api-key", "your-api-key-here"]
|
|
48
46
|
}
|
|
49
47
|
}
|
|
50
48
|
}
|
|
51
49
|
```
|
|
52
50
|
|
|
51
|
+
**Benefits of npx approach:**
|
|
52
|
+
|
|
53
|
+
- Always uses the latest version
|
|
54
|
+
- No global installation needed
|
|
55
|
+
- Cleaner configuration
|
|
56
|
+
|
|
53
57
|
Restart Cursor to activate the integration.
|
|
54
58
|
|
|
55
59
|
</details>
|
|
56
60
|
|
|
57
61
|
<details>
|
|
58
|
-
<summary><strong>Claude Desktop</strong></summary>
|
|
62
|
+
<summary><strong>Claude Desktop (Recommended - using npx)</strong></summary>
|
|
59
63
|
|
|
60
64
|
Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS):
|
|
61
65
|
|
|
66
|
+
```json
|
|
67
|
+
{
|
|
68
|
+
"mcpServers": {
|
|
69
|
+
"ign8t": {
|
|
70
|
+
"command": "npx",
|
|
71
|
+
"args": ["-y", "@ign8t/mcp@latest", "--api-key", "your-api-key-here"]
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
For Windows: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
78
|
+
|
|
79
|
+
Restart Claude Desktop to activate.
|
|
80
|
+
|
|
81
|
+
</details>
|
|
82
|
+
|
|
83
|
+
<details>
|
|
84
|
+
<summary><strong>Alternative: Global Installation Method</strong></summary>
|
|
85
|
+
|
|
86
|
+
If you prefer to install globally first:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
pnpm install -g @ign8t/mcp
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Then configure with environment variables:
|
|
93
|
+
|
|
94
|
+
**Cursor IDE:**
|
|
95
|
+
|
|
62
96
|
```json
|
|
63
97
|
{
|
|
64
98
|
"mcpServers": {
|
|
65
99
|
"ign8t": {
|
|
66
100
|
"command": "ign8t-mcp",
|
|
67
101
|
"env": {
|
|
68
|
-
"IGN8T_API_KEY": "your-api-key-here"
|
|
102
|
+
"IGN8T_API_KEY": "your-api-key-here"
|
|
69
103
|
}
|
|
70
104
|
}
|
|
71
105
|
}
|
|
72
106
|
}
|
|
73
107
|
```
|
|
74
108
|
|
|
75
|
-
|
|
109
|
+
**Claude Desktop:**
|
|
76
110
|
|
|
77
|
-
|
|
111
|
+
```json
|
|
112
|
+
{
|
|
113
|
+
"mcpServers": {
|
|
114
|
+
"ign8t": {
|
|
115
|
+
"command": "ign8t-mcp",
|
|
116
|
+
"env": {
|
|
117
|
+
"IGN8T_API_KEY": "your-api-key-here"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
```
|
|
78
123
|
|
|
79
124
|
</details>
|
|
80
125
|
|
|
@@ -177,6 +222,21 @@ The ign8t MCP server is designed to fit seamlessly into your development workflo
|
|
|
177
222
|
|
|
178
223
|
The MCP server connects to `https://ign8t.com` by default. For enterprise deployments, self-hosted instances, or local development, you can override the API endpoint:
|
|
179
224
|
|
|
225
|
+
**Using npx (Recommended):**
|
|
226
|
+
|
|
227
|
+
```json
|
|
228
|
+
{
|
|
229
|
+
"mcpServers": {
|
|
230
|
+
"ign8t": {
|
|
231
|
+
"command": "npx",
|
|
232
|
+
"args": ["-y", "@ign8t/mcp@latest", "--api-key", "your-api-key", "--api-url", "https://your-domain.com"]
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
**Using global installation:**
|
|
239
|
+
|
|
180
240
|
```json
|
|
181
241
|
{
|
|
182
242
|
"mcpServers": {
|
|
@@ -184,14 +244,14 @@ The MCP server connects to `https://ign8t.com` by default. For enterprise deploy
|
|
|
184
244
|
"command": "ign8t-mcp",
|
|
185
245
|
"env": {
|
|
186
246
|
"IGN8T_API_KEY": "your-api-key",
|
|
187
|
-
"IGN8T_API_URL": "https://your-domain.com"
|
|
247
|
+
"IGN8T_API_URL": "https://your-domain.com"
|
|
188
248
|
}
|
|
189
249
|
}
|
|
190
250
|
}
|
|
191
251
|
}
|
|
192
252
|
```
|
|
193
253
|
|
|
194
|
-
**Note**: Most users don't need to set
|
|
254
|
+
**Note**: Most users don't need to set a custom API URL. It's only required if you're:
|
|
195
255
|
|
|
196
256
|
- Using an enterprise or self-hosted ign8t instance
|
|
197
257
|
- Developing locally (e.g., `http://localhost:3000`)
|
package/dist/index.js
CHANGED
|
@@ -5,11 +5,48 @@ import { CallToolRequestSchema, ListResourcesRequestSchema, ListToolsRequestSche
|
|
|
5
5
|
import * as dotenv from "dotenv";
|
|
6
6
|
// Load environment variables
|
|
7
7
|
dotenv.config();
|
|
8
|
+
// Parse command line arguments
|
|
9
|
+
function parseArgs() {
|
|
10
|
+
const args = process.argv.slice(2);
|
|
11
|
+
const config = {};
|
|
12
|
+
for (let i = 0; i < args.length; i++) {
|
|
13
|
+
switch (args[i]) {
|
|
14
|
+
case "--api-key":
|
|
15
|
+
config.apiKey = args[i + 1];
|
|
16
|
+
i++; // Skip next argument as it's the value
|
|
17
|
+
break;
|
|
18
|
+
case "--api-url":
|
|
19
|
+
config.apiUrl = args[i + 1];
|
|
20
|
+
i++; // Skip next argument as it's the value
|
|
21
|
+
break;
|
|
22
|
+
case "--help":
|
|
23
|
+
case "-h":
|
|
24
|
+
console.log(`
|
|
25
|
+
ign8t MCP Server
|
|
26
|
+
|
|
27
|
+
Usage: ign8t-mcp --api-key <key> [--api-url <url>]
|
|
28
|
+
|
|
29
|
+
Options:
|
|
30
|
+
--api-key <key> Your ign8t API key (required)
|
|
31
|
+
--api-url <url> Custom API URL (optional, defaults to https://ign8t.com)
|
|
32
|
+
--help, -h Show this help message
|
|
33
|
+
|
|
34
|
+
Get your API key from: https://ign8t.com/settings/api-keys
|
|
35
|
+
`);
|
|
36
|
+
process.exit(0);
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return config;
|
|
41
|
+
}
|
|
8
42
|
// Configuration
|
|
9
|
-
const
|
|
10
|
-
const
|
|
43
|
+
const config = parseArgs();
|
|
44
|
+
const API_KEY = config.apiKey;
|
|
45
|
+
const API_URL = "https://ign8t.com";
|
|
11
46
|
if (!API_KEY) {
|
|
12
|
-
console.error("Error:
|
|
47
|
+
console.error("Error: API key is required");
|
|
48
|
+
console.error("Usage: ign8t-mcp --api-key <your-api-key>");
|
|
49
|
+
console.error("Or set IGN8T_API_KEY environment variable");
|
|
13
50
|
console.error("Get your API key from https://ign8t.com/settings/api-keys");
|
|
14
51
|
process.exit(1);
|
|
15
52
|
}
|