@meldocio/mcp-stdio-proxy 1.0.26 → 1.0.28

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.
@@ -0,0 +1,541 @@
1
+ ---
2
+ name: documentation-writing
3
+ description: Expert at creating, structuring, and maintaining technical documentation in Meldoc. Use when writing new docs, structuring documentation projects, creating templates, establishing standards, or converting content to Meldoc format.
4
+ ---
5
+
6
+ Expert guidance for creating, structuring, and maintaining technical documentation in Meldoc.
7
+
8
+ ## Meldoc File Format Requirements
9
+
10
+ ### File Extension
11
+
12
+ - Files must have extension: `*.meldoc.md` (configurable in `meldoc.config.yml`)
13
+
14
+ ### YAML Frontmatter (MANDATORY)
15
+
16
+ Every Meldoc document MUST start with YAML frontmatter between `---` delimiters:
17
+
18
+ **Required fields:**
19
+
20
+ - `title`: Document display title (string)
21
+ - `alias`: Unique document identifier (string, kebab-case, stable) - required for publishing
22
+
23
+ **Optional fields:**
24
+
25
+ - `parentAlias` (or `parent_alias`): Parent document alias for hierarchy
26
+ - `workflow`: `draft` | `published` (default: `published`) - only add if draft
27
+ - `visibility`: `visible` | `hidden` (default: `visible`) - only add if hidden
28
+ - `exposure`: `inherit` | `private` | `unlisted` | `public` (default: `inherit`) - keep default unless explicitly requested
29
+
30
+ **Example frontmatter:**
31
+
32
+ ```yaml
33
+ ---
34
+ alias: getting-started-guide
35
+ title: Getting Started Guide
36
+ parentAlias: documentation
37
+ workflow: published
38
+ visibility: visible
39
+ ---
40
+ ```
41
+
42
+ ## Best Practices
43
+
44
+ ### Document Structure
45
+
46
+ **Good documentation has:**
47
+
48
+ - Clear, descriptive titles in frontmatter
49
+ - Logical hierarchy (H2 → H3 → H4) - **NO H1 in content** (title comes from frontmatter)
50
+ - Introduction explaining the purpose
51
+ - Step-by-step instructions with examples
52
+ - Links to related documents using magic links
53
+ - Code examples with syntax highlighting
54
+
55
+ **Example structure:**
56
+
57
+ ```markdown
58
+ ---
59
+ alias: feature-name
60
+ title: Feature Name
61
+ parentAlias: features
62
+ ---
63
+
64
+ Brief description of what this feature does.
65
+
66
+ ## Overview
67
+
68
+ High-level explanation...
69
+
70
+ ## Prerequisites
71
+
72
+ What users need before starting...
73
+
74
+ ## Step-by-Step Guide
75
+
76
+ 1. First step with details
77
+ 2. Second step with code example
78
+ 3. Third step with screenshot
79
+
80
+ ## Troubleshooting
81
+
82
+ Common issues and solutions...
83
+
84
+ ## Related Documentation
85
+
86
+ - [[api-reference]]
87
+ - [[getting-started]]
88
+ ```
89
+
90
+ ### Creating Documents
91
+
92
+ When creating new documents, Claude should:
93
+
94
+ 1. **Ask clarifying questions:**
95
+ - What is the target audience? (developers, end-users, admins)
96
+ - What level of detail is needed?
97
+ - Are there existing related documents?
98
+
99
+ 2. **Use `docs_tree` first** to understand the structure
100
+
101
+ 3. **Create with proper frontmatter and metadata:**
102
+
103
+ ```javascript
104
+ // Example using docs_create
105
+ {
106
+ title: "Clear, Descriptive Title",
107
+ alias: "clear-descriptive-title", // kebab-case, stable identifier
108
+ contentMd: `---
109
+
110
+ alias: clear-descriptive-title
111
+ title: Clear, Descriptive Title
112
+ parentAlias: parent-doc-alias
113
+ ---
114
+
115
+ ## Overview
116
+
117
+ Content starts here with H2, not H1...
118
+ `,
119
+ projectId: "project-uuid",
120
+ parentAlias: "parent-doc-alias" // Optional
121
+ }
122
+
123
+ ```
124
+
125
+ 4. **Link to related documents** using magic links: `[[doc-alias]]` or cross-project: `[[project-alias::doc-alias]]`
126
+
127
+ ### Updating Documents
128
+
129
+ Before updating:
130
+
131
+ 1. Use `docs_get` to read current content
132
+ 2. Preserve existing frontmatter and structure unless requested otherwise
133
+ 3. Use `expectedUpdatedAt` for optimistic locking
134
+ 4. Explain what changed in the conversation
135
+
136
+ ### Documentation Templates
137
+
138
+ **API Endpoint Documentation:**
139
+
140
+ ```markdown
141
+ ---
142
+ alias: api-endpoint-resource
143
+ title: GET /api/v1/resource
144
+ parentAlias: api-reference
145
+ ---
146
+
147
+ Brief description of what this endpoint does.
148
+
149
+ ## Request
150
+
151
+ **Method:** GET
152
+ **URL:** `/api/v1/resource`
153
+ **Authentication:** Required
154
+
155
+ ### Parameters
156
+
157
+ | Name | Type | Required | Description |
158
+ |:-----|:-----|:----------|:------------|
159
+ | id | string | Yes | Resource identifier |
160
+
161
+ ### Example Request
162
+
163
+ \`\`\`bash
164
+ curl -X GET https://api.example.com/v1/resource/123 \
165
+ -H "Authorization: Bearer TOKEN"
166
+ \`\`\`
167
+
168
+ ## Response
169
+
170
+ ### Success (200 OK)
171
+
172
+ \`\`\`json
173
+ {
174
+ "id": "123",
175
+ "data": "..."
176
+ }
177
+ \`\`\`
178
+
179
+ ### Errors
180
+
181
+ - `400` - Bad Request
182
+ - `404` - Not Found
183
+ - `500` - Server Error
184
+
185
+ ## Related Endpoints
186
+
187
+ - [[api-list-resources]]
188
+ - [[api-create-resource]]
189
+ ```
190
+
191
+ **Feature Documentation:**
192
+
193
+ ```markdown
194
+ ---
195
+ alias: feature-name
196
+ title: Feature Name
197
+ parentAlias: features
198
+ ---
199
+
200
+ One-line description of what this feature enables.
201
+
202
+ ## What is [Feature]?
203
+
204
+ Explain the feature in simple terms...
205
+
206
+ ## Why Use [Feature]?
207
+
208
+ Key benefits:
209
+ - Benefit 1
210
+ - Benefit 2
211
+ - Benefit 3
212
+
213
+ ## How It Works
214
+
215
+ High-level overview of the mechanism...
216
+
217
+ ## Quick Start
218
+
219
+ 1. Step 1
220
+ 2. Step 2
221
+ 3. Step 3
222
+
223
+ ## Examples
224
+
225
+ ### Example 1: Common Use Case
226
+
227
+ Description and code...
228
+
229
+ \`\`\`javascript
230
+ // Example code
231
+ \`\`\`
232
+
233
+ ### Example 2: Advanced Use Case
234
+
235
+ Description and code...
236
+
237
+ ## Configuration
238
+
239
+ Available options...
240
+
241
+ ## Troubleshooting
242
+
243
+ Common issues...
244
+
245
+ ## FAQ
246
+
247
+ Frequently asked questions...
248
+ ```
249
+
250
+ **Tutorial Documentation:**
251
+
252
+ ```markdown
253
+ ---
254
+ alias: how-to-accomplish-task
255
+ title: How to [Accomplish Task]
256
+ parentAlias: tutorials
257
+ ---
258
+
259
+ Learn how to [accomplish task] in [estimated time].
260
+
261
+ ## What You'll Build
262
+
263
+ Brief description and maybe a screenshot...
264
+
265
+ ## Prerequisites
266
+
267
+ - Prerequisite 1
268
+ - Prerequisite 2
269
+
270
+ ## Step 1: [First Step]
271
+
272
+ Detailed instructions...
273
+
274
+ \`\`\`javascript
275
+ // Example code
276
+ \`\`\`
277
+
278
+ ## Step 2: [Second Step]
279
+
280
+ More instructions...
281
+
282
+ ## Step 3: [Final Step]
283
+
284
+ Wrap up...
285
+
286
+ ## Next Steps
287
+
288
+ - Try [[related-tutorial]]
289
+ - Learn about [[advanced-topic]]
290
+ - Explore [[related-feature]]
291
+ ```
292
+
293
+ ## Meldoc-Specific Features
294
+
295
+ ### Internal Links (Magic Links)
296
+
297
+ **Preferred method** - Link to other documents using aliases:
298
+
299
+ ```markdown
300
+ See the [[api-reference]] for details.
301
+
302
+ For cross-project links:
303
+ See [[other-project::setup-guide]] for details.
304
+ ```
305
+
306
+ **Alternative methods:**
307
+
308
+ - Standard markdown: `[Link Text](./path/to/doc.meldoc.md)`
309
+ - External: `[Link Text](https://example.com)`
310
+ - Reference links: `[Link text][ref]` with `[ref]: https://example.com`
311
+
312
+ ### Mermaid Diagrams
313
+
314
+ Meldoc supports Mermaid diagrams:
315
+
316
+ ```markdown
317
+ \`\`\`mermaid
318
+ graph TD
319
+ A[Start] --> B{Decision}
320
+ B -->|Yes| C[Action]
321
+ B -->|No| D[Alternative]
322
+ \`\`\`
323
+
324
+ Supported types:
325
+ - graph, flowchart
326
+ - sequenceDiagram
327
+ - classDiagram
328
+ - stateDiagram
329
+ - erDiagram
330
+ - gantt
331
+ - pie
332
+ - mindmap
333
+ ```
334
+
335
+ ### Task Lists
336
+
337
+ Use task lists for checklists:
338
+
339
+ ```markdown
340
+ - [ ] Unchecked task
341
+ - [x] Completed task
342
+ - [ ] Another task
343
+ ```
344
+
345
+ ### Backlinks
346
+
347
+ Check who references your document:
348
+
349
+ ```javascript
350
+ // Use docs_backlinks to find
351
+ docs_backlinks({ docId: "your-doc-id" })
352
+ ```
353
+
354
+ ### Document Trees
355
+
356
+ Organize hierarchically:
357
+
358
+ ```javascript
359
+ docs_create({
360
+ title: "Child Document",
361
+ alias: "child-document",
362
+ contentMd: `---
363
+ alias: child-document
364
+ title: Child Document
365
+ parentAlias: parent-doc
366
+ ---
367
+
368
+ ## Content...
369
+ `,
370
+ parentAlias: "parent-doc"
371
+ })
372
+ ```
373
+
374
+ ## Tips for AI-Assisted Writing
375
+
376
+ 1. **Start with outline** - Use `docs_create` with basic structure first
377
+ 2. **Iterate sections** - Update one section at a time
378
+ 3. **Check existing docs** - Use `docs_search` to avoid duplication
379
+ 4. **Link liberally** - Use `docs_links` to see connection opportunities
380
+ 5. **Review tree** - Use `docs_tree` to ensure logical hierarchy
381
+ 6. **Always include frontmatter** - Never create documents without YAML frontmatter
382
+ 7. **Use magic links** - Prefer `[[alias]]` over relative paths when possible
383
+
384
+ ## Common Patterns
385
+
386
+ ### Creating Documentation Series
387
+
388
+ ```javascript
389
+ // 1. Create parent document (overview)
390
+ docs_create({
391
+ title: "User Authentication Guide",
392
+ alias: "user-authentication-guide",
393
+ contentMd: `---
394
+ alias: user-authentication-guide
395
+ title: User Authentication Guide
396
+ ---
397
+
398
+ ## Overview
399
+
400
+ Authentication overview...
401
+ `
402
+ })
403
+
404
+ // 2. Create child documents
405
+ docs_create({
406
+ title: "OAuth Setup",
407
+ alias: "oauth-setup",
408
+ contentMd: `---
409
+ alias: oauth-setup
410
+ title: OAuth Setup
411
+ parentAlias: user-authentication-guide
412
+ ---
413
+
414
+ ## OAuth Setup
415
+
416
+ Detailed steps...
417
+ `,
418
+ parentAlias: "user-authentication-guide"
419
+ })
420
+
421
+ docs_create({
422
+ title: "Session Management",
423
+ alias: "session-management",
424
+ contentMd: `---
425
+ alias: session-management
426
+ title: Session Management
427
+ parentAlias: user-authentication-guide
428
+ ---
429
+
430
+ ## Sessions
431
+
432
+ How sessions work...
433
+ `,
434
+ parentAlias: "user-authentication-guide"
435
+ })
436
+ ```
437
+
438
+ ### Refactoring Documentation
439
+
440
+ ```javascript
441
+ // 1. Search for related content
442
+ docs_search({ query: "authentication" })
443
+
444
+ // 2. Review each document
445
+ docs_get({ docId: "..." })
446
+
447
+ // 3. Consolidate or split as needed
448
+ docs_update({ docId: "...", contentMd: "..." })
449
+
450
+ // 4. Update links using docs_links
451
+ ```
452
+
453
+ ### Migration from Other Platforms
454
+
455
+ When migrating content:
456
+
457
+ 1. **Add frontmatter** - Every document needs YAML frontmatter
458
+ 2. **Convert H1 to title** - Move H1 content to frontmatter `title` field
459
+ 3. **Update headings** - Start content with H2, not H1
460
+ 4. **Convert links** - Update to magic links `[[alias]]` format
461
+ 5. **Add aliases** - Generate stable kebab-case aliases
462
+ 6. **Create hierarchy** - Set up parent-child relationships
463
+ 7. **Preserve structure** - Keep original organization initially
464
+
465
+ ## Markdown Syntax Reference
466
+
467
+ ### Headings
468
+
469
+ - Use H2 (`##`) as the first heading in content
470
+ - H1 is provided by frontmatter `title` field
471
+ - Hierarchy: H2 → H3 → H4 → H5 → H6
472
+
473
+ ### Text Formatting
474
+
475
+ - **Bold**: `**text**` or `__text__`
476
+ - *Italic*: `*text*` or `_text_`
477
+ - ~~Strikethrough~~: `~~text~~`
478
+ - Combined: `***bold italic***`, `**bold and _italic_**`
479
+
480
+ ### Code
481
+
482
+ - Inline: `` `code` ``
483
+ - Blocks: ` ```language ` with syntax highlighting
484
+ - Supported languages: javascript, typescript, python, html, css, json, bash, etc.
485
+
486
+ ### Lists
487
+
488
+ - Bullet: `-`, `*`, or `+`
489
+ - Numbered: `1. 2. 3.`
490
+ - Nested: indent with 2 spaces
491
+ - Task lists: `- [ ]` unchecked, `- [x]` checked
492
+
493
+ ### Tables
494
+
495
+ ```markdown
496
+ | Header 1 | Header 2 |
497
+ |:---------|:---------:|
498
+ | Left | Center |
499
+ | Aligned | Aligned |
500
+ ```
501
+
502
+ Alignment:
503
+
504
+ - `:---` - left
505
+ - `:---:` - center
506
+ - `---:` - right
507
+
508
+ ### Other Elements
509
+
510
+ - Blockquotes: `> quoted text`
511
+ - Horizontal rules: `---` or `***` or `___`
512
+ - Escape special chars: `\* \# \[ \]`
513
+
514
+ ## Quality Checklist
515
+
516
+ Before finalizing documentation:
517
+
518
+ - [ ] YAML frontmatter is present and correct
519
+ - [ ] `alias` is set (kebab-case, stable)
520
+ - [ ] `title` is clear and searchable
521
+ - [ ] Content starts with H2, not H1
522
+ - [ ] Introduction explains purpose
523
+ - [ ] Prerequisites are listed
524
+ - [ ] Steps are numbered and detailed
525
+ - [ ] Code examples are tested
526
+ - [ ] Links use magic links `[[alias]]` format
527
+ - [ ] Images/diagrams included if helpful
528
+ - [ ] Troubleshooting section added
529
+ - [ ] Document is in correct project/hierarchy
530
+ - [ ] Spelling and grammar checked
531
+ - [ ] Related documents are linked
532
+
533
+ ## Common Mistakes to Avoid
534
+
535
+ 1. **Missing frontmatter** - Every document MUST have YAML frontmatter
536
+ 2. **Using H1 in content** - Title comes from frontmatter, start with H2
537
+ 3. **Missing alias** - Required for publishing, must be kebab-case
538
+ 4. **Wrong link format** - Use `[[alias]]` for internal links, not `[text](doc-alias)`
539
+ 5. **Inconsistent aliases** - Aliases should be stable, don't change them
540
+ 6. **No parent hierarchy** - Use `parentAlias` to organize documents
541
+ 7. **Forgetting workflow** - Set `workflow: draft` for work-in-progress docs
@@ -1,4 +1,7 @@
1
- # Meldoc MCP Integration
1
+ ---
2
+ name: meldoc-overview
3
+ description: Overview of the Meldoc MCP integration, available tools, authentication, and workspace management. Use when users ask what Meldoc can do, how to authenticate, how to manage workspaces, or need a summary of available document operations.
4
+ ---
2
5
 
3
6
  Connect to your Meldoc documentation directly from Claude Desktop, Claude Code, and other MCP clients.
4
7
 
@@ -79,9 +82,14 @@ Some operations require write permissions to your workspace:
79
82
 
80
83
  Read-only operations (list, get, search) work with any authenticated account.
81
84
 
82
- ## Related Documentation
85
+ ## Meldoc Document Format
83
86
 
84
- - [Getting Started Guide](docs/getting-started.meldoc.md)
85
- - [Authentication Guide](docs/authentication.meldoc.md)
86
- - [MCP Tools Reference](docs/mcp-tools.meldoc.md)
87
- - [Full Documentation](https://docs.meldoc.io/integrations/mcp)
87
+ When creating or updating documents, remember:
88
+
89
+ - **File extension**: `*.meldoc.md`
90
+ - **YAML frontmatter required**: Every document must start with frontmatter containing `title` and `alias`
91
+ - **No H1 in content**: Title comes from frontmatter, content starts with H2
92
+ - **Magic links**: Use `[[alias]]` for internal document links
93
+ - **Hierarchy**: Use `parentAlias` to organize documents
94
+
95
+ See the documentation-writing skill for detailed writing guidelines.