Skip to content

Commit cc73dd6

Browse files
authored
Merge pull request #2 from node-opcua/feat/mcp-server-and-deps-upgrade
feat: introduce @node-i3x/mcp server and upgrade monorepo dependencies
2 parents 94771ef + 0e679d0 commit cc73dd6

29 files changed

Lines changed: 5009 additions & 3178 deletions

‎README.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ graph TB
100100
| [`@node-i3x/pseudo-session-connector`](./packages/pseudo-session-connector) | PseudoSession adapter — implements `IDataSourcePort` using `node-opcua` PseudoSession (embedded in-process, zero network) | ✅ Stable |
101101
| [`@node-i3x/rest-server`](./packages/rest-server) | Fastify REST routes implementing the i3X Beta API surface | ✅ Stable |
102102
| [`@node-i3x/app`](./packages/app) | Composition root — wires all packages together, entry point | ✅ Stable |
103+
| [`@node-i3x/mcp`](./packages/mcp) | Model Context Protocol (MCP) server — connects Claude, Gemini, Cursor & AI agents to i3X/OPC UA | ✅ Stable |
103104
| [`@node-i3x/demo-embedded`](./packages/demo-embedded) | Embedded demo with live dashboard — OPC UA server + i3X API wired via PseudoSession | 🧪 Demo |
104105

105106
---
@@ -134,6 +135,39 @@ curl http://127.0.0.1:8000/health
134135

135136
---
136137

138+
## AI Agent Integration (Model Context Protocol)
139+
140+
Connect AI assistants (Claude Desktop, Google Gemini, Cursor IDE) directly to your factory floor or i3X gateway:
141+
142+
```bash
143+
# Run the MCP server directly via npx
144+
I3X_SERVER_URL=http://127.0.0.1:8000 npx @node-i3x/mcp
145+
```
146+
147+
Add to your `claude_desktop_config.json`:
148+
```json
149+
{
150+
"mcpServers": {
151+
"node-i3x": {
152+
"command": "npx",
153+
"args": ["-y", "@node-i3x/mcp"],
154+
"env": {
155+
"I3X_SERVER_URL": "http://127.0.0.1:8000"
156+
}
157+
}
158+
}
159+
}
160+
```
161+
162+
Now Claude or Cursor can diagnose machinery in single turns:
163+
- `"Inspect Boiler_101. Is current temperature normal according to its schema definition?"`
164+
- `"Explore plant hierarchy and summarize any assets with Bad quality flags."`
165+
- `"Query telemetry trends for Pump_101 over the last 2 hours."`
166+
167+
See [`packages/mcp`](./packages/mcp) for full documentation.
168+
169+
---
170+
137171
## Configuration
138172

139173
All configuration is via environment variables (or `.env` file):

‎biome.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.5.3/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.6.3/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",

0 commit comments

Comments
 (0)