llmist 17.3.0 → 17.5.1
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 +21 -0
- package/dist/chunk-HM7PUGPA.js +2252 -0
- package/dist/chunk-HM7PUGPA.js.map +1 -0
- package/dist/index.cjs +1415 -331
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +448 -13
- package/dist/index.d.ts +448 -13
- package/dist/index.js +486 -1679
- package/dist/index.js.map +1 -1
- package/dist/runtime-GKQ6QIQP.js +187 -0
- package/dist/runtime-GKQ6QIQP.js.map +1 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -57,9 +57,29 @@ console.log(answer);
|
|
|
57
57
|
- **Multi-provider** - OpenAI, Anthropic, Gemini, HuggingFace with unified API
|
|
58
58
|
- **Type-safe** - Full TypeScript inference from Zod schemas
|
|
59
59
|
- **Flexible hooks** - Observers, interceptors, and controllers for deep integration
|
|
60
|
+
- **MCP integration** - Consume stdio and Streamable HTTP MCP servers; publish llmist gadgets and skills as MCP tools and prompts
|
|
60
61
|
- **Built-in cost tracking** - Real-time token counting and cost estimation
|
|
61
62
|
- **Multimodal** - Vision and audio input support
|
|
62
63
|
|
|
64
|
+
## Model Context Protocol (MCP)
|
|
65
|
+
|
|
66
|
+
Attach MCP servers to an agent with the same gadget execution pipeline as native tools:
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
const answer = await LLMist.createAgent()
|
|
70
|
+
.withModel('sonnet')
|
|
71
|
+
.withMcpServer({
|
|
72
|
+
name: 'filesystem',
|
|
73
|
+
transport: 'stdio',
|
|
74
|
+
command: 'npx',
|
|
75
|
+
args: ['-y', '@modelcontextprotocol/server-filesystem', '/tmp'],
|
|
76
|
+
timeoutMs: 30000,
|
|
77
|
+
})
|
|
78
|
+
.askAndCollect('List files in /tmp');
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
llmist also exports `createMcpServer({ gadgets, skills })` so applications can publish native gadgets as MCP tools and skills as MCP prompts.
|
|
82
|
+
|
|
63
83
|
## Providers
|
|
64
84
|
|
|
65
85
|
Set one of these environment variables:
|
|
@@ -87,6 +107,7 @@ Full documentation at [llmist.dev](https://llmist.dev)
|
|
|
87
107
|
- [Getting Started](https://llmist.dev/library/getting-started/introduction/)
|
|
88
108
|
- [Creating Gadgets](https://llmist.dev/library/guides/creating-gadgets/)
|
|
89
109
|
- [Hooks System](https://llmist.dev/library/guides/hooks/)
|
|
110
|
+
- [MCP Integration](https://llmist.dev/library/advanced/mcp/)
|
|
90
111
|
- [Provider Configuration](https://llmist.dev/library/providers/overview/)
|
|
91
112
|
|
|
92
113
|
## Examples
|