@mcp-abap-adt/llm-agent-mcp 12.0.2
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 +34 -0
- package/package.json +29 -0
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# @mcp-abap-adt/llm-agent-mcp
|
|
2
|
+
|
|
3
|
+
MCP client wrapper, adapter, factory, and connection strategies for the SmartAgent runtime.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `MCPClientWrapper`, `MCPClientConfig`, `TransportType`
|
|
8
|
+
- `McpClientAdapter`
|
|
9
|
+
- `createDefaultMcpClient(...)`
|
|
10
|
+
- Connection strategies: `LazyConnectionStrategy`, `PeriodicConnectionStrategy`, `NoopConnectionStrategy`
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import {
|
|
16
|
+
MCPClientWrapper,
|
|
17
|
+
McpClientAdapter,
|
|
18
|
+
} from '@mcp-abap-adt/llm-agent-mcp';
|
|
19
|
+
|
|
20
|
+
const client = new MCPClientWrapper({
|
|
21
|
+
transport: 'stream-http',
|
|
22
|
+
url: process.env.MCP_ENDPOINT,
|
|
23
|
+
});
|
|
24
|
+
await client.connect();
|
|
25
|
+
|
|
26
|
+
const adapter = new McpClientAdapter(client);
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Dependencies
|
|
30
|
+
|
|
31
|
+
- `@mcp-abap-adt/llm-agent` — interfaces and DTOs.
|
|
32
|
+
- `@modelcontextprotocol/sdk` — official MCP SDK (runtime dependency).
|
|
33
|
+
|
|
34
|
+
See `docs/ARCHITECTURE.md` for the full SmartAgent package layout.
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mcp-abap-adt/llm-agent-mcp",
|
|
3
|
+
"version": "12.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc -p tsconfig.json",
|
|
19
|
+
"clean": "tsc -p tsconfig.json --clean",
|
|
20
|
+
"test": "node --import tsx/esm --test --test-reporter=spec 'src/**/*.test.ts'"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@mcp-abap-adt/llm-agent": "*",
|
|
24
|
+
"@modelcontextprotocol/sdk": "^1.28.0"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
}
|
|
29
|
+
}
|