mustafasameturan/Doclasana.MCP
If you are the rightful owner of Doclasana.MCP and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Doclasana MCP Server allows developers to access documentation from the Doclasana platform directly within AI-powered IDEs.
list_documents
Lists all documents accessible to the authenticated user.
search_documents
Searches for keywords within document contents.
get_document
Retrieves the complete content of a specific document.
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-server
From 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 build
2. Start the MCP Server
npm start
For development mode:
npm run dev
Note: The API key is specified in IDE configuration, not at server startup.
โ๏ธ IDE Configuration
Cursor IDE
{
"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
args
path to your project directory if installing from source - Replace
DOCLASANA_API_KEY
value 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 documents
2. 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_KEY
is 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
Project 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 file
Scripts
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 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