### Install Doclasana MCP Server via NPM Source: https://github.com/mustafasameturan/doclasana.mcp/blob/master/README.md Installs the Doclasana MCP Server globally using npm. This is the recommended method for quick setup and usage. ```bash npm install -g doclasana-mcp-server ``` -------------------------------- ### Install Doclasana MCP Server from Source Source: https://github.com/mustafasameturan/doclasana.mcp/blob/master/README.md Installs the Doclasana MCP Server by cloning the repository and building from source. This method is useful for development or contributing to the project. ```bash git clone https://github.com/doclasana/doclasana-mcp-server.git cd doclasana-mcp-server npm install npm run build ``` -------------------------------- ### Start Doclasana MCP Server Source: https://github.com/mustafasameturan/doclasana.mcp/blob/master/README.md Starts the compiled Doclasana MCP Server. This command is used after building the project from source or for running the production build. ```bash npm start ``` -------------------------------- ### Configure Global Installation for Doclasana MCP Server Source: https://github.com/mustafasameturan/doclasana.mcp/blob/master/README.md Configuration snippet for IDEs when the Doclasana MCP Server is installed globally. It uses the command-line executable and sets the API key via environment variables. ```json { "mcpServers": { "doclasana": { "command": "doclasana-mcp", "env": { "DOCLASANA_API_KEY": "your-actual-doclasana-api-key" } } } } ``` -------------------------------- ### Run Doclasana MCP Server in Development Source: https://github.com/mustafasameturan/doclasana.mcp/blob/master/README.md Starts the Doclasana MCP Server in development mode, typically with features like hot-reloading. This is useful for active development and debugging. ```bash npm run dev ``` -------------------------------- ### Build Doclasana MCP Server Project Source: https://github.com/mustafasameturan/doclasana.mcp/blob/master/README.md Compiles the TypeScript source code into JavaScript, preparing the server for execution. This command is part of the build process when installing from source. ```bash npm run build ``` -------------------------------- ### Configure Cursor IDE for Doclasana MCP Server Source: https://github.com/mustafasameturan/doclasana.mcp/blob/master/README.md Configuration snippet for the Cursor IDE to connect to the Doclasana MCP Server. It specifies the command to run the server and the environment variable for the API key. ```json { "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" } } } } ``` -------------------------------- ### Doküman Yönetimi API Source: https://github.com/mustafasameturan/doclasana.mcp/blob/master/doclasana-prd.md Bu bölüm, MCP sunucusunun kullanacağı Doclasana API endpoint'lerini ve bunların işlevlerini detaylandırmaktadır. Doküman listeleme, içerik arama ve belirli bir dokümanı getirme gibi temel işlemleri kapsar. Tüm istekler x-api-key başlığı ile kimlik doğrulaması gerektirir. ```APIDOC Doküman Listeleme: GET /api/v1/documents/my Amaç: Kimliği doğrulanmış kullanıcının tüm dokümanlarının meta verilerini sayfalama desteği ile listeler. Dokümanların tam içeriğini döndürmez. Parametreler: page (opsiyonel, sayı): Sayfa numarası. pageSize (opsiyonel, sayı): Sayfa başına doküman sayısı. Başarılı Yanıt: Doküman ID'si, dosya adı, tarih gibi bilgileri içeren paginasyonlu bir doküman listesi. Hata Yanıtı: Standart HTTP hata kodları (örn: 401 Unauthorized). Doküman İçeriğinde Arama: GET /api/v1/documents/search-content Amaç: Kullanıcının tüm dokümanlarının içeriğinde sunucu tarafında arama yapar ve eşleşen dokümanları tam içerikleriyle birlikte döndürür. Parametreler: searchTerm (zorunlu, metin): Aranacak anahtar kelime. page (opsiyonel, sayı): Sayfa numarası. pageSize (opsiyonel, sayı): Sayfa başına doküman sayısı. Başarılı Yanıt: Arama terimiyle eşleşen dokümanların tam içeriklerini içeren paginasyonlu bir liste. Hata Yanıtı (404 Not Found): {"title": "No documents found matching the search criteria", "status": 404}. Belirli Bir Dokümanı Getirme: GET /api/v1/documents/getDocumentById/{id} Amaç: Belirtilen ID'ye sahip tek bir dokümanın tüm detaylarını ve içeriğini getirir. Parametreler: id (zorunlu, metin): Yol (path) üzerinde belirtilen doküman ID'si. Başarılı Yanıt: id, filename, content, timestamp gibi tüm alanları içeren tek bir doküman nesnesi. Hata Yanıtı (404 Not Found): {"title": "Document not found", "status": 404}. ``` -------------------------------- ### Doclasana MCP Server Tools: Document Management Source: https://github.com/mustafasameturan/doclasana.mcp/blob/master/README.md API documentation for the Doclasana MCP Server's tools related to document management. These tools allow listing, searching, and retrieving document content. ```APIDOC 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 search_documents Searches for keywords within document contents. Parameters: searchTerm (required): Keyword to search for page (optional): Page number (default: 1) pageSize (optional): Documents per page (default: 20, max: 100) Example: Search for documents containing "API key" get_document Retrieves the complete content of a specific document. Parameters: id (required): Document ID Example: Get document with ID "abc123" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.