@theia/ai-mcp-server 1.65.0
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 +175 -0
- package/lib/browser/index.d.ts +3 -0
- package/lib/browser/index.d.ts.map +1 -0
- package/lib/browser/index.js +21 -0
- package/lib/browser/index.js.map +1 -0
- package/lib/browser/mcp-frontend-bootstrap.d.ts +17 -0
- package/lib/browser/mcp-frontend-bootstrap.d.ts.map +1 -0
- package/lib/browser/mcp-frontend-bootstrap.js +47 -0
- package/lib/browser/mcp-frontend-bootstrap.js.map +1 -0
- package/lib/browser/mcp-frontend-contribution.d.ts +44 -0
- package/lib/browser/mcp-frontend-contribution.d.ts.map +1 -0
- package/lib/browser/mcp-frontend-contribution.js +21 -0
- package/lib/browser/mcp-frontend-contribution.js.map +1 -0
- package/lib/browser/mcp-frontend-module.d.ts +4 -0
- package/lib/browser/mcp-frontend-module.d.ts.map +1 -0
- package/lib/browser/mcp-frontend-module.js +37 -0
- package/lib/browser/mcp-frontend-module.js.map +1 -0
- package/lib/browser/mcp-tool-delegate-client.d.ts +27 -0
- package/lib/browser/mcp-tool-delegate-client.d.ts.map +1 -0
- package/lib/browser/mcp-tool-delegate-client.js +128 -0
- package/lib/browser/mcp-tool-delegate-client.js.map +1 -0
- package/lib/common/index.d.ts +2 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +20 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/mcp-tool-delegate.d.ts +25 -0
- package/lib/common/mcp-tool-delegate.d.ts.map +1 -0
- package/lib/common/mcp-tool-delegate.js +22 -0
- package/lib/common/mcp-tool-delegate.js.map +1 -0
- package/lib/node/index.d.ts +5 -0
- package/lib/node/index.d.ts.map +1 -0
- package/lib/node/index.js +23 -0
- package/lib/node/index.js.map +1 -0
- package/lib/node/mcp-backend-contribution-manager.d.ts +16 -0
- package/lib/node/mcp-backend-contribution-manager.d.ts.map +1 -0
- package/lib/node/mcp-backend-contribution-manager.js +61 -0
- package/lib/node/mcp-backend-contribution-manager.js.map +1 -0
- package/lib/node/mcp-backend-module.d.ts +4 -0
- package/lib/node/mcp-backend-module.d.ts.map +1 -0
- package/lib/node/mcp-backend-module.js +56 -0
- package/lib/node/mcp-backend-module.js.map +1 -0
- package/lib/node/mcp-frontend-contribution-manager.d.ts +55 -0
- package/lib/node/mcp-frontend-contribution-manager.d.ts.map +1 -0
- package/lib/node/mcp-frontend-contribution-manager.js +242 -0
- package/lib/node/mcp-frontend-contribution-manager.js.map +1 -0
- package/lib/node/mcp-theia-server-impl.d.ts +32 -0
- package/lib/node/mcp-theia-server-impl.d.ts.map +1 -0
- package/lib/node/mcp-theia-server-impl.js +220 -0
- package/lib/node/mcp-theia-server-impl.js.map +1 -0
- package/lib/node/mcp-theia-server.d.ts +43 -0
- package/lib/node/mcp-theia-server.d.ts.map +1 -0
- package/lib/node/mcp-theia-server.js +22 -0
- package/lib/node/mcp-theia-server.js.map +1 -0
- package/lib/node/mcp-tool-frontend-delegate.d.ts +13 -0
- package/lib/node/mcp-tool-frontend-delegate.d.ts.map +1 -0
- package/lib/node/mcp-tool-frontend-delegate.js +66 -0
- package/lib/node/mcp-tool-frontend-delegate.js.map +1 -0
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.d.ts.map +1 -0
- package/lib/package.spec.js +26 -0
- package/lib/package.spec.js.map +1 -0
- package/package.json +52 -0
- package/src/browser/index.ts +18 -0
- package/src/browser/mcp-frontend-bootstrap.ts +43 -0
- package/src/browser/mcp-frontend-contribution.ts +67 -0
- package/src/browser/mcp-frontend-module.ts +42 -0
- package/src/browser/mcp-tool-delegate-client.ts +133 -0
- package/src/common/index.ts +17 -0
- package/src/common/mcp-tool-delegate.ts +43 -0
- package/src/node/index.ts +20 -0
- package/src/node/mcp-backend-contribution-manager.ts +56 -0
- package/src/node/mcp-backend-module.ts +75 -0
- package/src/node/mcp-frontend-contribution-manager.ts +268 -0
- package/src/node/mcp-theia-server-impl.ts +241 -0
- package/src/node/mcp-theia-server.ts +66 -0
- package/src/node/mcp-tool-frontend-delegate.ts +71 -0
- package/src/package.spec.ts +28 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2025 EclipseSource.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
18
|
+
import { ILogger } from '@theia/core/lib/common/logger';
|
|
19
|
+
import { BackendApplicationContribution } from '@theia/core/lib/node/backend-application';
|
|
20
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp';
|
|
21
|
+
import { generateUuid } from '@theia/core';
|
|
22
|
+
|
|
23
|
+
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp';
|
|
24
|
+
import * as express from '@theia/core/shared/express';
|
|
25
|
+
import { randomUUID } from 'crypto';
|
|
26
|
+
import { MCPTheiaServer } from './mcp-theia-server';
|
|
27
|
+
import { MCPBackendContributionManager } from './mcp-backend-contribution-manager';
|
|
28
|
+
import { MCPFrontendContributionManager } from './mcp-frontend-contribution-manager';
|
|
29
|
+
|
|
30
|
+
@injectable()
|
|
31
|
+
export class MCPTheiaServerImpl implements MCPTheiaServer, BackendApplicationContribution {
|
|
32
|
+
|
|
33
|
+
@inject(ILogger)
|
|
34
|
+
protected readonly logger: ILogger;
|
|
35
|
+
|
|
36
|
+
@inject(MCPBackendContributionManager)
|
|
37
|
+
protected readonly backendContributionManager: MCPBackendContributionManager;
|
|
38
|
+
|
|
39
|
+
@inject(MCPFrontendContributionManager)
|
|
40
|
+
protected readonly frontendContributionManager: MCPFrontendContributionManager;
|
|
41
|
+
|
|
42
|
+
protected server?: McpServer;
|
|
43
|
+
protected httpTransports: Map<string, StreamableHTTPServerTransport> = new Map();
|
|
44
|
+
protected httpApp?: express.Application;
|
|
45
|
+
protected running = false;
|
|
46
|
+
protected serverId: string = generateUuid();
|
|
47
|
+
|
|
48
|
+
async configure?(app: express.Application): Promise<void> {
|
|
49
|
+
this.httpApp = app;
|
|
50
|
+
|
|
51
|
+
try {
|
|
52
|
+
await this.start();
|
|
53
|
+
} catch (error) {
|
|
54
|
+
this.logger.error('Failed to start MCP server during initialization:', error);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async start(): Promise<void> {
|
|
59
|
+
if (this.running) {
|
|
60
|
+
throw new Error('MCP server is already running');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
this.server = new McpServer({
|
|
64
|
+
name: 'Theia MCP Server',
|
|
65
|
+
version: '1.0.0'
|
|
66
|
+
}, {
|
|
67
|
+
capabilities: {
|
|
68
|
+
tools: {
|
|
69
|
+
listChanged: true
|
|
70
|
+
},
|
|
71
|
+
resources: {
|
|
72
|
+
listChanged: true
|
|
73
|
+
},
|
|
74
|
+
prompts: {
|
|
75
|
+
listChanged: true
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
await this.registerContributions();
|
|
81
|
+
await this.setupHttpTransport();
|
|
82
|
+
|
|
83
|
+
this.running = true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
async stop(): Promise<void> {
|
|
87
|
+
if (!this.running) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
try {
|
|
92
|
+
if (this.serverId) {
|
|
93
|
+
await this.frontendContributionManager.unregisterFrontendContributions(this.serverId);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
for (const transport of this.httpTransports.values()) {
|
|
97
|
+
transport.close();
|
|
98
|
+
}
|
|
99
|
+
this.httpTransports.clear();
|
|
100
|
+
|
|
101
|
+
if (this.server) {
|
|
102
|
+
this.server.close();
|
|
103
|
+
this.server = undefined;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
this.running = false;
|
|
107
|
+
} catch (error) {
|
|
108
|
+
this.logger.error('Error stopping MCP server:', error);
|
|
109
|
+
throw error;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
getServer(): McpServer | undefined {
|
|
114
|
+
return this.server;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
isRunning(): boolean {
|
|
118
|
+
return this.running;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
getServerId(): string | undefined {
|
|
122
|
+
return this.serverId;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
protected async setupHttpTransport(): Promise<void> {
|
|
126
|
+
if (!this.server) {
|
|
127
|
+
throw new Error('Server not initialized');
|
|
128
|
+
}
|
|
129
|
+
if (!this.httpApp) {
|
|
130
|
+
throw new Error('AppServer not initialized');
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
this.setupHttpEndpoints(this.httpApp);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
protected setupHttpEndpoints(app: express.Application): void {
|
|
137
|
+
app.all('/mcp', async (req, res) => {
|
|
138
|
+
await this.handleStreamableHttpRequest(req, res);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
protected async handleStreamableHttpRequest(req: express.Request, res: express.Response): Promise<void> {
|
|
143
|
+
if (!this.server) {
|
|
144
|
+
res.status(503).json({
|
|
145
|
+
jsonrpc: '2.0',
|
|
146
|
+
error: {
|
|
147
|
+
code: -32000,
|
|
148
|
+
message: 'MCP Server not initialized',
|
|
149
|
+
},
|
|
150
|
+
id: undefined,
|
|
151
|
+
});
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const sessionId = req.headers['mcp-session-id'] as string | undefined;
|
|
156
|
+
let transport: StreamableHTTPServerTransport;
|
|
157
|
+
|
|
158
|
+
try {
|
|
159
|
+
if (sessionId && this.httpTransports.has(sessionId)) {
|
|
160
|
+
transport = this.httpTransports.get(sessionId)!;
|
|
161
|
+
} else {
|
|
162
|
+
transport = new StreamableHTTPServerTransport({
|
|
163
|
+
sessionIdGenerator: () => randomUUID(),
|
|
164
|
+
onsessioninitialized: newSessionId => {
|
|
165
|
+
this.httpTransports.set(newSessionId, transport);
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
transport.onclose = () => {
|
|
170
|
+
if (transport.sessionId) {
|
|
171
|
+
this.httpTransports.delete(transport.sessionId);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
await this.server.connect(transport);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
await transport.handleRequest(req, res, req.body);
|
|
179
|
+
} catch (error) {
|
|
180
|
+
this.logger.error('Error handling MCP Streamable HTTP request:', error);
|
|
181
|
+
if (!res.headersSent) {
|
|
182
|
+
res.status(500).json({
|
|
183
|
+
jsonrpc: '2.0',
|
|
184
|
+
error: {
|
|
185
|
+
code: -32603,
|
|
186
|
+
message: `Internal server error: ${error}`,
|
|
187
|
+
},
|
|
188
|
+
id: req.body?.id || undefined,
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
protected async registerContributions(): Promise<void> {
|
|
195
|
+
if (!this.server) {
|
|
196
|
+
throw new Error('Server not initialized');
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
await this.backendContributionManager.registerBackendContributions(this.server);
|
|
200
|
+
await this.registerFrontendContributions();
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
protected async registerFrontendContributions(): Promise<void> {
|
|
204
|
+
if (!this.server) {
|
|
205
|
+
throw new Error('Server not initialized');
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
try {
|
|
209
|
+
await this.frontendContributionManager.setMCPServer(this.server, this.serverId);
|
|
210
|
+
} catch (error) {
|
|
211
|
+
this.logger.debug('Frontend contributions registration failed (this is normal if no frontend is connected):', error);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
onStop(): void {
|
|
216
|
+
this.logger.debug('MCP Server stopping...');
|
|
217
|
+
|
|
218
|
+
if (this.running) {
|
|
219
|
+
try {
|
|
220
|
+
if (this.serverId) {
|
|
221
|
+
this.frontendContributionManager.unregisterFrontendContributions(this.serverId)
|
|
222
|
+
.catch(error => this.logger.warn('Failed to unregister frontend contributions during shutdown:', error));
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
for (const transport of this.httpTransports.values()) {
|
|
226
|
+
transport.close();
|
|
227
|
+
}
|
|
228
|
+
this.httpTransports.clear();
|
|
229
|
+
|
|
230
|
+
if (this.server) {
|
|
231
|
+
this.server.close();
|
|
232
|
+
this.server = undefined;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
this.running = false;
|
|
236
|
+
} catch (error) {
|
|
237
|
+
this.logger.error('Error stopping MCP server:', error);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2025 EclipseSource.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { ContributionProvider } from '@theia/core/lib/common/contribution-provider';
|
|
18
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp';
|
|
19
|
+
|
|
20
|
+
export const MCPTheiaServer = Symbol('MCPTheiaServer');
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Main interface for the Theia MCP server (backend only)
|
|
24
|
+
*/
|
|
25
|
+
export interface MCPTheiaServer {
|
|
26
|
+
/**
|
|
27
|
+
* Start the MCP server with the given configuration
|
|
28
|
+
*/
|
|
29
|
+
start(): Promise<void>;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Stop the MCP server
|
|
33
|
+
*/
|
|
34
|
+
stop(): Promise<void>;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Get the underlying MCP server instance
|
|
38
|
+
*/
|
|
39
|
+
getServer(): McpServer | undefined;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Get the server ID
|
|
43
|
+
*/
|
|
44
|
+
getServerId(): string | undefined;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if the server is running
|
|
48
|
+
*/
|
|
49
|
+
isRunning(): boolean;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const MCPBackendContribution = Symbol('MCPBackendContribution');
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Contribution interface for extending the MCP server with backend-only contributions
|
|
56
|
+
*/
|
|
57
|
+
export interface MCPBackendContribution {
|
|
58
|
+
/**
|
|
59
|
+
* Configure MCP server (for backend contributions)
|
|
60
|
+
* @param server The MCP server instance to configure
|
|
61
|
+
*/
|
|
62
|
+
configure(server: McpServer): Promise<void> | void;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export const MCPBackendContributionProvider = Symbol('MCPBackendContributionProvider');
|
|
66
|
+
export interface MCPBackendContributionProvider extends ContributionProvider<MCPBackendContribution> { }
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2025 EclipseSource.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { injectable } from '@theia/core/shared/inversify';
|
|
18
|
+
import { Tool, Resource, ResourceContents, Prompt, PromptMessage } from '@modelcontextprotocol/sdk/types';
|
|
19
|
+
import { MCPToolFrontendDelegate, MCPToolDelegateClient } from '../common/mcp-tool-delegate';
|
|
20
|
+
|
|
21
|
+
@injectable()
|
|
22
|
+
export class MCPToolFrontendDelegateImpl implements MCPToolFrontendDelegate {
|
|
23
|
+
|
|
24
|
+
private client?: MCPToolDelegateClient;
|
|
25
|
+
|
|
26
|
+
setClient(client: MCPToolDelegateClient): void {
|
|
27
|
+
this.client = client;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async callTool(serverId: string, toolName: string, args: unknown): Promise<unknown> {
|
|
31
|
+
if (!this.client) {
|
|
32
|
+
throw new Error('MCPToolDelegateClient not set');
|
|
33
|
+
}
|
|
34
|
+
return this.client.callTool(serverId, toolName, args);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async listTools(serverId: string): Promise<Tool[]> {
|
|
38
|
+
if (!this.client) {
|
|
39
|
+
throw new Error('MCPToolDelegateClient not set');
|
|
40
|
+
}
|
|
41
|
+
return this.client.listTools(serverId);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
async listResources(serverId: string): Promise<Resource[]> {
|
|
45
|
+
if (!this.client) {
|
|
46
|
+
throw new Error('MCPToolDelegateClient not set');
|
|
47
|
+
}
|
|
48
|
+
return this.client.listResources(serverId);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
async readResource(serverId: string, uri: string): Promise<ResourceContents> {
|
|
52
|
+
if (!this.client) {
|
|
53
|
+
throw new Error('MCPToolDelegateClient not set');
|
|
54
|
+
}
|
|
55
|
+
return this.client.readResource(serverId, uri);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async listPrompts(serverId: string): Promise<Prompt[]> {
|
|
59
|
+
if (!this.client) {
|
|
60
|
+
throw new Error('MCPToolDelegateClient not set');
|
|
61
|
+
}
|
|
62
|
+
return this.client.listPrompts(serverId);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
async getPrompt(serverId: string, name: string, args: unknown): Promise<PromptMessage[]> {
|
|
66
|
+
if (!this.client) {
|
|
67
|
+
throw new Error('MCPToolDelegateClient not set');
|
|
68
|
+
}
|
|
69
|
+
return this.client.getPrompt(serverId, name, args);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2025 EclipseSource GmbH and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
/* note: this bogus test file is required so that
|
|
18
|
+
we are able to run mocha unit tests on this
|
|
19
|
+
package, without having any actual unit tests in it.
|
|
20
|
+
This way a coverage report will be generated,
|
|
21
|
+
showing 0% coverage, instead of no report.
|
|
22
|
+
This file can be removed once we have real unit
|
|
23
|
+
tests in place. */
|
|
24
|
+
|
|
25
|
+
describe('ai-mcp-server package', () => {
|
|
26
|
+
|
|
27
|
+
it('support code coverage statistics', () => true);
|
|
28
|
+
});
|