@theia/ai-mcp-server 1.67.0-next.3 → 1.67.0-next.59
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 +37 -9
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,26 +1,38 @@
|
|
|
1
|
-
|
|
1
|
+
<div align='center'>
|
|
2
|
+
|
|
3
|
+
<br />
|
|
4
|
+
|
|
5
|
+
<img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
|
|
6
|
+
|
|
7
|
+
<h2>ECLIPSE THEIA - AI MCP SERVER EXTENSION</h2>
|
|
8
|
+
|
|
9
|
+
<hr />
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
## Description
|
|
2
14
|
|
|
3
15
|
This package provides Model Context Protocol (MCP) server functionality for Theia, enabling AI tools to access Theia services and workspace information.
|
|
4
16
|
|
|
5
|
-
|
|
17
|
+
### Features
|
|
6
18
|
|
|
7
19
|
- **HTTP Transport**: RESTful HTTP API for MCP communication using the StreamableHTTPServerTransport
|
|
8
20
|
- **Backend MCP Contributions**: Register backend-only tools, resources, and prompts
|
|
9
21
|
- **Frontend MCP Contributions**: Register frontend-only tools, resources, and prompts that can access frontend services
|
|
10
22
|
- **Frontend-Backend Delegation**: Allows frontend contributions to be exposed through the backend MCP server
|
|
11
23
|
|
|
12
|
-
|
|
24
|
+
### Development Setup
|
|
13
25
|
|
|
14
|
-
|
|
26
|
+
#### Starting the MCP Server
|
|
15
27
|
|
|
16
28
|
1. Start Theia application
|
|
17
29
|
2. The MCP server will automatically start and be available at `/mcp` e.g. `http://localhost:3000/mcp`
|
|
18
30
|
|
|
19
|
-
|
|
31
|
+
### API Endpoints
|
|
20
32
|
|
|
21
33
|
- `POST /mcp` - MCP protocol endpoint (for all MCP protocol operations)
|
|
22
34
|
|
|
23
|
-
|
|
35
|
+
### Architecture
|
|
24
36
|
|
|
25
37
|
The MCP server architecture consists of:
|
|
26
38
|
|
|
@@ -30,7 +42,7 @@ The MCP server architecture consists of:
|
|
|
30
42
|
4. **Frontend Contributions**: Extensions that run in the browser frontend
|
|
31
43
|
5. **Frontend-Backend Bridge**: RPC mechanism to connect frontend and backend
|
|
32
44
|
|
|
33
|
-
|
|
45
|
+
### Creating Backend Contributions
|
|
34
46
|
|
|
35
47
|
Backend contributions run in the Node.js backend and have access to backend services:
|
|
36
48
|
|
|
@@ -90,7 +102,7 @@ bind(MyBackendContribution).toSelf().inSingletonScope();
|
|
|
90
102
|
bind(MCPBackendContribution).toService(MyBackendContribution);
|
|
91
103
|
```
|
|
92
104
|
|
|
93
|
-
|
|
105
|
+
### Creating Frontend Contributions
|
|
94
106
|
|
|
95
107
|
Frontend contributions run in the browser and have access to frontend services:
|
|
96
108
|
|
|
@@ -167,9 +179,25 @@ bind(MyFrontendContribution).toSelf().inSingletonScope();
|
|
|
167
179
|
bind(MCPFrontendContribution).toService(MyFrontendContribution);
|
|
168
180
|
```
|
|
169
181
|
|
|
170
|
-
|
|
182
|
+
### Security Considerations
|
|
171
183
|
|
|
172
184
|
- The MCP server exposes Theia functionality over HTTP
|
|
173
185
|
- Only enable the server in trusted environments
|
|
174
186
|
- Consider adding authentication and authorization for production use
|
|
175
187
|
- Restrict access to sensitive operations in your contributions
|
|
188
|
+
|
|
189
|
+
## Additional Information
|
|
190
|
+
|
|
191
|
+
- [API documentation for `@theia/ai-mcp-server`](https://eclipse-theia.github.io/theia/docs/next/modules/_theia_ai-mcp-server.html)
|
|
192
|
+
- [Theia - GitHub](https://github.com/eclipse-theia/theia)
|
|
193
|
+
- [Theia - Website](https://theia-ide.org/)
|
|
194
|
+
|
|
195
|
+
## License
|
|
196
|
+
|
|
197
|
+
- [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
|
|
198
|
+
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
|
|
199
|
+
|
|
200
|
+
## Trademark
|
|
201
|
+
|
|
202
|
+
"Theia" is a trademark of the Eclipse Foundation
|
|
203
|
+
<https://www.eclipse.org/theia>
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/ai-mcp-server",
|
|
3
|
-
"version": "1.67.0-next.
|
|
3
|
+
"version": "1.67.0-next.59+3f14297ea",
|
|
4
4
|
"description": "Theia - MCP Server",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@modelcontextprotocol/sdk": "^1.15.1",
|
|
7
|
-
"@theia/core": "1.67.0-next.
|
|
8
|
-
"@theia/workspace": "1.67.0-next.
|
|
7
|
+
"@theia/core": "1.67.0-next.59+3f14297ea",
|
|
8
|
+
"@theia/workspace": "1.67.0-next.59+3f14297ea",
|
|
9
9
|
"zod": "^3.23.8"
|
|
10
10
|
},
|
|
11
11
|
"publishConfig": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"nyc": {
|
|
49
49
|
"extends": "../../configs/nyc.json"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "3f14297ea2edcdb1fffd74afee0613e70b43e125"
|
|
52
52
|
}
|