@apicircle/mcp-server 1.0.3 → 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.cjs CHANGED
@@ -37,8 +37,86 @@ module.exports = __toCommonJS(index_exports);
37
37
  var import_mcp = require("@modelcontextprotocol/sdk/server/mcp.js");
38
38
  var import_stdio = require("@modelcontextprotocol/sdk/server/stdio.js");
39
39
  var import_zod = require("zod");
40
+
41
+ // package.json
42
+ var package_default = {
43
+ name: "@apicircle/mcp-server",
44
+ version: "1.0.5",
45
+ private: false,
46
+ type: "module",
47
+ 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.",
48
+ license: "SEE LICENSE IN LICENSE",
49
+ repository: {
50
+ type: "git",
51
+ url: "git+https://github.com/apicircle/studio.git",
52
+ directory: "packages/mcp-server"
53
+ },
54
+ homepage: "https://github.com/apicircle/studio#readme",
55
+ bugs: "https://github.com/apicircle/studio/issues",
56
+ engines: {
57
+ node: ">=20"
58
+ },
59
+ main: "./src/index.ts",
60
+ types: "./src/index.ts",
61
+ bin: {
62
+ "apicircle-mcp": "./dist/bin/mcp-server.cjs"
63
+ },
64
+ exports: {
65
+ ".": "./src/index.ts"
66
+ },
67
+ files: [
68
+ "dist"
69
+ ],
70
+ publishConfig: {
71
+ main: "./dist/index.cjs",
72
+ module: "./dist/index.js",
73
+ types: "./dist/index.d.cts",
74
+ exports: {
75
+ ".": {
76
+ import: {
77
+ types: "./dist/index.d.ts",
78
+ default: "./dist/index.js"
79
+ },
80
+ require: {
81
+ types: "./dist/index.d.cts",
82
+ default: "./dist/index.cjs"
83
+ }
84
+ }
85
+ }
86
+ },
87
+ scripts: {
88
+ build: "tsup",
89
+ check: "tsc --noEmit",
90
+ test: "vitest run",
91
+ clean: "rm -rf dist node_modules"
92
+ },
93
+ dependencies: {
94
+ "@apicircle/core": "workspace:*",
95
+ "@apicircle/mock-server-core": "workspace:*",
96
+ "@apicircle/shared": "workspace:*",
97
+ "@modelcontextprotocol/sdk": "^1.0.0",
98
+ zod: "^3.23.0"
99
+ },
100
+ devDependencies: {
101
+ "@types/node": "^20.0.0",
102
+ tsup: "^8.3.0",
103
+ typescript: "^5.4.0",
104
+ vitest: "^2.0.0"
105
+ }
106
+ };
107
+
108
+ // src/packageVersion.ts
109
+ function readPackageVersion() {
110
+ const version = package_default.version;
111
+ if (typeof version !== "string" || version.length === 0) {
112
+ throw new Error("Unable to read @apicircle/mcp-server package version");
113
+ }
114
+ return version;
115
+ }
116
+ var MCP_PACKAGE_VERSION = readPackageVersion();
117
+
118
+ // src/host/McpHost.ts
40
119
  var PACKAGE_NAME = "apicircle-mcp";
41
- var PACKAGE_VERSION = "1.0.0";
42
120
  var McpHost = class {
43
121
  server;
44
122
  tools;
@@ -46,7 +124,7 @@ var McpHost = class {
46
124
  constructor(options) {
47
125
  this.server = new import_mcp.McpServer({
48
126
  name: options.serverInfo?.name ?? PACKAGE_NAME,
49
- version: options.serverInfo?.version ?? PACKAGE_VERSION
127
+ version: options.serverInfo?.version ?? MCP_PACKAGE_VERSION
50
128
  });
51
129
  this.tools = options.tools;
52
130
  this.context = options.context;