Chroma Mcp सर्वर
सारांश
Chroma क्या है?
Chroma एक ओपन-सोर्स प्रोजेक्ट है जिसे एक शक्तिशाली और लचीला MCP (Minecraft: Java Edition) सर्वर प्रदान करने के लिए डिज़ाइन किया गया है। यह खिलाड़ियों को Minecraft का एक अनोखा अनुभव प्रदान करता है, जिसमें विभिन्न सुविधाएँ शामिल हैं जो गेमप्ले और सर्वर प्रबंधन को बढ़ाती हैं। यह प्रोजेक्ट GitHub पर "privetin" उपयोगकर्ता के तहत होस्ट किया गया है और योगदान और सुधार के लिए सार्वजनिक रूप से उपलब्ध है।
Chroma की विशेषताएँ
- कस्टमाइज़ेबल सर्वर सेटिंग्स: Chroma सर्वर प्रशासकों को विभिन्न सेटिंग्स को कस्टमाइज़ करने की अनुमति देता है ताकि गेमप्ले अनुभव को उनकी पसंद के अनुसार अनुकूलित किया जा सके।
- उपयोगकर्ता-अनुकूल इंटरफ़ेस: यह प्रोजेक्ट एक उपयोगकर्ता-अनुकूल इंटरफ़ेस के साथ आता है जो सर्वर प्रबंधन और कॉन्फ़िगरेशन को सरल बनाता है।
- सक्रिय समुदाय समर्थन: एक ओपन-सोर्स प्रोजेक्ट होने के नाते, Chroma एक सक्रिय समुदाय से लाभान्वित होता है जो इसके विकास में योगदान करता है और उपयोगकर्ताओं को समर्थन प्रदान करता है।
- नियमित अपडेट: यह प्रोजेक्ट नियमित रूप से बग्स को ठीक करने, प्रदर्शन में सुधार करने और नई सुविधाएँ जोड़ने के लिए अपडेट किया जाता है, जिससे एक सुगम गेमिंग अनुभव सुनिश्चित होता है।
- संगतता: Chroma को विभिन्न Minecraft संस्करणों के साथ संगत बनाने के लिए डिज़ाइन किया गया है, जिससे यह विभिन्न खिलाड़ी आधारों के लिए बहुपरकारी बनता है।
Chroma का उपयोग कैसे करें
- स्थापना: Chroma के साथ शुरू करने के लिए, GitHub रिपॉजिटरी से नवीनतम रिलीज़ डाउनलोड करें। दस्तावेज़ में प्रदान की गई स्थापना निर्देशों का पालन करें।
- कॉन्फ़िगरेशन: स्थापना के बाद, अपनी पसंद के अनुसार सर्वर सेटिंग्स को कॉन्फ़िगर करें। इसमें खिलाड़ी अनुमतियों, गेम मोड और अन्य सर्वर पैरामीटर सेट करना शामिल है।
- सर्वर लॉन्च करना: एक बार कॉन्फ़िगर करने के बाद, सर्वर लॉन्च करें और खिलाड़ियों को आमंत्रित करें। सुनिश्चित करें कि आपका सर्वर संगतता के लिए Minecraft का सही संस्करण चला रहा है।
- समुदाय में भागीदारी: GitHub पर Chroma समुदाय के साथ जुड़ें समर्थन, फीचर अनुरोधों और योगदान के लिए। आप समस्याएँ रिपोर्ट कर सकते हैं, सुधारों का सुझाव दे सकते हैं, या यहां तक कि कोड में योगदान कर सकते हैं।
अक्सर पूछे जाने वाले प्रश्न
प्रश्न: क्या Chroma का उपयोग मुफ्त है?
उत्तर: हाँ, Chroma एक ओपन-सोर्स प्रोजेक्ट है और सभी के लिए मुफ्त है।
प्रश्न: मैं Chroma में कैसे योगदान कर सकता हूँ?
उत्तर: आप समस्याएँ रिपोर्ट करके, सुविधाएँ सुझाकर, या GitHub रिपॉजिटरी पर पुल अनुरोधों के माध्यम से कोड परिवर्तन प्रस्तुत करके योगदान कर सकते हैं।
प्रश्न: Chroma किस Minecraft संस्करणों का समर्थन करता है?
उत्तर: Chroma को कई Minecraft संस्करणों के साथ संगत बनाने के लिए डिज़ाइन किया गया है। हमेशा नवीनतम संगतता जानकारी के लिए दस्तावेज़ की जांच करें।
प्रश्न: मैं Chroma के लिए समर्थन कहाँ पा सकता हूँ?
उत्तर: समर्थन GitHub रिपॉजिटरी के मुद्दों अनुभाग में पाया जा सकता है, जहाँ आप प्रश्न पूछ सकते हैं और समस्याएँ रिपोर्ट कर सकते हैं। इसके अतिरिक्त, सामुदायिक फोरम भी आगे की सहायता प्रदान कर सकते हैं।
प्रश्न: क्या मैं अपने Chroma सर्वर पर गेमप्ले अनुभव को कस्टमाइज़ कर सकता हूँ?
उत्तर: बिल्कुल! Chroma व्यापक कस्टमाइज़ेशन विकल्प प्रदान करता है ताकि आप गेमप्ले अनुभव को अपनी पसंद के अनुसार अनुकूलित कर सकें।
विवरण
Chroma MCP Server
A Model Context Protocol (MCP) server implementation that provides vector database capabilities through Chroma. This server enables semantic document search, metadata filtering, and document management with persistent storage.
Requirements
- Python 3.8+
- Chroma 0.4.0+
- MCP SDK 0.1.0+
Components
Resources
The server provides document storage and retrieval through Chroma's vector database:
- Stores documents with content and metadata
- Persists data in
src/chroma/data
directory - Supports semantic similarity search
Tools
The server implements CRUD operations and search functionality:
Document Management
-
create_document
: Create a new document- Required:
document_id
,content
- Optional:
metadata
(key-value pairs) - Returns: Success confirmation
- Error: Already exists, Invalid input
- Required:
-
read_document
: Retrieve a document by ID- Required:
document_id
- Returns: Document content and metadata
- Error: Not found
- Required:
-
update_document
: Update an existing document- Required:
document_id
,content
- Optional:
metadata
- Returns: Success confirmation
- Error: Not found, Invalid input
- Required:
-
delete_document
: Remove a document- Required:
document_id
- Returns: Success confirmation
- Error: Not found
- Required:
-
list_documents
: List all documents- Optional:
limit
,offset
- Returns: List of documents with content and metadata
- Optional:
Search Operations
search_similar
: Find semantically similar documents- Required:
query
- Optional:
num_results
,metadata_filter
,content_filter
- Returns: Ranked list of similar documents with distance scores
- Error: Invalid filter
- Required:
Features
- Semantic Search: Find documents based on meaning using Chroma's embeddings
- Metadata Filtering: Filter search results by metadata fields
- Content Filtering: Additional filtering based on document content
- Persistent Storage: Data persists in local directory between server restarts
- Error Handling: Comprehensive error handling with clear messages
- Retry Logic: Automatic retries for transient failures
Installation
- Install dependencies:
uv venv
uv sync --dev --all-extras
Configuration
Claude Desktop
Add the server configuration to your Claude Desktop config:
Windows: C:\Users\<username>\AppData\Roaming\Claude\claude_desktop_config.json
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"chroma": {
"command": "uv",
"args": [
"--directory",
"C:/MCP/server/community/chroma",
"run",
"chroma"
]
}
}
}
Data Storage
The server stores data in:
- Windows:
src/chroma/data
- MacOS/Linux:
src/chroma/data
Usage
- Start the server:
uv run chroma
- Use MCP tools to interact with the server:
### Create a document
create_document({
"document_id": "ml_paper1",
"content": "Convolutional neural networks improve image recognition accuracy.",
"metadata": {
"year": 2020,
"field": "computer vision",
"complexity": "advanced"
}
})
### Search similar documents
search_similar({
"query": "machine learning models",
"num_results": 2,
"metadata_filter": {
"year": 2020,
"field": "computer vision"
}
})
Error Handling
The server provides clear error messages for common scenarios:
Document already exists [id=X]
Document not found [id=X]
Invalid input: Missing document_id or content
Invalid filter
Operation failed: [details]
Development
Testing
- Run the MCP Inspector for interactive testing:
npx @modelcontextprotocol/inspector uv --directory C:/MCP/server/community/chroma run chroma
- Use the inspector's web interface to:
- Test CRUD operations
- Verify search functionality
- Check error handling
- Monitor server logs
Building
- Update dependencies:
uv compile pyproject.toml
- Build package:
uv build
Contributing
Contributions are welcome! Please read our Contributing Guidelines for details on:
- Code style
- Testing requirements
- Pull request process
License
This project is licensed under the MIT License - see the LICENSE file for details.
सर्वर कॉन्फ़िगरेशन
{
"mcpServers": {
"chroma": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--privetin--chroma--chroma",
"chroma"
],
"env": {}
}
}
}