@mastra/mcp-docs-server 1.1.39-alpha.2 → 1.1.39-alpha.4

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.
@@ -1,6 +1,6 @@
1
1
  # Model Providers
2
2
 
3
- Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 4178 models from 119 providers through a single API.
3
+ Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 4182 models from 120 providers through a single API.
4
4
 
5
5
  ## Features
6
6
 
@@ -0,0 +1,74 @@
1
+ # ![Lilac logo](https://models.dev/logos/lilac.svg)Lilac
2
+
3
+ Access 4 Lilac models through Mastra's model router. Authentication is handled automatically using the `LILAC_API_KEY` environment variable.
4
+
5
+ Learn more in the [Lilac documentation](https://docs.getlilac.com).
6
+
7
+ ```bash
8
+ LILAC_API_KEY=your-api-key
9
+ ```
10
+
11
+ ```typescript
12
+ import { Agent } from "@mastra/core/agent";
13
+
14
+ const agent = new Agent({
15
+ id: "my-agent",
16
+ name: "My Agent",
17
+ instructions: "You are a helpful assistant",
18
+ model: "lilac/google/gemma-4-31b-it"
19
+ });
20
+
21
+ // Generate a response
22
+ const response = await agent.generate("Hello!");
23
+
24
+ // Stream a response
25
+ const stream = await agent.stream("Tell me a story");
26
+ for await (const chunk of stream) {
27
+ console.log(chunk);
28
+ }
29
+ ```
30
+
31
+ > **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Lilac documentation](https://docs.getlilac.com) for details.
32
+
33
+ ## Models
34
+
35
+ | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
36
+ | ------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
37
+ | `lilac/google/gemma-4-31b-it` | 262K | | | | | | $0.11 | $0.35 |
38
+ | `lilac/minimaxai/minimax-m2.7` | 205K | | | | | | $0.30 | $1 |
39
+ | `lilac/moonshotai/kimi-k2.6` | 262K | | | | | | $0.70 | $4 |
40
+ | `lilac/zai-org/glm-5.1` | 203K | | | | | | $0.90 | $3 |
41
+
42
+ ## Advanced configuration
43
+
44
+ ### Custom headers
45
+
46
+ ```typescript
47
+ const agent = new Agent({
48
+ id: "custom-agent",
49
+ name: "custom-agent",
50
+ model: {
51
+ url: "https://api.getlilac.com/v1",
52
+ id: "lilac/google/gemma-4-31b-it",
53
+ apiKey: process.env.LILAC_API_KEY,
54
+ headers: {
55
+ "X-Custom-Header": "value"
56
+ }
57
+ }
58
+ });
59
+ ```
60
+
61
+ ### Dynamic model selection
62
+
63
+ ```typescript
64
+ const agent = new Agent({
65
+ id: "dynamic-agent",
66
+ name: "Dynamic Agent",
67
+ model: ({ requestContext }) => {
68
+ const useAdvanced = requestContext.task === "complex";
69
+ return useAdvanced
70
+ ? "lilac/zai-org/glm-5.1"
71
+ : "lilac/google/gemma-4-31b-it";
72
+ }
73
+ });
74
+ ```
@@ -53,6 +53,7 @@ Direct access to individual AI model providers. Each provider offers unique mode
53
53
  - [Kilo Gateway](https://mastra.ai/models/providers/kilo)
54
54
  - [Kimi For Coding](https://mastra.ai/models/providers/kimi-for-coding)
55
55
  - [KUAE Cloud Coding Plan](https://mastra.ai/models/providers/kuae-cloud-coding-plan)
56
+ - [Lilac](https://mastra.ai/models/providers/lilac)
56
57
  - [Llama](https://mastra.ai/models/providers/llama)
57
58
  - [LLM Gateway](https://mastra.ai/models/providers/llmgateway)
58
59
  - [LMStudio](https://mastra.ai/models/providers/lmstudio)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @mastra/mcp-docs-server
2
2
 
3
+ ## 1.1.39-alpha.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`9430352`](https://github.com/mastra-ai/mastra/commit/94303523460cb09dcd0d8139c11926029631d6ba)]:
8
+ - @mastra/mcp@1.7.1-alpha.0
9
+
3
10
  ## 1.1.39-alpha.0
4
11
 
5
12
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp-docs-server",
3
- "version": "1.1.39-alpha.2",
3
+ "version": "1.1.39-alpha.4",
4
4
  "description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "local-pkg": "^1.1.2",
31
31
  "zod": "^4.3.6",
32
32
  "@mastra/core": "1.36.0-alpha.0",
33
- "@mastra/mcp": "^1.7.0"
33
+ "@mastra/mcp": "^1.7.1-alpha.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@hono/node-server": "^1.19.11",
@@ -46,9 +46,9 @@
46
46
  "tsx": "^4.21.0",
47
47
  "typescript": "^6.0.3",
48
48
  "vitest": "4.1.5",
49
- "@internal/types-builder": "0.0.71",
50
49
  "@internal/lint": "0.0.96",
51
- "@mastra/core": "1.36.0-alpha.0"
50
+ "@mastra/core": "1.36.0-alpha.0",
51
+ "@internal/types-builder": "0.0.71"
52
52
  },
53
53
  "homepage": "https://mastra.ai",
54
54
  "repository": {