doclasana-mcp-server
v1.0.0
Published
MCP Server for Doclasana documentation platform integration with AI-powered IDEs
Maintainers
Readme
Doclasana MCP Server
This MCP (Model Context Protocol) server enables developers to access documentation from the Doclasana platform directly within AI-powered IDEs like Cursor, Cline, and Windsurf.
✨ Features
- 🔐 Secure Authentication: Secure connection with API key
- 📋 Document Listing: List all documents with pagination support
- 📖 Document Viewing: View complete content of specific documents
- 🔍 Content Search: Server-side search within document contents
- 📝 Markdown Support: Full support for Markdown formatted documents
- 🚨 Error Handling: Clear and user-friendly error messages
📦 Installation
NPM
npm install -g doclasana-mcp-serverFrom Source
git clone https://github.com/doclasana/doclasana-mcp-server.git
cd doclasana-mcp-server
npm install
npm run build🚀 Quick Start
1. Build the Project
npm run build2. Start the MCP Server
npm startFor development mode:
npm run devNote: The API key is specified in IDE configuration, not at server startup.
⚙️ IDE Configuration
Cursor IDE
Add the following configuration to your claude_desktop_config.json file:
{
"mcpServers": {
"doclasana": {
"command": "node",
"args": ["/path/to/your/node_modules/doclasana-mcp-server/dist/index.js"],
"env": {
"DOCLASANA_API_KEY": "your-actual-doclasana-api-key"
}
}
}
}Using Global Installation
If you installed globally:
{
"mcpServers": {
"doclasana": {
"command": "doclasana-mcp",
"env": {
"DOCLASANA_API_KEY": "your-actual-doclasana-api-key"
}
}
}
}Important:
- Update the
argspath to your project directory if installing from source - Replace
DOCLASANA_API_KEYvalue with your actual API key
Other MCP-Compatible IDEs
You can configure this MCP server in other IDEs similarly. Just specify the Node.js command and required environment variables.
🛠️ Available Tools
This MCP server provides the following tools:
1. list_documents
Lists all documents accessible to the authenticated user.
Parameters:
page(optional): Page number (default: 1)pageSize(optional): Documents per page (default: 20, max: 100)
Example:
List my documents2. search_documents
Searches for keywords within document contents.
Parameters:
searchTerm(required): Keyword to search forpage(optional): Page number (default: 1)pageSize(optional): Documents per page (default: 20, max: 100)
Example:
Search for documents containing "API key"3. get_document
Retrieves the complete content of a specific document.
Parameters:
id(required): Document ID
Example:
Get document with ID "abc123"💡 Usage Scenarios
Scenario 1: Exploring Project Documentation
- Tell your AI assistant in the IDE: "List my documents"
- Note the ID of an interesting document
- Use "Get document with ID [document-id]" to read the full content
Scenario 2: Finding Specific Information
- Search with a keyword like "API usage"
- Select the relevant document from results
- View full content if needed
Scenario 3: Tracking Updates
- Regularly list documents
- Check modification dates for updated documents
- Review updated document contents
🔧 Troubleshooting
API Key Error
- Ensure
DOCLASANA_API_KEYis correctly set in IDE configuration - Verify your API key is valid and active
- If you get "DOCLASANA_API_KEY environment variable is required" error, check your IDE configuration
Connection Error
- Check your internet connection
- Verify Doclasana API service is operational
Authorization Error
- Ensure your API key has necessary permissions for documents
🧪 Development
Running Tests
npm testProject Structure
doclasana-mcp-server/
├── src/
│ ├── index.ts # Main MCP server code
│ └── global.d.ts # TypeScript type definitions
├── dist/ # Compiled JavaScript files
├── package.json # Project dependencies
├── tsconfig.json # TypeScript configuration
├── LICENSE # MIT License
└── README.md # This fileScripts
npm run build- Compile TypeScript to JavaScriptnpm run dev- Run in development mode with auto-reloadnpm start- Start the compiled servernpm test- Run testsnpm run prepublishOnly- Pre-publish build hook
🤝 Contributing
- Fork this repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
If you have any questions or suggestions, please reach out through GitHub Issues.
🏷️ Version History
v1.0.0
- Initial MVP release
- Basic document listing, searching, and viewing features
- Secure API key authentication
- Markdown document support
🔗 Related
Made with ❤️ by the Doclasana Team
