@redpanda-data/docs-extensions-and-macros 4.12.6 → 4.13.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.adoc +33 -1064
- package/bin/doc-tools-mcp.js +720 -0
- package/bin/doc-tools.js +1050 -50
- package/bin/mcp-tools/antora.js +153 -0
- package/bin/mcp-tools/cache.js +89 -0
- package/bin/mcp-tools/cloud-regions.js +127 -0
- package/bin/mcp-tools/content-review.js +196 -0
- package/bin/mcp-tools/crd-docs.js +153 -0
- package/bin/mcp-tools/frontmatter.js +138 -0
- package/bin/mcp-tools/generated-docs-review.js +887 -0
- package/bin/mcp-tools/helm-docs.js +152 -0
- package/bin/mcp-tools/index.js +245 -0
- package/bin/mcp-tools/job-queue.js +468 -0
- package/bin/mcp-tools/mcp-validation.js +266 -0
- package/bin/mcp-tools/metrics-docs.js +146 -0
- package/bin/mcp-tools/openapi.js +174 -0
- package/bin/mcp-tools/prompt-discovery.js +283 -0
- package/bin/mcp-tools/property-docs.js +157 -0
- package/bin/mcp-tools/rpcn-docs.js +113 -0
- package/bin/mcp-tools/rpk-docs.js +141 -0
- package/bin/mcp-tools/telemetry.js +211 -0
- package/bin/mcp-tools/utils.js +131 -0
- package/bin/mcp-tools/versions.js +168 -0
- package/cli-utils/convert-doc-links.js +1 -1
- package/cli-utils/github-token.js +58 -0
- package/cli-utils/self-managed-docs-branch.js +2 -2
- package/cli-utils/setup-mcp.js +313 -0
- package/docker-compose/25.1/transactions.md +1 -1
- package/docker-compose/transactions.md +1 -1
- package/extensions/DEVELOPMENT.adoc +464 -0
- package/extensions/README.adoc +124 -0
- package/extensions/REFERENCE.adoc +768 -0
- package/extensions/USER_GUIDE.adoc +339 -0
- package/extensions/generate-rp-connect-info.js +3 -4
- package/extensions/version-fetcher/get-latest-console-version.js +38 -27
- package/extensions/version-fetcher/get-latest-redpanda-version.js +65 -54
- package/extensions/version-fetcher/retry-util.js +88 -0
- package/extensions/version-fetcher/set-latest-version.js +6 -3
- package/macros/DEVELOPMENT.adoc +377 -0
- package/macros/README.adoc +105 -0
- package/macros/REFERENCE.adoc +222 -0
- package/macros/USER_GUIDE.adoc +220 -0
- package/macros/rp-connect-components.js +6 -6
- package/mcp/CLI_INTERFACE.adoc +384 -0
- package/mcp/COSTS.adoc +167 -0
- package/mcp/DEVELOPMENT.adoc +726 -0
- package/mcp/README.adoc +172 -0
- package/mcp/USER_GUIDE.adoc +1392 -0
- package/mcp/WRITER_EXTENSION_GUIDE.adoc +814 -0
- package/mcp/prompts/README.adoc +183 -0
- package/mcp/prompts/property-docs-guide.md +283 -0
- package/mcp/prompts/review-for-style.md +128 -0
- package/mcp/prompts/rpcn-connector-docs-guide.md +126 -0
- package/mcp/prompts/write-new-guide.md +222 -0
- package/mcp/team-standards/style-guide.md +321 -0
- package/mcp/templates/README.adoc +212 -0
- package/mcp/templates/prompt-review-template.md +80 -0
- package/mcp/templates/prompt-write-template.md +110 -0
- package/mcp/templates/resource-template.md +76 -0
- package/package.json +16 -5
- package/tools/bundle-openapi.js +20 -10
- package/tools/cloud-regions/generate-cloud-regions.js +1 -1
- package/tools/fetch-from-github.js +18 -4
- package/tools/gen-rpk-ascii.py +3 -1
- package/tools/generate-cli-docs.js +325 -0
- package/tools/get-console-version.js +4 -2
- package/tools/get-redpanda-version.js +4 -2
- package/tools/metrics/metrics.py +19 -7
- package/tools/property-extractor/Makefile +7 -1
- package/tools/property-extractor/cloud_config.py +4 -4
- package/tools/property-extractor/constant_resolver.py +11 -11
- package/tools/property-extractor/property_extractor.py +18 -16
- package/tools/property-extractor/topic_property_extractor.py +2 -2
- package/tools/property-extractor/transformers.py +7 -7
- package/tools/property-extractor/type_definition_extractor.py +4 -4
- package/tools/redpanda-connect/README.adoc +1 -1
- package/tools/redpanda-connect/generate-rpcn-connector-docs.js +5 -3
package/mcp/README.adoc
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
= MCP Server Documentation
|
|
2
|
+
:toc:
|
|
3
|
+
:toclevels: 2
|
|
4
|
+
|
|
5
|
+
Documentation for the Redpanda Doc Tools MCP (Model Context Protocol) server.
|
|
6
|
+
|
|
7
|
+
The MCP server exposes `doc-tools` functionality to Claude Code, allowing technical writers to automate documentation tasks through natural conversation. No CLI knowledge required.
|
|
8
|
+
|
|
9
|
+
== Documentation
|
|
10
|
+
|
|
11
|
+
=== For users (technical writers)
|
|
12
|
+
|
|
13
|
+
link:USER_GUIDE.adoc[**User guide**]:: Complete guide to using the MCP server with Claude Code
|
|
14
|
+
+
|
|
15
|
+
* Setup and installation
|
|
16
|
+
* Available tools, prompts, and resources
|
|
17
|
+
* Usage examples and workflows
|
|
18
|
+
* Troubleshooting
|
|
19
|
+
|
|
20
|
+
link:WRITER_EXTENSION_GUIDE.adoc[**Writer extension guide**]:: How to extend the MCP server (no coding required)
|
|
21
|
+
+
|
|
22
|
+
* Adding new prompts for common tasks
|
|
23
|
+
* Adding new resources (style guides, templates)
|
|
24
|
+
* Validation and preview commands
|
|
25
|
+
* Best practices and examples
|
|
26
|
+
|
|
27
|
+
link:templates/README.adoc[**Extension templates**]:: Ready-to-use templates for extending the MCP server
|
|
28
|
+
+
|
|
29
|
+
* Templates for review prompts, writing prompts, and resources
|
|
30
|
+
* Step-by-step customization guide
|
|
31
|
+
* No coding required. Just copy and customize
|
|
32
|
+
|
|
33
|
+
link:COSTS.adoc[**Cost reference**]:: Understanding and optimizing MCP tool costs
|
|
34
|
+
+
|
|
35
|
+
* Cost breakdown by tool ($0.017 - $0.190 per operation)
|
|
36
|
+
* Model selection guidance (Haiku/Sonnet/Opus)
|
|
37
|
+
* Cost optimization strategies
|
|
38
|
+
|
|
39
|
+
=== For developers
|
|
40
|
+
|
|
41
|
+
link:DEVELOPMENT.adoc[**Development guide**]:: Guide for working on the MCP server
|
|
42
|
+
+
|
|
43
|
+
* Architecture overview
|
|
44
|
+
* Adding new tools programmatically
|
|
45
|
+
* Auto-discovery system details
|
|
46
|
+
* Testing guidelines
|
|
47
|
+
* Security and best practices
|
|
48
|
+
|
|
49
|
+
link:CLI_INTERFACE.adoc[**CLI interface contract**]:: Contract specification for the `doc-tools` CLI
|
|
50
|
+
+
|
|
51
|
+
* Command structure and syntax
|
|
52
|
+
* Output format contracts
|
|
53
|
+
* Error handling requirements
|
|
54
|
+
* Stability guarantees
|
|
55
|
+
|
|
56
|
+
link:../CLI_REFERENCE.adoc[**CLI reference**]:: Complete command reference for `doc-tools`
|
|
57
|
+
+
|
|
58
|
+
* All commands and subcommands
|
|
59
|
+
* Options and usage examples
|
|
60
|
+
* Auto-generated from CLI help
|
|
61
|
+
|
|
62
|
+
link:../\__tests__/mcp/README.adoc[**Test documentation**]:: How to run and write MCP tests
|
|
63
|
+
+
|
|
64
|
+
* Test types (integration, contract, unit)
|
|
65
|
+
* Running tests
|
|
66
|
+
* Understanding failures
|
|
67
|
+
|
|
68
|
+
=== Advanced
|
|
69
|
+
|
|
70
|
+
link:prompts/README.adoc[**Prompts documentation**]:: Guide to the MCP prompt system
|
|
71
|
+
+
|
|
72
|
+
* What prompts are and how they work
|
|
73
|
+
* Available prompts
|
|
74
|
+
* Adding new prompts
|
|
75
|
+
|
|
76
|
+
== Quickstart
|
|
77
|
+
|
|
78
|
+
=== Install and configure
|
|
79
|
+
|
|
80
|
+
[,bash]
|
|
81
|
+
----
|
|
82
|
+
cd /path/to/docs-extensions-and-macros
|
|
83
|
+
npm install
|
|
84
|
+
npx doc-tools setup-mcp --local
|
|
85
|
+
----
|
|
86
|
+
|
|
87
|
+
=== Restart Claude Code
|
|
88
|
+
|
|
89
|
+
After setup, restart Claude Code to load the MCP server.
|
|
90
|
+
|
|
91
|
+
=== Start using it
|
|
92
|
+
|
|
93
|
+
Navigate to any Redpanda repository and start chatting:
|
|
94
|
+
|
|
95
|
+
----
|
|
96
|
+
You: "What's the latest Redpanda version?"
|
|
97
|
+
Claude: *uses get_redpanda_version tool*
|
|
98
|
+
|
|
99
|
+
You: "Generate property docs for v25.3.1"
|
|
100
|
+
Claude: *uses generate_property_docs tool*
|
|
101
|
+
----
|
|
102
|
+
|
|
103
|
+
== What's included
|
|
104
|
+
|
|
105
|
+
=== Documentation generation tools
|
|
106
|
+
|
|
107
|
+
* **Version information**: Get latest Redpanda and Console versions
|
|
108
|
+
* **Property docs**: Generate configuration property documentation
|
|
109
|
+
* **Metrics docs**: Generate metrics reference documentation
|
|
110
|
+
* **RPK docs**: Generate RPK CLI documentation
|
|
111
|
+
* **Connector docs**: Generate Redpanda Connect connector documentation
|
|
112
|
+
* **Antora structure**: Analyze documentation repository structure
|
|
113
|
+
|
|
114
|
+
=== AI consistency prompts
|
|
115
|
+
|
|
116
|
+
Pre-configured instructions that help Claude follow your team standards:
|
|
117
|
+
|
|
118
|
+
**Review prompts:**
|
|
119
|
+
|
|
120
|
+
* **review-for-style**: Review content for style guide compliance
|
|
121
|
+
* **check-terminology**: Validate terminology against approved terms
|
|
122
|
+
* **improve-clarity**: Refactor content for better readability
|
|
123
|
+
|
|
124
|
+
**Content creation:**
|
|
125
|
+
|
|
126
|
+
* **write-new-guide**: Generate new guides following team standards
|
|
127
|
+
|
|
128
|
+
**Workflow guides:**
|
|
129
|
+
|
|
130
|
+
* **property-docs-guide**: Workflow for updating property documentation
|
|
131
|
+
* **rpcn-connector-docs-guide**: Workflow for updating connector documentation
|
|
132
|
+
|
|
133
|
+
=== Resources
|
|
134
|
+
|
|
135
|
+
Reference materials that Claude can read:
|
|
136
|
+
|
|
137
|
+
* **redpanda://style-guide**: Complete team style guide with formatting rules
|
|
138
|
+
|
|
139
|
+
=== CLI validation commands
|
|
140
|
+
|
|
141
|
+
For writers extending the MCP server:
|
|
142
|
+
|
|
143
|
+
* **npx doc-tools validate-mcp**: Validate prompts and resources configuration
|
|
144
|
+
* **npx doc-tools preview-prompt**: Preview prompts with test arguments
|
|
145
|
+
* **npx doc-tools mcp-version**: Show versions and usage statistics
|
|
146
|
+
|
|
147
|
+
=== Automation
|
|
148
|
+
|
|
149
|
+
* **setup-mcp**: Automated MCP server configuration for Claude Code/Desktop
|
|
150
|
+
* **Auto-discovery**: Prompts automatically loaded from `mcp/prompts/` directory
|
|
151
|
+
* **Context detection**: Automatic repository and Antora structure detection
|
|
152
|
+
* **Usage telemetry**: Track prompt/resource/tool usage for adoption metrics
|
|
153
|
+
|
|
154
|
+
== Architecture
|
|
155
|
+
|
|
156
|
+
The MCP server consists of:
|
|
157
|
+
|
|
158
|
+
* **Server** (`bin/doc-tools-mcp.js`): Main MCP protocol handler
|
|
159
|
+
* **Tool modules** (`bin/mcp-tools/`): Individual tool implementations
|
|
160
|
+
* **Prompts** (`mcp/prompts/`): Contextual documentation guides
|
|
161
|
+
* **Tests** (`__tests__/mcp/`): Integration, contract, and unit tests
|
|
162
|
+
|
|
163
|
+
== Support
|
|
164
|
+
|
|
165
|
+
* link:USER_GUIDE.adoc#troubleshooting[Troubleshooting guide]
|
|
166
|
+
* link:../\__tests__/mcp/README.adoc#understanding-test-failures[Test failures]
|
|
167
|
+
* https://github.com/redpanda-data/docs-extensions-and-macros/issues[Report issues]
|
|
168
|
+
|
|
169
|
+
== External resources
|
|
170
|
+
|
|
171
|
+
* https://modelcontextprotocol.io/[MCP Protocol Specification]
|
|
172
|
+
* https://docs.anthropic.com/claude[Claude Code Documentation]
|