@apicircle/mcp-server 1.0.4 → 1.0.5

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 CHANGED
@@ -2,8 +2,86 @@
2
2
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
4
  import { z } from "zod";
5
+
6
+ // package.json
7
+ var package_default = {
8
+ name: "@apicircle/mcp-server",
9
+ version: "1.0.5",
10
+ private: false,
11
+ type: "module",
12
+ description: "Model Context Protocol server exposing API Circle Studio's workspace as a tool catalog. Used by Claude Desktop, ChatGPT, Cursor, GitHub Copilot, and any other MCP-compatible AI client.",
13
+ license: "SEE LICENSE IN LICENSE",
14
+ repository: {
15
+ type: "git",
16
+ url: "git+https://github.com/apicircle/studio.git",
17
+ directory: "packages/mcp-server"
18
+ },
19
+ homepage: "https://github.com/apicircle/studio#readme",
20
+ bugs: "https://github.com/apicircle/studio/issues",
21
+ engines: {
22
+ node: ">=20"
23
+ },
24
+ main: "./src/index.ts",
25
+ types: "./src/index.ts",
26
+ bin: {
27
+ "apicircle-mcp": "./dist/bin/mcp-server.cjs"
28
+ },
29
+ exports: {
30
+ ".": "./src/index.ts"
31
+ },
32
+ files: [
33
+ "dist"
34
+ ],
35
+ publishConfig: {
36
+ main: "./dist/index.cjs",
37
+ module: "./dist/index.js",
38
+ types: "./dist/index.d.cts",
39
+ exports: {
40
+ ".": {
41
+ import: {
42
+ types: "./dist/index.d.ts",
43
+ default: "./dist/index.js"
44
+ },
45
+ require: {
46
+ types: "./dist/index.d.cts",
47
+ default: "./dist/index.cjs"
48
+ }
49
+ }
50
+ }
51
+ },
52
+ scripts: {
53
+ build: "tsup",
54
+ check: "tsc --noEmit",
55
+ test: "vitest run",
56
+ clean: "rm -rf dist node_modules"
57
+ },
58
+ dependencies: {
59
+ "@apicircle/core": "workspace:*",
60
+ "@apicircle/mock-server-core": "workspace:*",
61
+ "@apicircle/shared": "workspace:*",
62
+ "@modelcontextprotocol/sdk": "^1.0.0",
63
+ zod: "^3.23.0"
64
+ },
65
+ devDependencies: {
66
+ "@types/node": "^20.0.0",
67
+ tsup: "^8.3.0",
68
+ typescript: "^5.4.0",
69
+ vitest: "^2.0.0"
70
+ }
71
+ };
72
+
73
+ // src/packageVersion.ts
74
+ function readPackageVersion() {
75
+ const version = package_default.version;
76
+ if (typeof version !== "string" || version.length === 0) {
77
+ throw new Error("Unable to read @apicircle/mcp-server package version");
78
+ }
79
+ return version;
80
+ }
81
+ var MCP_PACKAGE_VERSION = readPackageVersion();
82
+
83
+ // src/host/McpHost.ts
5
84
  var PACKAGE_NAME = "apicircle-mcp";
6
- var PACKAGE_VERSION = "1.0.0";
7
85
  var McpHost = class {
8
86
  server;
9
87
  tools;
@@ -11,7 +89,7 @@ var McpHost = class {
11
89
  constructor(options) {
12
90
  this.server = new McpServer({
13
91
  name: options.serverInfo?.name ?? PACKAGE_NAME,
14
- version: options.serverInfo?.version ?? PACKAGE_VERSION
92
+ version: options.serverInfo?.version ?? MCP_PACKAGE_VERSION
15
93
  });
16
94
  this.tools = options.tools;
17
95
  this.context = options.context;