heroku 10.9.0 → 10.10.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/lib/commands/mcp/start.d.ts +12 -0
- package/lib/commands/mcp/start.js +33 -0
- package/oclif.manifest.json +188 -159
- package/package.json +3 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Command } from '@heroku-cli/command';
|
|
3
|
+
import { spawn as cpSpawn } from 'node:child_process';
|
|
4
|
+
export default class MCPStart extends Command {
|
|
5
|
+
static description: string;
|
|
6
|
+
static hidden: boolean;
|
|
7
|
+
static flags: {
|
|
8
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
9
|
+
};
|
|
10
|
+
static spawn: typeof cpSpawn;
|
|
11
|
+
run(): Promise<import("child_process").ChildProcessWithoutNullStreams>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const command_1 = require("@heroku-cli/command");
|
|
4
|
+
const node_child_process_1 = require("node:child_process");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
class MCPStart extends command_1.Command {
|
|
7
|
+
async run() {
|
|
8
|
+
const serverPath = (0, path_1.join)(require.resolve('@heroku/mcp-server'), '../../bin/heroku-mcp-server.mjs');
|
|
9
|
+
const server = MCPStart.spawn('node', [serverPath], {
|
|
10
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
11
|
+
shell: true,
|
|
12
|
+
});
|
|
13
|
+
// Pipe all stdio streams
|
|
14
|
+
process.stdin.pipe(server.stdin);
|
|
15
|
+
server.stdout.pipe(process.stdout);
|
|
16
|
+
server.stderr.pipe(process.stderr);
|
|
17
|
+
// Handle process termination
|
|
18
|
+
process.on('SIGINT', () => {
|
|
19
|
+
server.kill('SIGINT');
|
|
20
|
+
});
|
|
21
|
+
process.on('SIGTERM', () => {
|
|
22
|
+
server.kill('SIGTERM');
|
|
23
|
+
});
|
|
24
|
+
return server;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.default = MCPStart;
|
|
28
|
+
MCPStart.description = 'starts the Heroku platform MCP server in stdio mode';
|
|
29
|
+
MCPStart.hidden = true;
|
|
30
|
+
MCPStart.flags = {
|
|
31
|
+
help: command_1.flags.help({ char: 'h' }),
|
|
32
|
+
};
|
|
33
|
+
MCPStart.spawn = node_child_process_1.spawn;
|
package/oclif.manifest.json
CHANGED
|
@@ -2180,6 +2180,164 @@
|
|
|
2180
2180
|
"whoami.js"
|
|
2181
2181
|
]
|
|
2182
2182
|
},
|
|
2183
|
+
"autocomplete:create": {
|
|
2184
|
+
"aliases": [],
|
|
2185
|
+
"args": {},
|
|
2186
|
+
"description": "create autocomplete setup scripts and completion functions",
|
|
2187
|
+
"flags": {},
|
|
2188
|
+
"hasDynamicHelp": false,
|
|
2189
|
+
"hidden": true,
|
|
2190
|
+
"hiddenAliases": [],
|
|
2191
|
+
"id": "autocomplete:create",
|
|
2192
|
+
"pluginAlias": "heroku",
|
|
2193
|
+
"pluginName": "heroku",
|
|
2194
|
+
"pluginType": "core",
|
|
2195
|
+
"strict": true,
|
|
2196
|
+
"isESM": false,
|
|
2197
|
+
"relativePath": [
|
|
2198
|
+
"lib",
|
|
2199
|
+
"commands",
|
|
2200
|
+
"autocomplete",
|
|
2201
|
+
"create.js"
|
|
2202
|
+
]
|
|
2203
|
+
},
|
|
2204
|
+
"autocomplete:doctor": {
|
|
2205
|
+
"aliases": [],
|
|
2206
|
+
"args": {
|
|
2207
|
+
"shell": {
|
|
2208
|
+
"description": "shell type",
|
|
2209
|
+
"name": "shell",
|
|
2210
|
+
"required": false
|
|
2211
|
+
}
|
|
2212
|
+
},
|
|
2213
|
+
"description": "autocomplete diagnostic",
|
|
2214
|
+
"flags": {
|
|
2215
|
+
"verbose": {
|
|
2216
|
+
"description": "list completable commands",
|
|
2217
|
+
"name": "verbose",
|
|
2218
|
+
"allowNo": false,
|
|
2219
|
+
"type": "boolean"
|
|
2220
|
+
}
|
|
2221
|
+
},
|
|
2222
|
+
"hasDynamicHelp": false,
|
|
2223
|
+
"hidden": true,
|
|
2224
|
+
"hiddenAliases": [],
|
|
2225
|
+
"id": "autocomplete:doctor",
|
|
2226
|
+
"pluginAlias": "heroku",
|
|
2227
|
+
"pluginName": "heroku",
|
|
2228
|
+
"pluginType": "core",
|
|
2229
|
+
"strict": true,
|
|
2230
|
+
"isESM": false,
|
|
2231
|
+
"relativePath": [
|
|
2232
|
+
"lib",
|
|
2233
|
+
"commands",
|
|
2234
|
+
"autocomplete",
|
|
2235
|
+
"doctor.js"
|
|
2236
|
+
]
|
|
2237
|
+
},
|
|
2238
|
+
"autocomplete": {
|
|
2239
|
+
"aliases": [],
|
|
2240
|
+
"args": {
|
|
2241
|
+
"shell": {
|
|
2242
|
+
"description": "shell type",
|
|
2243
|
+
"name": "shell",
|
|
2244
|
+
"required": false
|
|
2245
|
+
}
|
|
2246
|
+
},
|
|
2247
|
+
"description": "display autocomplete installation instructions",
|
|
2248
|
+
"examples": [
|
|
2249
|
+
"$ heroku autocomplete",
|
|
2250
|
+
"$ heroku autocomplete bash",
|
|
2251
|
+
"$ heroku autocomplete zsh",
|
|
2252
|
+
"$ heroku autocomplete --refresh-cache"
|
|
2253
|
+
],
|
|
2254
|
+
"flags": {
|
|
2255
|
+
"refresh-cache": {
|
|
2256
|
+
"char": "r",
|
|
2257
|
+
"description": "refresh cache only (ignores displaying instructions)",
|
|
2258
|
+
"name": "refresh-cache",
|
|
2259
|
+
"allowNo": false,
|
|
2260
|
+
"type": "boolean"
|
|
2261
|
+
}
|
|
2262
|
+
},
|
|
2263
|
+
"hasDynamicHelp": false,
|
|
2264
|
+
"hiddenAliases": [],
|
|
2265
|
+
"id": "autocomplete",
|
|
2266
|
+
"pluginAlias": "heroku",
|
|
2267
|
+
"pluginName": "heroku",
|
|
2268
|
+
"pluginType": "core",
|
|
2269
|
+
"strict": true,
|
|
2270
|
+
"isESM": false,
|
|
2271
|
+
"relativePath": [
|
|
2272
|
+
"lib",
|
|
2273
|
+
"commands",
|
|
2274
|
+
"autocomplete",
|
|
2275
|
+
"index.js"
|
|
2276
|
+
]
|
|
2277
|
+
},
|
|
2278
|
+
"autocomplete:options": {
|
|
2279
|
+
"aliases": [],
|
|
2280
|
+
"args": {
|
|
2281
|
+
"completion": {
|
|
2282
|
+
"name": "completion"
|
|
2283
|
+
}
|
|
2284
|
+
},
|
|
2285
|
+
"description": "display arg or flag completion options (used internally by completion functions)",
|
|
2286
|
+
"flags": {
|
|
2287
|
+
"app": {
|
|
2288
|
+
"char": "a",
|
|
2289
|
+
"description": "app to run command against",
|
|
2290
|
+
"hidden": true,
|
|
2291
|
+
"name": "app",
|
|
2292
|
+
"required": false,
|
|
2293
|
+
"hasDynamicHelp": false,
|
|
2294
|
+
"multiple": false,
|
|
2295
|
+
"type": "option"
|
|
2296
|
+
}
|
|
2297
|
+
},
|
|
2298
|
+
"hasDynamicHelp": false,
|
|
2299
|
+
"hidden": true,
|
|
2300
|
+
"hiddenAliases": [],
|
|
2301
|
+
"id": "autocomplete:options",
|
|
2302
|
+
"pluginAlias": "heroku",
|
|
2303
|
+
"pluginName": "heroku",
|
|
2304
|
+
"pluginType": "core",
|
|
2305
|
+
"strict": true,
|
|
2306
|
+
"isESM": false,
|
|
2307
|
+
"relativePath": [
|
|
2308
|
+
"lib",
|
|
2309
|
+
"commands",
|
|
2310
|
+
"autocomplete",
|
|
2311
|
+
"options.js"
|
|
2312
|
+
]
|
|
2313
|
+
},
|
|
2314
|
+
"autocomplete:script": {
|
|
2315
|
+
"aliases": [],
|
|
2316
|
+
"args": {
|
|
2317
|
+
"shell": {
|
|
2318
|
+
"description": "shell type",
|
|
2319
|
+
"name": "shell",
|
|
2320
|
+
"required": false
|
|
2321
|
+
}
|
|
2322
|
+
},
|
|
2323
|
+
"description": "display autocomplete setup script for shell",
|
|
2324
|
+
"flags": {},
|
|
2325
|
+
"hasDynamicHelp": false,
|
|
2326
|
+
"hidden": true,
|
|
2327
|
+
"hiddenAliases": [],
|
|
2328
|
+
"id": "autocomplete:script",
|
|
2329
|
+
"pluginAlias": "heroku",
|
|
2330
|
+
"pluginName": "heroku",
|
|
2331
|
+
"pluginType": "core",
|
|
2332
|
+
"strict": true,
|
|
2333
|
+
"isESM": false,
|
|
2334
|
+
"relativePath": [
|
|
2335
|
+
"lib",
|
|
2336
|
+
"commands",
|
|
2337
|
+
"autocomplete",
|
|
2338
|
+
"script.js"
|
|
2339
|
+
]
|
|
2340
|
+
},
|
|
2183
2341
|
"authorizations:create": {
|
|
2184
2342
|
"aliases": [],
|
|
2185
2343
|
"args": {},
|
|
@@ -2420,164 +2578,6 @@
|
|
|
2420
2578
|
"update.js"
|
|
2421
2579
|
]
|
|
2422
2580
|
},
|
|
2423
|
-
"autocomplete:create": {
|
|
2424
|
-
"aliases": [],
|
|
2425
|
-
"args": {},
|
|
2426
|
-
"description": "create autocomplete setup scripts and completion functions",
|
|
2427
|
-
"flags": {},
|
|
2428
|
-
"hasDynamicHelp": false,
|
|
2429
|
-
"hidden": true,
|
|
2430
|
-
"hiddenAliases": [],
|
|
2431
|
-
"id": "autocomplete:create",
|
|
2432
|
-
"pluginAlias": "heroku",
|
|
2433
|
-
"pluginName": "heroku",
|
|
2434
|
-
"pluginType": "core",
|
|
2435
|
-
"strict": true,
|
|
2436
|
-
"isESM": false,
|
|
2437
|
-
"relativePath": [
|
|
2438
|
-
"lib",
|
|
2439
|
-
"commands",
|
|
2440
|
-
"autocomplete",
|
|
2441
|
-
"create.js"
|
|
2442
|
-
]
|
|
2443
|
-
},
|
|
2444
|
-
"autocomplete:doctor": {
|
|
2445
|
-
"aliases": [],
|
|
2446
|
-
"args": {
|
|
2447
|
-
"shell": {
|
|
2448
|
-
"description": "shell type",
|
|
2449
|
-
"name": "shell",
|
|
2450
|
-
"required": false
|
|
2451
|
-
}
|
|
2452
|
-
},
|
|
2453
|
-
"description": "autocomplete diagnostic",
|
|
2454
|
-
"flags": {
|
|
2455
|
-
"verbose": {
|
|
2456
|
-
"description": "list completable commands",
|
|
2457
|
-
"name": "verbose",
|
|
2458
|
-
"allowNo": false,
|
|
2459
|
-
"type": "boolean"
|
|
2460
|
-
}
|
|
2461
|
-
},
|
|
2462
|
-
"hasDynamicHelp": false,
|
|
2463
|
-
"hidden": true,
|
|
2464
|
-
"hiddenAliases": [],
|
|
2465
|
-
"id": "autocomplete:doctor",
|
|
2466
|
-
"pluginAlias": "heroku",
|
|
2467
|
-
"pluginName": "heroku",
|
|
2468
|
-
"pluginType": "core",
|
|
2469
|
-
"strict": true,
|
|
2470
|
-
"isESM": false,
|
|
2471
|
-
"relativePath": [
|
|
2472
|
-
"lib",
|
|
2473
|
-
"commands",
|
|
2474
|
-
"autocomplete",
|
|
2475
|
-
"doctor.js"
|
|
2476
|
-
]
|
|
2477
|
-
},
|
|
2478
|
-
"autocomplete": {
|
|
2479
|
-
"aliases": [],
|
|
2480
|
-
"args": {
|
|
2481
|
-
"shell": {
|
|
2482
|
-
"description": "shell type",
|
|
2483
|
-
"name": "shell",
|
|
2484
|
-
"required": false
|
|
2485
|
-
}
|
|
2486
|
-
},
|
|
2487
|
-
"description": "display autocomplete installation instructions",
|
|
2488
|
-
"examples": [
|
|
2489
|
-
"$ heroku autocomplete",
|
|
2490
|
-
"$ heroku autocomplete bash",
|
|
2491
|
-
"$ heroku autocomplete zsh",
|
|
2492
|
-
"$ heroku autocomplete --refresh-cache"
|
|
2493
|
-
],
|
|
2494
|
-
"flags": {
|
|
2495
|
-
"refresh-cache": {
|
|
2496
|
-
"char": "r",
|
|
2497
|
-
"description": "refresh cache only (ignores displaying instructions)",
|
|
2498
|
-
"name": "refresh-cache",
|
|
2499
|
-
"allowNo": false,
|
|
2500
|
-
"type": "boolean"
|
|
2501
|
-
}
|
|
2502
|
-
},
|
|
2503
|
-
"hasDynamicHelp": false,
|
|
2504
|
-
"hiddenAliases": [],
|
|
2505
|
-
"id": "autocomplete",
|
|
2506
|
-
"pluginAlias": "heroku",
|
|
2507
|
-
"pluginName": "heroku",
|
|
2508
|
-
"pluginType": "core",
|
|
2509
|
-
"strict": true,
|
|
2510
|
-
"isESM": false,
|
|
2511
|
-
"relativePath": [
|
|
2512
|
-
"lib",
|
|
2513
|
-
"commands",
|
|
2514
|
-
"autocomplete",
|
|
2515
|
-
"index.js"
|
|
2516
|
-
]
|
|
2517
|
-
},
|
|
2518
|
-
"autocomplete:options": {
|
|
2519
|
-
"aliases": [],
|
|
2520
|
-
"args": {
|
|
2521
|
-
"completion": {
|
|
2522
|
-
"name": "completion"
|
|
2523
|
-
}
|
|
2524
|
-
},
|
|
2525
|
-
"description": "display arg or flag completion options (used internally by completion functions)",
|
|
2526
|
-
"flags": {
|
|
2527
|
-
"app": {
|
|
2528
|
-
"char": "a",
|
|
2529
|
-
"description": "app to run command against",
|
|
2530
|
-
"hidden": true,
|
|
2531
|
-
"name": "app",
|
|
2532
|
-
"required": false,
|
|
2533
|
-
"hasDynamicHelp": false,
|
|
2534
|
-
"multiple": false,
|
|
2535
|
-
"type": "option"
|
|
2536
|
-
}
|
|
2537
|
-
},
|
|
2538
|
-
"hasDynamicHelp": false,
|
|
2539
|
-
"hidden": true,
|
|
2540
|
-
"hiddenAliases": [],
|
|
2541
|
-
"id": "autocomplete:options",
|
|
2542
|
-
"pluginAlias": "heroku",
|
|
2543
|
-
"pluginName": "heroku",
|
|
2544
|
-
"pluginType": "core",
|
|
2545
|
-
"strict": true,
|
|
2546
|
-
"isESM": false,
|
|
2547
|
-
"relativePath": [
|
|
2548
|
-
"lib",
|
|
2549
|
-
"commands",
|
|
2550
|
-
"autocomplete",
|
|
2551
|
-
"options.js"
|
|
2552
|
-
]
|
|
2553
|
-
},
|
|
2554
|
-
"autocomplete:script": {
|
|
2555
|
-
"aliases": [],
|
|
2556
|
-
"args": {
|
|
2557
|
-
"shell": {
|
|
2558
|
-
"description": "shell type",
|
|
2559
|
-
"name": "shell",
|
|
2560
|
-
"required": false
|
|
2561
|
-
}
|
|
2562
|
-
},
|
|
2563
|
-
"description": "display autocomplete setup script for shell",
|
|
2564
|
-
"flags": {},
|
|
2565
|
-
"hasDynamicHelp": false,
|
|
2566
|
-
"hidden": true,
|
|
2567
|
-
"hiddenAliases": [],
|
|
2568
|
-
"id": "autocomplete:script",
|
|
2569
|
-
"pluginAlias": "heroku",
|
|
2570
|
-
"pluginName": "heroku",
|
|
2571
|
-
"pluginType": "core",
|
|
2572
|
-
"strict": true,
|
|
2573
|
-
"isESM": false,
|
|
2574
|
-
"relativePath": [
|
|
2575
|
-
"lib",
|
|
2576
|
-
"commands",
|
|
2577
|
-
"autocomplete",
|
|
2578
|
-
"script.js"
|
|
2579
|
-
]
|
|
2580
|
-
},
|
|
2581
2581
|
"buildpacks:add": {
|
|
2582
2582
|
"aliases": [],
|
|
2583
2583
|
"args": {
|
|
@@ -6001,6 +6001,35 @@
|
|
|
6001
6001
|
"on.js"
|
|
6002
6002
|
]
|
|
6003
6003
|
},
|
|
6004
|
+
"mcp:start": {
|
|
6005
|
+
"aliases": [],
|
|
6006
|
+
"args": {},
|
|
6007
|
+
"description": "starts the Heroku platform MCP server in stdio mode",
|
|
6008
|
+
"flags": {
|
|
6009
|
+
"help": {
|
|
6010
|
+
"char": "h",
|
|
6011
|
+
"description": "Show CLI help.",
|
|
6012
|
+
"name": "help",
|
|
6013
|
+
"allowNo": false,
|
|
6014
|
+
"type": "boolean"
|
|
6015
|
+
}
|
|
6016
|
+
},
|
|
6017
|
+
"hasDynamicHelp": false,
|
|
6018
|
+
"hidden": true,
|
|
6019
|
+
"hiddenAliases": [],
|
|
6020
|
+
"id": "mcp:start",
|
|
6021
|
+
"pluginAlias": "heroku",
|
|
6022
|
+
"pluginName": "heroku",
|
|
6023
|
+
"pluginType": "core",
|
|
6024
|
+
"strict": true,
|
|
6025
|
+
"isESM": false,
|
|
6026
|
+
"relativePath": [
|
|
6027
|
+
"lib",
|
|
6028
|
+
"commands",
|
|
6029
|
+
"mcp",
|
|
6030
|
+
"start.js"
|
|
6031
|
+
]
|
|
6032
|
+
},
|
|
6004
6033
|
"members:add": {
|
|
6005
6034
|
"aliases": [],
|
|
6006
6035
|
"args": {
|
|
@@ -14929,5 +14958,5 @@
|
|
|
14929
14958
|
]
|
|
14930
14959
|
}
|
|
14931
14960
|
},
|
|
14932
|
-
"version": "10.
|
|
14961
|
+
"version": "10.10.0"
|
|
14933
14962
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "heroku",
|
|
3
3
|
"description": "CLI to interact with Heroku",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.10.0",
|
|
5
5
|
"author": "Heroku",
|
|
6
6
|
"bin": "./bin/run",
|
|
7
7
|
"bugs": "https://github.com/heroku/cli/issues",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"@heroku/eventsource": "^1.0.7",
|
|
16
16
|
"@heroku/heroku-cli-util": "^9.0.2",
|
|
17
17
|
"@heroku/http-call": "^5.4.0",
|
|
18
|
+
"@heroku/mcp-server": "1.0.7-alpha.1",
|
|
18
19
|
"@heroku/plugin-ai": "^1.0.1",
|
|
19
20
|
"@inquirer/prompts": "^5.0.5",
|
|
20
21
|
"@oclif/core": "^2.16.0",
|
|
@@ -398,5 +399,5 @@
|
|
|
398
399
|
"version": "oclif readme --multi && git add README.md ../../docs"
|
|
399
400
|
},
|
|
400
401
|
"types": "lib/index.d.ts",
|
|
401
|
-
"gitHead": "
|
|
402
|
+
"gitHead": "552ceae24dcf2ee7a3bac9c1ba58f9d3fea4b988"
|
|
402
403
|
}
|