@arbotdev/metis-mcp 1.0.1 → 1.0.2

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 CHANGED
@@ -29,7 +29,7 @@ Add to `~/.cursor/mcp.json`:
29
29
  "mcpServers": {
30
30
  "metis": {
31
31
  "command": "npx",
32
- "args": ["-y", "@arbotdev/metis-mcp@1.0.0"],
32
+ "args": ["-y", "@arbotdev/metis-mcp@1.0.2"],
33
33
  "env": {
34
34
  "METIS_API_URL": "https://metis-api-13539721132.us-central1.run.app",
35
35
  "METIS_API_TOKEN": "your-jwt-token-here"
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- "use strict";
3
2
  /**
4
3
  * Metis MCP Server
5
4
  *
@@ -17,43 +16,9 @@
17
16
  * - METIS_API_URL: API base URL (default: production)
18
17
  * - METIS_API_TOKEN: JWT token for authentication (REQUIRED)
19
18
  */
20
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- var desc = Object.getOwnPropertyDescriptor(m, k);
23
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
- desc = { enumerable: true, get: function() { return m[k]; } };
25
- }
26
- Object.defineProperty(o, k2, desc);
27
- }) : (function(o, m, k, k2) {
28
- if (k2 === undefined) k2 = k;
29
- o[k2] = m[k];
30
- }));
31
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
32
- Object.defineProperty(o, "default", { enumerable: true, value: v });
33
- }) : function(o, v) {
34
- o["default"] = v;
35
- });
36
- var __importStar = (this && this.__importStar) || (function () {
37
- var ownKeys = function(o) {
38
- ownKeys = Object.getOwnPropertyNames || function (o) {
39
- var ar = [];
40
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
41
- return ar;
42
- };
43
- return ownKeys(o);
44
- };
45
- return function (mod) {
46
- if (mod && mod.__esModule) return mod;
47
- var result = {};
48
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
49
- __setModuleDefault(result, mod);
50
- return result;
51
- };
52
- })();
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- const index_js_1 = require("@modelcontextprotocol/sdk/server/index.js");
55
- const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
56
- const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
19
+ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
20
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
21
+ import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
57
22
  // Configuration
58
23
  const METIS_API_URL = process.env.METIS_API_URL || "https://metis-api-i5j6s4n2zq-uc.a.run.app";
59
24
  const METIS_API_TOKEN = process.env.METIS_API_TOKEN || "";
@@ -282,7 +247,7 @@ METIS_API_TOKEN environment variable is not set.
282
247
  }
283
248
  async function fetchJson(url, options) {
284
249
  // Dynamic import for node-fetch
285
- const { default: fetch } = await Promise.resolve().then(() => __importStar(require("node-fetch")));
250
+ const { default: fetch } = await import("node-fetch");
286
251
  const headers = {
287
252
  ...getAuthHeaders(),
288
253
  ...options?.headers,
@@ -557,7 +522,7 @@ async function handleDoctor() {
557
522
  // Check API connectivity
558
523
  result += `### API Connectivity\n`;
559
524
  try {
560
- const { default: fetch } = await Promise.resolve().then(() => __importStar(require("node-fetch")));
525
+ const { default: fetch } = await import("node-fetch");
561
526
  const healthResp = await fetch(`${METIS_API_URL}/health`, {
562
527
  headers: getAuthHeaders(),
563
528
  });
@@ -604,7 +569,7 @@ async function handleDoctor() {
604
569
  // MCP Server
605
570
  // =============================================================================
606
571
  async function main() {
607
- const server = new index_js_1.Server({
572
+ const server = new Server({
608
573
  name: "metis-mcp-server",
609
574
  version: "1.0.0",
610
575
  }, {
@@ -613,11 +578,11 @@ async function main() {
613
578
  },
614
579
  });
615
580
  // List available tools
616
- server.setRequestHandler(types_js_1.ListToolsRequestSchema, async () => ({
581
+ server.setRequestHandler(ListToolsRequestSchema, async () => ({
617
582
  tools: TOOLS,
618
583
  }));
619
584
  // Handle tool calls
620
- server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
585
+ server.setRequestHandler(CallToolRequestSchema, async (request) => {
621
586
  const { name, arguments: args } = request.params;
622
587
  try {
623
588
  let result;
@@ -656,7 +621,7 @@ async function main() {
656
621
  }
657
622
  });
658
623
  // Start server
659
- const transport = new stdio_js_1.StdioServerTransport();
624
+ const transport = new StdioServerTransport();
660
625
  await server.connect(transport);
661
626
  console.error("Metis MCP Server running on stdio");
662
627
  }
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@arbotdev/metis-mcp",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Metis MCP Server - Code intelligence tools for Cursor/VS Code AI chat",
5
+ "type": "module",
5
6
  "main": "dist/index.js",
6
7
  "bin": {
7
8
  "metis-mcp": "dist/index.js"