@xyd-js/mcp-server 0.0.0-build-57e447b-20251021171927 → 0.0.0-build-66ba948-20251024195101
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/CHANGELOG.md +2 -2
- package/dist/index.js +41072 -23
- package/dist/mcp.d.ts +9 -1
- package/dist/mcp.js +41060 -17
- package/package.json +2 -2
- package/src/index.ts +9 -1
- package/src/mcp.ts +25 -2
package/dist/mcp.d.ts
CHANGED
|
@@ -6,11 +6,18 @@ declare global {
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
+
interface MCPServerOptions {
|
|
10
|
+
uniformSources: string | string[];
|
|
11
|
+
llmsSources: string | string[];
|
|
12
|
+
openAIApiKey: string;
|
|
13
|
+
}
|
|
9
14
|
export declare class MCPServer {
|
|
15
|
+
protected options: MCPServerOptions;
|
|
10
16
|
private transports;
|
|
11
17
|
private sessionTokens;
|
|
12
18
|
private uniformSources;
|
|
13
|
-
|
|
19
|
+
private llmsSources;
|
|
20
|
+
constructor(options: MCPServerOptions);
|
|
14
21
|
handleConnectionRequest(req: express.Request, res: express.Response): Promise<void>;
|
|
15
22
|
handleSessionRequest(req: express.Request, res: express.Response): Promise<void>;
|
|
16
23
|
private connect;
|
|
@@ -20,3 +27,4 @@ export declare class MCPServer {
|
|
|
20
27
|
private cleanupSession;
|
|
21
28
|
private cleanupAllSessions;
|
|
22
29
|
}
|
|
30
|
+
export {};
|