@warlok-net/mcp-server 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/dist/cli.mjs ADDED
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ runServer
4
+ } from "./chunk-HTA6LITF.mjs";
5
+
6
+ // src/cli.ts
7
+ var apiKey = process.env.WARLOK_API_KEY;
8
+ var baseUrl = process.env.WARLOK_API_URL;
9
+ if (!apiKey) {
10
+ console.error("Error: WARLOK_API_KEY environment variable is required");
11
+ console.error("");
12
+ console.error("Usage:");
13
+ console.error(" WARLOK_API_KEY=wk_... warlok-mcp");
14
+ console.error("");
15
+ console.error("Or set it in your Claude Desktop config:");
16
+ console.error(" {");
17
+ console.error(' "mcpServers": {');
18
+ console.error(' "warlok": {');
19
+ console.error(' "command": "npx",');
20
+ console.error(' "args": ["@warlok-net/mcp-server"],');
21
+ console.error(' "env": {');
22
+ console.error(' "WARLOK_API_KEY": "wk_..."');
23
+ console.error(" }");
24
+ console.error(" }");
25
+ console.error(" }");
26
+ console.error(" }");
27
+ process.exit(1);
28
+ }
29
+ runServer(apiKey, baseUrl).catch((error) => {
30
+ console.error("Server error:", error);
31
+ process.exit(1);
32
+ });
@@ -0,0 +1,18 @@
1
+ import { Server } from '@modelcontextprotocol/sdk/server/index.js';
2
+
3
+ /**
4
+ * Warlok MCP Server
5
+ *
6
+ * Model Context Protocol server for Warlok generation workflows.
7
+ */
8
+
9
+ /**
10
+ * Create and configure the MCP server.
11
+ */
12
+ declare function createServer(apiKey: string, baseUrl?: string): Server;
13
+ /**
14
+ * Run the MCP server.
15
+ */
16
+ declare function runServer(apiKey: string, baseUrl?: string): Promise<void>;
17
+
18
+ export { createServer, runServer };
@@ -0,0 +1,18 @@
1
+ import { Server } from '@modelcontextprotocol/sdk/server/index.js';
2
+
3
+ /**
4
+ * Warlok MCP Server
5
+ *
6
+ * Model Context Protocol server for Warlok generation workflows.
7
+ */
8
+
9
+ /**
10
+ * Create and configure the MCP server.
11
+ */
12
+ declare function createServer(apiKey: string, baseUrl?: string): Server;
13
+ /**
14
+ * Run the MCP server.
15
+ */
16
+ declare function runServer(apiKey: string, baseUrl?: string): Promise<void>;
17
+
18
+ export { createServer, runServer };