@hyperstar/mcp 0.1.14 → 0.1.15
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/dist/index.js +12 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,8 +2,20 @@
|
|
|
2
2
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
3
|
import { loadConfig } from "./config.js";
|
|
4
4
|
import { createHyperstarMcpServer } from "./server.js";
|
|
5
|
+
const MCP_SERVER_USAGE = [
|
|
6
|
+
"Usage: hyperstar-mcp [--help]",
|
|
7
|
+
"",
|
|
8
|
+
"Starts the Hyperstar stdio MCP server.",
|
|
9
|
+
"",
|
|
10
|
+
"Authentication:",
|
|
11
|
+
" Run `hyperstar login` first, or set HYPERSTAR_API_KEY in the MCP server environment.",
|
|
12
|
+
].join("\n");
|
|
5
13
|
/** Start the stdio MCP server process. */
|
|
6
14
|
async function main() {
|
|
15
|
+
if (process.argv.slice(2).some((arg) => arg === "--help" || arg === "-h")) {
|
|
16
|
+
process.stdout.write(`${MCP_SERVER_USAGE}\n`);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
7
19
|
const config = loadConfig();
|
|
8
20
|
const server = createHyperstarMcpServer(config);
|
|
9
21
|
await server.connect(new StdioServerTransport());
|