@elsium-ai/mcp 0.1.6 → 0.1.7
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 +42 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# @elsium-ai/mcp
|
|
2
|
+
|
|
3
|
+
Model Context Protocol (MCP) support for [ElsiumAI](https://github.com/elsium-ai/elsium-ai) — bidirectional client and server bridge.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@elsium-ai/mcp)
|
|
6
|
+
[](https://github.com/elsium-ai/elsium-ai/blob/main/LICENSE)
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @elsium-ai/mcp @elsium-ai/core
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## What's Inside
|
|
15
|
+
|
|
16
|
+
- **MCP Client** — Connect to external MCP servers and use their tools
|
|
17
|
+
- **MCP Server** — Expose ElsiumAI tools and resources via MCP protocol
|
|
18
|
+
- **Bidirectional Bridge** — Full duplex communication between client and server
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { createMCPClient, createMCPServer } from '@elsium-ai/mcp'
|
|
24
|
+
|
|
25
|
+
// Client — connect to an MCP server
|
|
26
|
+
const client = createMCPClient({ url: 'http://localhost:3001/mcp' })
|
|
27
|
+
const tools = await client.listTools()
|
|
28
|
+
|
|
29
|
+
// Server — expose tools via MCP
|
|
30
|
+
const server = createMCPServer({
|
|
31
|
+
tools: myToolkit.tools,
|
|
32
|
+
resources: myResources,
|
|
33
|
+
})
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Part of ElsiumAI
|
|
37
|
+
|
|
38
|
+
This package is the MCP layer of the [ElsiumAI](https://github.com/elsium-ai/elsium-ai) framework. See the [full documentation](https://github.com/elsium-ai/elsium-ai) for guides and examples.
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
[MIT](https://github.com/elsium-ai/elsium-ai/blob/main/LICENSE)
|