xmcp 0.0.1 → 0.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.
@@ -0,0 +1,5 @@
1
+ export declare const runtimeFolder = ".xmcp";
2
+ export declare const runtimeFolderPath: string;
3
+ export declare const processFolder: string;
4
+ export declare const outputPath: string;
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,UAAU,CAAC;AACrC,eAAO,MAAM,iBAAiB,QAA0C,CAAC;AAEzE,eAAO,MAAM,aAAa,QAAgB,CAAC;AAC3C,eAAO,MAAM,UAAU,QAAmC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function createFolder(folderPath: string): void;
2
+ //# sourceMappingURL=fs-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fs-utils.d.ts","sourceRoot":"","sources":["../../src/utils/fs-utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,QAI9C"}
@@ -0,0 +1,2 @@
1
+ export declare function generateImportCode(pathlist: string[]): string;
2
+ //# sourceMappingURL=generate-import-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-import-code.d.ts","sourceRoot":"","sources":["../../src/utils/generate-import-code.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CAS7D"}
@@ -0,0 +1,5 @@
1
+ import { Configuration } from "webpack";
2
+ import { CompilerMode } from "..";
3
+ import { XmcpConfig } from "./parse-config";
4
+ export declare function getWebpackConfig(mode: CompilerMode, xmcpConfig: XmcpConfig): Configuration;
5
+ //# sourceMappingURL=get-webpack-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-webpack-config.d.ts","sourceRoot":"","sources":["../../src/utils/get-webpack-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,aAAa,EAA+B,MAAM,SAAS,CAAC;AAK/E,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAGL,UAAU,EACX,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,YAAY,EAClB,UAAU,EAAE,UAAU,GACrB,aAAa,CAuEf"}
@@ -0,0 +1,35 @@
1
+ import { z } from "zod";
2
+ export declare const DEFAULT_SSE_PORT = 3001;
3
+ export declare const DEFAULT_SSE_BODY_SIZE_LIMIT: number;
4
+ declare const configSchema: z.ZodObject<{
5
+ sse: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
6
+ port: z.ZodDefault<z.ZodNumber>;
7
+ bodySizeLimit: z.ZodDefault<z.ZodNumber>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ port: number;
10
+ bodySizeLimit: number;
11
+ }, {
12
+ port?: number | undefined;
13
+ bodySizeLimit?: number | undefined;
14
+ }>]>>;
15
+ stdio: z.ZodOptional<z.ZodBoolean>;
16
+ webpack: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodAny>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ sse?: boolean | {
19
+ port: number;
20
+ bodySizeLimit: number;
21
+ } | undefined;
22
+ stdio?: boolean | undefined;
23
+ webpack?: ((args_0: any, ...args: unknown[]) => any) | undefined;
24
+ }, {
25
+ sse?: boolean | {
26
+ port?: number | undefined;
27
+ bodySizeLimit?: number | undefined;
28
+ } | undefined;
29
+ stdio?: boolean | undefined;
30
+ webpack?: ((args_0: any, ...args: unknown[]) => any) | undefined;
31
+ }>;
32
+ export type XmcpConfig = z.infer<typeof configSchema>;
33
+ export declare function getConfig(configFilePath: string): XmcpConfig;
34
+ export {};
35
+ //# sourceMappingURL=parse-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-config.d.ts","sourceRoot":"","sources":["../../src/utils/parse-config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,OAAO,CAAC;AACrC,eAAO,MAAM,2BAA2B,QAAmB,CAAC;AAE5D,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYhB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAgBtD,wBAAgB,SAAS,CAAC,cAAc,EAAE,MAAM,GAAG,UAAU,CAU5D"}
package/package.json CHANGED
@@ -1,46 +1,50 @@
1
1
  {
2
2
  "name": "xmcp",
3
3
  "description": "The MCP framework",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
7
8
  "bin": {
8
- "xmcp": "./dist/cli.js"
9
+ "xmcp": "dist/cli.js"
9
10
  },
10
11
  "files": [
11
12
  "dist"
12
13
  ],
13
14
  "scripts": {
14
- "build": "cross-env NODE_ENV=production tsx --tsconfig ./compiler.tsconfig.json ./compiler/index.ts",
15
- "dev": "cross-env NODE_ENV=development tsx --watch --tsconfig ./compiler.tsconfig.json ./compiler/index.ts"
15
+ "build": "cross-env NODE_ENV=production tsx --tsconfig ./compiler.tsconfig.json ./compiler/index.ts && tsc --emitDeclarationOnly",
16
+ "dev": "cross-env NODE_ENV=development tsx --watch --tsconfig ./compiler.tsconfig.json ./compiler/index.ts && tsc --emitDeclarationOnly --watch"
16
17
  },
17
18
  "dependencies": {
19
+ "@modelcontextprotocol/inspector": "^0.12.0",
18
20
  "@modelcontextprotocol/sdk": "^1.11.4",
19
21
  "@swc/core": "^1.11.24",
20
22
  "@types/express": "^5.0.1",
21
23
  "@types/webpack-node-externals": "^3.0.4",
22
24
  "chalk": "^5.2.0",
23
- "chokidar": "^3.5.3",
25
+ "chokidar": "^3.6.0",
24
26
  "clean-webpack-plugin": "^4.0.0",
25
27
  "commander": "^10.0.0",
26
28
  "cross-env": "^7.0.3",
27
29
  "del": "^7.0.0",
30
+ "express": "^4.19.1",
28
31
  "fork-ts-checker-webpack-plugin": "^8.0.0",
29
32
  "fs-extra": "^11.3.0",
30
33
  "glob": "^11.0.2",
31
34
  "handlebars": "^4.7.7",
32
- "swc-loader": "^0.2.6",
33
- "ts-loader": "^9.4.2",
34
35
  "tsx": "^4.19.4",
35
36
  "webpack": "^5.99.7",
36
37
  "webpack-node-externals": "^3.0.0",
37
- "webpack-virtual-modules": "^0.5.0"
38
+ "webpack-virtual-modules": "^0.5.0",
39
+ "eslint-config-custom": "workspace:"
38
40
  },
39
41
  "devDependencies": {
40
42
  "@types/fs-extra": "^11.0.4",
41
43
  "@types/node": "^22",
42
44
  "copy-webpack-plugin": "^12.0.2",
43
45
  "node-loader": "^1.0.1",
46
+ "swc-loader": "^0.2.6",
47
+ "ts-loader": "^9.4.2",
44
48
  "typescript": "^5.0.4",
45
49
  "zod": "^3.22.4"
46
50
  }