@doccler/mcp-server 1.0.0 → 1.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 +91 -105
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,118 +2,108 @@
|
|
|
2
2
|
|
|
3
3
|
🚀 **Connect your IDE to Doccler** - Use AI-powered documentation directly from your development environment.
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/@doccler/mcp-server)
|
|
6
|
+
|
|
5
7
|
## What is MCP?
|
|
6
8
|
|
|
7
9
|
The Model Context Protocol (MCP) is an open standard that allows AI assistants (like Claude, Cursor, VS Code with AI extensions) to connect to external tools and data sources. Doccler's MCP server enables you to:
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Prerequisites
|
|
17
|
-
|
|
18
|
-
- Node.js 18 or higher
|
|
19
|
-
- npm or yarn
|
|
20
|
-
- A Doccler account with API access
|
|
21
|
-
|
|
22
|
-
### Install Dependencies
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
cd mcp-server
|
|
26
|
-
npm install
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
### Build the Server
|
|
11
|
+
- **Query your documentation** as a single source of truth
|
|
12
|
+
- **Create documentation** directly from your IDE
|
|
13
|
+
- **Search documentation** with semantic search
|
|
14
|
+
- **Generate documentation** from code using AI
|
|
15
|
+
- **Publish/unpublish** documents
|
|
16
|
+
- **Organize** documents into spaces
|
|
30
17
|
|
|
31
|
-
|
|
32
|
-
npm run build
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Configuration
|
|
18
|
+
## Quick Start
|
|
36
19
|
|
|
37
20
|
### 1. Get Your Doccler API Key
|
|
38
21
|
|
|
39
22
|
1. Log in to [Doccler](https://doccler.com)
|
|
40
23
|
2. Go to **Settings** → **API Keys**
|
|
41
|
-
3.
|
|
24
|
+
3. Click **Create New API Key**
|
|
25
|
+
4. Copy the key (it's only shown once!)
|
|
42
26
|
|
|
43
27
|
### 2. Configure Your IDE
|
|
44
28
|
|
|
45
|
-
|
|
29
|
+
Choose your IDE and add the configuration:
|
|
46
30
|
|
|
47
|
-
|
|
31
|
+
#### Cursor (`~/.cursor/mcp.json`)
|
|
48
32
|
|
|
49
33
|
```json
|
|
50
34
|
{
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"DOCCLER_API_KEY": "your-api-key-here",
|
|
58
|
-
"DOCCLER_API_URL": "https://doccler.com/api"
|
|
59
|
-
}
|
|
35
|
+
"mcpServers": {
|
|
36
|
+
"doccler": {
|
|
37
|
+
"command": "npx",
|
|
38
|
+
"args": ["-y", "@doccler/mcp-server@latest"],
|
|
39
|
+
"env": {
|
|
40
|
+
"DOCCLER_API_KEY": "doccler_xxxxxxxx_yyyyyyyyyyyyyyyyyyyy"
|
|
60
41
|
}
|
|
61
42
|
}
|
|
62
43
|
}
|
|
63
44
|
}
|
|
64
45
|
```
|
|
65
46
|
|
|
66
|
-
####
|
|
47
|
+
#### Claude Desktop
|
|
67
48
|
|
|
68
|
-
|
|
49
|
+
**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
50
|
+
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
69
51
|
|
|
70
52
|
```json
|
|
71
53
|
{
|
|
72
54
|
"mcpServers": {
|
|
73
55
|
"doccler": {
|
|
74
|
-
"command": "
|
|
75
|
-
"args": ["
|
|
56
|
+
"command": "npx",
|
|
57
|
+
"args": ["-y", "@doccler/mcp-server@latest"],
|
|
76
58
|
"env": {
|
|
77
|
-
"DOCCLER_API_KEY": "
|
|
78
|
-
"DOCCLER_API_URL": "https://doccler.com/api"
|
|
59
|
+
"DOCCLER_API_KEY": "doccler_xxxxxxxx_yyyyyyyyyyyyyyyyyyyy"
|
|
79
60
|
}
|
|
80
61
|
}
|
|
81
62
|
}
|
|
82
63
|
}
|
|
83
64
|
```
|
|
84
65
|
|
|
85
|
-
####
|
|
66
|
+
#### VS Code / Antigravity
|
|
86
67
|
|
|
87
|
-
Add to your
|
|
68
|
+
Add to your MCP settings:
|
|
88
69
|
|
|
89
70
|
```json
|
|
90
71
|
{
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"
|
|
97
|
-
|
|
72
|
+
"mcp": {
|
|
73
|
+
"servers": {
|
|
74
|
+
"doccler": {
|
|
75
|
+
"command": "npx",
|
|
76
|
+
"args": ["-y", "@doccler/mcp-server@latest"],
|
|
77
|
+
"env": {
|
|
78
|
+
"DOCCLER_API_KEY": "doccler_xxxxxxxx_yyyyyyyyyyyyyyyyyyyy"
|
|
79
|
+
}
|
|
98
80
|
}
|
|
99
81
|
}
|
|
100
82
|
}
|
|
101
83
|
}
|
|
102
84
|
```
|
|
103
85
|
|
|
104
|
-
|
|
86
|
+
### 3. Restart Your IDE
|
|
87
|
+
|
|
88
|
+
After adding the configuration, restart your IDE. The Doccler MCP server will be downloaded and started automatically.
|
|
89
|
+
|
|
90
|
+
## Alternative: Global Installation
|
|
91
|
+
|
|
92
|
+
If you prefer to install globally instead of using `npx`:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
npm install -g @doccler/mcp-server
|
|
96
|
+
```
|
|
105
97
|
|
|
106
|
-
|
|
98
|
+
Then configure your IDE with:
|
|
107
99
|
|
|
108
100
|
```json
|
|
109
101
|
{
|
|
110
|
-
"
|
|
102
|
+
"mcpServers": {
|
|
111
103
|
"doccler": {
|
|
112
|
-
"command": "
|
|
113
|
-
"args": ["/path/to/docs-platform/mcp-server/dist/index.js"],
|
|
104
|
+
"command": "doccler-mcp",
|
|
114
105
|
"env": {
|
|
115
|
-
"DOCCLER_API_KEY": "
|
|
116
|
-
"DOCCLER_API_URL": "https://doccler.com/api"
|
|
106
|
+
"DOCCLER_API_KEY": "doccler_xxxxxxxx_yyyyyyyyyyyyyyyyyyyy"
|
|
117
107
|
}
|
|
118
108
|
}
|
|
119
109
|
}
|
|
@@ -122,62 +112,50 @@ Add to your TRAE MCP configuration:
|
|
|
122
112
|
|
|
123
113
|
## Available Tools
|
|
124
114
|
|
|
125
|
-
|
|
115
|
+
| Tool | Description |
|
|
116
|
+
|------|-------------|
|
|
117
|
+
| `hello_doccler` | Verify your connection to Doccler |
|
|
118
|
+
| `search_docs` | Search your documentation (keyword + semantic) |
|
|
119
|
+
| `create_doc` | Create new documentation with optional space |
|
|
120
|
+
| `generate_doc` | Generate documentation from code using AI |
|
|
121
|
+
| `publish_doc` | Publish or unpublish a document |
|
|
122
|
+
| `get_doc` | Get the content of a specific document |
|
|
123
|
+
| `list_spaces` | List all available spaces |
|
|
126
124
|
|
|
127
|
-
|
|
125
|
+
## Usage Examples
|
|
128
126
|
|
|
127
|
+
### Search Documentation
|
|
129
128
|
```
|
|
130
|
-
|
|
129
|
+
"Search my documentation for authentication"
|
|
130
|
+
"Find docs about API endpoints"
|
|
131
131
|
```
|
|
132
132
|
|
|
133
|
-
###
|
|
134
|
-
|
|
135
|
-
Search your documentation.
|
|
136
|
-
|
|
133
|
+
### Create Documentation
|
|
137
134
|
```
|
|
138
|
-
|
|
139
|
-
|
|
135
|
+
"Create documentation titled 'Getting Started' about how to install the app"
|
|
136
|
+
"Create a doc in the API space explaining the user endpoint"
|
|
140
137
|
```
|
|
141
138
|
|
|
142
|
-
###
|
|
143
|
-
|
|
144
|
-
Create new documentation.
|
|
145
|
-
|
|
139
|
+
### Generate from Code
|
|
146
140
|
```
|
|
147
|
-
|
|
141
|
+
"Generate documentation for this code: [paste your code]"
|
|
142
|
+
"Document this function with examples"
|
|
148
143
|
```
|
|
149
144
|
|
|
150
|
-
###
|
|
151
|
-
|
|
152
|
-
Generate documentation from code using AI.
|
|
153
|
-
|
|
145
|
+
### Publish/Unpublish
|
|
154
146
|
```
|
|
155
|
-
|
|
156
|
-
|
|
147
|
+
"Publish the document with slug 'getting-started'"
|
|
148
|
+
"Unpublish my-api-guide"
|
|
157
149
|
```
|
|
158
150
|
|
|
159
|
-
## Development
|
|
160
|
-
|
|
161
|
-
### Run in Development Mode
|
|
162
|
-
|
|
163
|
-
```bash
|
|
164
|
-
npm run dev
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
### Test with MCP Inspector
|
|
168
|
-
|
|
169
|
-
```bash
|
|
170
|
-
npm run inspect
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
This opens an interactive inspector to test your tools and resources.
|
|
174
|
-
|
|
175
151
|
## Environment Variables
|
|
176
152
|
|
|
177
153
|
| Variable | Description | Default |
|
|
178
154
|
|----------|-------------|---------|
|
|
179
|
-
| `DOCCLER_API_KEY` | Your Doccler API key | (required) |
|
|
180
|
-
| `DOCCLER_API_URL` |
|
|
155
|
+
| `DOCCLER_API_KEY` | Your Doccler API key | **(required)** |
|
|
156
|
+
| `DOCCLER_API_URL` | API URL (for self-hosted) | `https://doccler.com/api` |
|
|
157
|
+
|
|
158
|
+
> **Note:** `DOCCLER_API_URL` is only needed for self-hosted instances or development. Production users can omit it.
|
|
181
159
|
|
|
182
160
|
## Troubleshooting
|
|
183
161
|
|
|
@@ -185,16 +163,24 @@ This opens an interactive inspector to test your tools and resources.
|
|
|
185
163
|
|
|
186
164
|
Make sure `DOCCLER_API_KEY` is set in your IDE's MCP configuration.
|
|
187
165
|
|
|
188
|
-
### "
|
|
166
|
+
### "Unauthorized" errors
|
|
167
|
+
|
|
168
|
+
1. Check that your API key is valid
|
|
169
|
+
2. Go to Settings → API Keys in Doccler to verify
|
|
170
|
+
3. Create a new key if needed
|
|
171
|
+
|
|
172
|
+
### Server not starting
|
|
189
173
|
|
|
190
|
-
1.
|
|
191
|
-
2.
|
|
192
|
-
3.
|
|
174
|
+
1. Ensure Node.js 18+ is installed
|
|
175
|
+
2. Try running manually: `npx @doccler/mcp-server`
|
|
176
|
+
3. Check your IDE's MCP logs
|
|
193
177
|
|
|
194
|
-
|
|
178
|
+
## Support
|
|
195
179
|
|
|
196
|
-
|
|
180
|
+
- **Documentation:** [doccler.com/docs](https://doccler.com/docs)
|
|
181
|
+
- **Issues:** [GitHub Issues](https://github.com/doccler/mcp-server/issues)
|
|
182
|
+
- **Email:** hello@doccler.com
|
|
197
183
|
|
|
198
184
|
## License
|
|
199
185
|
|
|
200
|
-
MIT
|
|
186
|
+
MIT © Doccler
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doccler/mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Doccler MCP Server - Connect your IDE to your documentation platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -54,4 +54,4 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
}
|
|
57
|
-
}
|
|
57
|
+
}
|