@doccler/mcp-server 1.0.1 → 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.
Files changed (2) hide show
  1. package/README.md +91 -105
  2. package/package.json +1 -1
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
+ [![npm version](https://badge.fury.io/js/@doccler%2Fmcp-server.svg)](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
- 1. **Query your documentation** as a single source of truth
10
- 2. **Create documentation** directly from your IDE
11
- 3. **Search documentation** with semantic search
12
- 4. **Generate documentation** from code using AI
13
-
14
- ## Installation
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
- ```bash
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. Generate a new API key
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
- #### For Antigravity (VS Code based)
29
+ Choose your IDE and add the configuration:
46
30
 
47
- Add to your `~/.antigravity/settings.json`:
31
+ #### Cursor (`~/.cursor/mcp.json`)
48
32
 
49
33
  ```json
50
34
  {
51
- "mcp": {
52
- "servers": {
53
- "doccler": {
54
- "command": "node",
55
- "args": ["/path/to/docs-platform/mcp-server/dist/index.js"],
56
- "env": {
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
- #### For Cursor
47
+ #### Claude Desktop
67
48
 
68
- Add to your `~/.cursor/mcp.json`:
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": "node",
75
- "args": ["/path/to/docs-platform/mcp-server/dist/index.js"],
56
+ "command": "npx",
57
+ "args": ["-y", "@doccler/mcp-server@latest"],
76
58
  "env": {
77
- "DOCCLER_API_KEY": "your-api-key-here",
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
- #### For Claude Desktop
66
+ #### VS Code / Antigravity
86
67
 
87
- Add to your `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
68
+ Add to your MCP settings:
88
69
 
89
70
  ```json
90
71
  {
91
- "mcpServers": {
92
- "doccler": {
93
- "command": "node",
94
- "args": ["/path/to/docs-platform/mcp-server/dist/index.js"],
95
- "env": {
96
- "DOCCLER_API_KEY": "your-api-key-here",
97
- "DOCCLER_API_URL": "https://doccler.com/api"
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
- #### For TRAE
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
- Add to your TRAE MCP configuration:
98
+ Then configure your IDE with:
107
99
 
108
100
  ```json
109
101
  {
110
- "servers": {
102
+ "mcpServers": {
111
103
  "doccler": {
112
- "command": "node",
113
- "args": ["/path/to/docs-platform/mcp-server/dist/index.js"],
104
+ "command": "doccler-mcp",
114
105
  "env": {
115
- "DOCCLER_API_KEY": "your-api-key-here",
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
- ### 🔧 hello_doccler
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
- Verify your connection to Doccler.
125
+ ## Usage Examples
128
126
 
127
+ ### Search Documentation
129
128
  ```
130
- Use: "Hello Doccler" or "Test Doccler connection"
129
+ "Search my documentation for authentication"
130
+ "Find docs about API endpoints"
131
131
  ```
132
132
 
133
- ### 🔍 search_docs
134
-
135
- Search your documentation.
136
-
133
+ ### Create Documentation
137
134
  ```
138
- Use: "Search my documentation for authentication"
139
- "Find docs about JWT tokens"
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
- ### 📝 create_doc
143
-
144
- Create new documentation.
145
-
139
+ ### Generate from Code
146
140
  ```
147
- Use: "Create documentation titled 'API Guide' with content..."
141
+ "Generate documentation for this code: [paste your code]"
142
+ "Document this function with examples"
148
143
  ```
149
144
 
150
- ### 🤖 generate_doc
151
-
152
- Generate documentation from code using AI.
153
-
145
+ ### Publish/Unpublish
154
146
  ```
155
- Use: "Generate documentation for this code: [paste your code]"
156
- "Analyze and document this function"
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` | Doccler API base URL | `https://doccler.com/api` |
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
- ### "Connection failed"
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. Check that the server is built: `npm run build`
191
- 2. Verify the path to `dist/index.js` is correct
192
- 3. Ensure Node.js 18+ is installed
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
- ### Server logs
178
+ ## Support
195
179
 
196
- Look for logs in your IDE's output panel, usually under "MCP" or "Extensions".
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.1",
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",