MCP server for Cyborg platform - documentation generation and more
npm install @cyborg-sdk/mcpMCP server for the Cyborg platform - documentation generation and sync.
This MCP server enables AI tool users to generate, upload, and sync documentation with the Cyborg backend. The AI writes readable markdown docs, users can review/edit, and the backend handles chunking and vectorization.
Add to your ~/.claude/mcp.json:
``json`
{
"mcpServers": {
"cyborg": {
"command": "npx",
"args": ["@cyborg-sdk/mcp"],
"env": {
"CYBORG_PUBLISHABLE_KEY": "cpk_live_xxx",
"CYBORG_API_URL": "https://api.cyborg.dev"
}
}
}
}
> Note: CYBORG_API_URL is optional - defaults to https://api.cyborg.dev
Add to your Cursor MCP settings:
`json`
{
"mcpServers": {
"cyborg": {
"command": "npx",
"args": ["@cyborg-sdk/mcp"],
"env": {
"CYBORG_PUBLISHABLE_KEY": "cpk_live_xxx",
"CYBORG_API_URL": "https://api.cyborg.dev"
}
}
}
}
> Note: CYBORG_API_URL is optional - defaults to https://api.cyborg.dev
| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| CYBORG_PUBLISHABLE_KEY | Yes* | - | Cyborg publishable key for authentication |CYBORG_API_URL
| | No | https://api.cyborg.dev | Backend API URL |
*Publishable key can also be passed as a tool parameter instead of environment variable.
Publishable key is resolved in this order:
1. Tool parameter - Pass publishableKey directly to any toolCYBORG_PUBLISHABLE_KEY
2. Environment variable - Set in MCP config
Initial upload of documentation files to the Cyborg backend.
Parameters:
- publishableKey (optional) - Cyborg publishable keydocsDir
- (default: ./cyborg-docs) - Documentation directorydocumentType
- (default: markdown) - Document type (markdown or text)metadata
- (optional) - Project metadata (name, version)
Example:
``
Upload my docs from ./cyborg-docs
Detect changes and sync with the backend.
Parameters:
- publishableKey (optional) - Cyborg publishable keydocsDir
- (default: ./cyborg-docs) - Documentation directorydryRun
- (default: false) - Preview changes without uploading
Example:
``
Sync my documentation changes
Update a single document in the backend.
Parameters:
- publishableKey (optional) - Cyborg publishable keypath
- - Relative file path (e.g., api/useChat.md)docsDir
- (default: ./cyborg-docs) - Documentation directory
Example:
``
Update the api/useChat.md file in the backend
Delete a document from the backend.
Parameters:
- publishableKey (optional) - Cyborg publishable keypath
- - Relative file path to deletedocsDir
- (default: ./cyborg-docs) - Documentation directorydeleteLocalFile
- (default: false) - Also delete the local file
Example:
``
Delete api/deprecated.md from the backend
List all documentation files in the output directory.
Read a specific documentation file.
Show sync status of documentation files:
- synced - Files up to date with backendmodified
- - Files changed locallyuntracked
- - New files not uploadeddeleted
- - Files deleted locally but still in backend
Interactive prompt that guides you through generating documentation tailored to your audience. It will ask about:
1. Product description
2. Target audience
3. Technical level
4. Main features
5. Common tasks
6. Documentation style
7. Existing docs
Then analyze your codebase and generate appropriate documentation.
Generated documentation follows this structure:
``
cyborg-docs/
├── getting-started.md
├── api/
│ ├── useChat.md
│ └── sendMessage.md
├── components/
│ └── ChatProvider.md
├── types/
│ └── Message.md
└── guides/
└── customization.md
After upload, state is saved to .cyborg-docs/.cyborg-state.json:
`json`
{
"apiUrl": "https://api.cyborg.dev",
"projectId": "proj_abc123",
"lastSyncedAt": "2025-11-30T12:00:00Z",
"files": {
"getting-started.md": {
"documentId": "doc_xyz789",
"contentHash": "sha256:abc123...",
"syncedAt": "2025-11-30T12:00:00Z"
}
}
}
1. Generate documentation:
``
Generate documentation for this project
2. Review and edit the generated files in ./cyborg-docs/
3. Upload to Cyborg:
``
Upload my docs with publishable key cpk_live_xxx
1. Make changes to your code
2. Regenerate affected docs:
``
Update the useChat hook documentation
3. Sync changes:
``
Sync my documentation
``
What's the status of my docs?
`bashInstall dependencies
npm install
MIT