heroku 10.9.0 → 10.10.0-beta.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 +30 -1
- 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
|
@@ -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-beta.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-beta.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": "17c65034d18b30dd3f5a254830e57993a1022bab"
|
|
402
403
|
}
|