You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add GitBook MCP server documentation
Adds documentation for ZenML's built-in GitBook MCP server that enables
AI code agents (Claude Code, Cursor, etc.) to query ZenML documentation
in real-time while coding.
Changes:
- docs/book/reference/llms-txt.md: Added comprehensive MCP server section
with setup instructions for Claude Code and Cursor, positioned as the
recommended approach alongside existing llms.txt documentation
- docs/book/toc.md: Updated page title to "MCP Docs & llms.txt" for
better discoverability
- AGENTS.md: Added "Documentation Access via MCP" subsection in
Development Workflow
- CLAUDE.md: Added "Use ZenML Docs via MCP" section with CLI setup
The MCP server endpoint (https://docs.zenml.io/~gitbook/mcp) provides
live documentation queries, reducing hallucinations and improving feature
discovery for AI coding assistants.
* Add MCP server quick-win to documentation
Adds a new quick-win entry (#14) showing developers how to connect
AI coding assistants to live ZenML docs via the GitBook MCP server.
This complements the MCP documentation added in the main PR by
providing a quick-start guide in the productivity-focused quick-wins page.
The entry includes setup instructions for Claude Code and Cursor,
emphasizes the 5-minute setup time, and follows the established
quick-wins format with Why/Setup/Features/Practices sections.
Copy file name to clipboardExpand all lines: AGENTS.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,9 @@ Use filesystem navigation tools to explore the codebase structure as needed.
62
62
- It resolves dependencies more quickly and reliably than pip
63
63
- It can resolve dependency conflicts that pip sometimes struggles with or takes a long time to resolve
64
64
65
+
### Documentation Access via MCP
66
+
ZenML documentation is available via a built-in GitBook MCP server: https://docs.zenml.io/~gitbook/mcp. IDE agents like Cursor and Claude Code can add this as an HTTP MCP server named 'ZenML Docs' to answer questions directly from the docs while you code. This enables live, source-of-truth lookups with fewer hallucinations and faster feature discovery. Note that the MCP server indexes the latest released docs, not the develop branch. For full setup details and examples, see docs/book/reference/llms-txt.md.
67
+
65
68
### Environment Variables
66
69
- Several environment variables are useful during ZenML development:
Copy file name to clipboardExpand all lines: CLAUDE.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,16 @@ This document provides guidance for Claude Code when working with the ZenML code
12
12
13
13
Use filesystem navigation tools to explore the codebase structure as needed.
14
14
15
+
## Use ZenML Docs via MCP
16
+
Claude Code can query ZenML documentation via the built-in GitBook MCP server: https://docs.zenml.io/~gitbook/mcp. This enables real-time, source-of-truth lookups from the docs while you code, reducing hallucinations and speeding up feature discovery.
17
+
18
+
Quick setup (CLI):
19
+
```bash
20
+
claude mcp add zenmldocs --transport http https://docs.zenml.io/~gitbook/mcp
21
+
```
22
+
23
+
Note: The MCP server indexes the latest released docs, not the develop branch. For full setup details and editor alternatives, see docs/book/reference/llms-txt.md.
Copy file name to clipboardExpand all lines: docs/book/reference/llms-txt.md
+43-1Lines changed: 43 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
icon: robot
3
-
description: The llms.txt file(s) for ZenML
3
+
description: Access ZenML documentation via MCP server or llms.txt
4
4
---
5
5
6
6
## About llms.txt
@@ -28,6 +28,48 @@ When working with LLMs (like ChatGPT, Claude, or others), you can use this file
28
28
- While prompting, instruct the LLM to only provide answers based on information contained in the file to avoid hallucinations
29
29
- For best results, use models with sufficient context window to process the entire file
30
30
31
+
## Use llms-full.txt for complete documentation context
32
+
33
+
The llms-full.txt file contains the entire ZenML documentation in a single, concatenated markdown file optimized for LLMs. Use it when you want to load all docs as context at once (for example, a one-shot grounding pass) rather than querying individual pages. Access it here: https://docs.zenml.io/llms-full.txt. For interactive, selective queries from your IDE, the built-in MCP server is still the recommended option.
34
+
35
+
## Use the built-in GitBook MCP server (recommended)
36
+
37
+
ZenML docs are also exposed through a native GitBook MCP server that IDE agents can query in real time.
38
+
39
+
- Endpoint: https://docs.zenml.io/~gitbook/mcp
40
+
41
+
### Quick setup
42
+
43
+
#### Claude Code (VS Code)
44
+
Run the following command in your terminal to add the server:
45
+
```bash
46
+
claude mcp add zenmldocs --transport http https://docs.zenml.io/~gitbook/mcp
47
+
```
48
+
49
+
#### Cursor
50
+
Add the server via Cursor's JSON settings (Settings → search "MCP" → Configure via JSON):
51
+
```json
52
+
{
53
+
"mcpServers": {
54
+
"zenmldocs": {
55
+
"transport": {
56
+
"type": "http",
57
+
"url": "https://docs.zenml.io/~gitbook/mcp"
58
+
}
59
+
}
60
+
}
61
+
}
62
+
```
63
+
64
+
### Why use it
65
+
- Live doc queries directly from your IDE agent
66
+
- Syntax-aware, source-of-truth answers with fewer hallucinations
67
+
- Faster feature discovery across guides, APIs, and examples
68
+
69
+
The MCP server indexes the latest released documentation, not the develop branch.
70
+
71
+
Prefer the native GitBook MCP server above for the best experience; if you prefer working directly with llms.txt or need alternative workflows, the following tools are helpful:
72
+
31
73
To use the llms.txt file in partnership with an MCP client, you can use the
|[Model Control Plane](#id-12-register-models-in-the-model-control-plane)| Track models and their lifecycle | Central hub for model lineage and governance |
26
26
|[Parent Docker images](#id-13-create-a-parent-docker-image-for-faster-builds)| Pre-configure your dependencies in a base image | Faster builds and consistent environments |
27
+
|[ZenML docs via MCP](#id-14-enable-ide-ai-zenml-docs-via-mcp-server)| Connect your IDE assistant to live ZenML docs | Faster, grounded answers and doc lookups while coding |
27
28
28
29
29
30
## 1 Log rich metadata on every run
@@ -804,3 +805,52 @@ settings:
804
805
For projects with heavy dependencies like deep learning frameworks, this approach can cut build times by 80-90%, turning a 5-minute build into a 30-second one. This is especially valuable in cloud environments where you pay for build time.
**Why** -- wire your IDE AI assistant into the live ZenML docs in under 5 minutes. Get grounded answers, code snippets, and API lookups without context switching or hallucinations—perfect if you already use Claude Code or Cursor.
812
+
813
+
{% hint style="info" %}
814
+
The MCP server works with any MCP-compatible client. Below we demonstrate popular examples using Claude Code (VS Code) and Cursor. The server indexes the latest released documentation, not the develop branch.
815
+
{% endhint %}
816
+
817
+
**Setup**
818
+
819
+
### Claude Code (VS Code)
820
+
```bash
821
+
claude mcp add zenmldocs --transport http https://docs.zenml.io/~gitbook/mcp
822
+
```
823
+
824
+
### Cursor (JSON settings)
825
+
```json
826
+
{
827
+
"mcpServers": {
828
+
"zenmldocs": {
829
+
"transport": {
830
+
"type": "http",
831
+
"url": "https://docs.zenml.io/~gitbook/mcp"
832
+
}
833
+
}
834
+
}
835
+
}
836
+
```
837
+
838
+
**Try it**
839
+
```
840
+
Using the zenmldocs MCP server, show me how to register an MLflow experiment tracker in ZenML and add it to my stack. Cite the source page.
841
+
```
842
+
843
+
**Key features**
844
+
-**Live answers** from ZenML docs directly in your IDE assistant
845
+
-**Fewer hallucinations** thanks to source-of-truth grounding and citations
846
+
-**IDE-native experience** — no code changes required in your project
847
+
-**Great for API lookups** and "how do I" questions while coding
848
+
849
+
**Best practices**
850
+
- Prefix prompts with: "Use the zenmldocs MCP server …" and ask for citations
851
+
- Remember: it indexes the latest released docs, not develop; for full offline context use `llms-full.txt`, for selective interactive queries prefer MCP
852
+
- Keep the server name consistent (e.g., `zenmldocs`) across machines/projects
853
+
- If your IDE supports tool selection, explicitly enable/select the `zenmldocs` MCP tool
854
+
- For bleeding-edge features on develop, consult the repo or develop docs directly
855
+
856
+
Learn more: [Access ZenML documentation via llms.txt and MCP](https://docs.zenml.io/reference/llms-txt)
0 commit comments