Your project is a sophisticated Model Context Protocol (MCP) server implementation that acts as a bridge between Large Language Models (specifically Claude) and Couchbase databases. Built with TypeScript and leveraging the @modelcontextprotocol/sdk, it provides a comprehensive set of tools for database operations including document CRUD operations, scope and collection management, index handling, and N1QL query execution. The server is designed to work seamlessly with Claude Desktop, allowing natural language interactions with Couchbase databases. The architecture is well-structured with clear separation of concerns, organized into distinct modules for different database operations. The core functionality is divided into five main tool categories: query tools for executing N1QL queries, document tools for CRUD operations, collection tools for managing collections, scope tools for scope management, and index tools for handling database indexes. Each tool is implemented with proper error handling and uses Zod for runtime type validation, making the server both robust and type-safe. The project also includes environment-based configuration and follows modern TypeScript practices with proper typing and error handling throughout the codebase.
Aún no hay reseñas. ¡Sé el primero en reseñar!
Inicia sesión para unirte a la conversación
Execute N1QL queries
List available buckets
Create a new scope in a bucket
Delete an existing scope
List all scopes in a bucket
Create a new collection in a scope
Delete a collection from a scope
Create a new document
Retrieve a document by ID
Update an existing document
Delete a document by ID
Create multiple documents at once
Create a new index on specified fields
Create a primary index on a collection
List all indexes in a bucket
Drop an existing index