CodeMie Datasources MCP Server
Python server implementing Model Context Protocol (MCP) for CodeMie Datasources operations.
Features
- List and filter datasources
- Get datasource details
- Create code datasources
- Update datasources
- Delete datasources
- Monitor datasource processing status
Note: The server requires authentication credentials via environment variables.
API
Tools
list_datasources
Get list of available datasources with filtering and pagination Inputs:
page (integer, optional): Page number (default: 0)per_page (integer, optional): Items per page (default: 10)sort_key (string, optional): Sort by 'date' or 'update_date' (default: 'update_date')sort_order (string, optional): Sort order 'asc' or 'desc' (default: 'desc')datasource_types (array, optional): Filter by datasource typesprojects (array, optional): Filter by project namesowner (string, optional): Filter by ownerstatus (string, optional): Filter by status
Returns list of datasources with their details
get_datasource
Get detailed information about a specific datasource Inputs:
datasource_id (string): ID of the datasource to retrieve
Returns complete datasource details including configuration
create_code_datasource
Create a new code datasource Inputs:
name (string): Datasource name (lowercase letters and underscores only)description (string): Datasource descriptionproject_name (string): Project namerepository_link (string): Git repository URLbranch (string): Git branch nameindex_type (string, optional): Type of indexing - 'code', 'summary', or 'chunk-summary' (default: 'code')files_filter (string, optional): File patterns to include/excludeembeddings_model (string, optional): Model for embeddings generationshared_with_project (boolean, optional): Whether datasource is shared with project (default: false)
Returns created datasource details
update_code_datasource
Update an existing code datasource Inputs:
datasource_id (string): ID of the datasource to updatename (string, optional): New namedescription (string, optional): New descriptionbranch (string, optional): New branchfiles_filter (string, optional): New files filterfull_reindex (boolean, optional): Whether to perform full reindexskip_reindex (boolean, optional): Whether to skip reindexresume_indexing (boolean, optional): Whether to resume indexing
Returns updated datasource details
delete_datasource
Delete a datasource Inputs:
datasource_id (string): ID of the datasource to delete
Returns deletion confirmation
get_datasource_processing_info
Get datasource processing status and progress Inputs:
datasource_id (string): ID of the datasource to get info for
Returns processing information including status, progress, and file counts
Installation
Ensure you have Python 3.12 or later installed.
Important: Before running the MCP server, you must configure the required environment variables (see Environment Variables section below).
Using uv (recommended)
When using uv no specific installation is needed. We will
use uvx to directly run codemie-mcp-datasources.
uvx codemie-mcp-datasources
Using Poetry
Alternatively you can install via Poetry:
poetry install codemie-mcp-datasources
After installation, you can run it as a script using:
poetry run codemie-mcp-datasources
Configuration
Configure for Claude.app
Add to your Claude settings:
Using uvx
Required variables:
"mcpServers": {
"codemie-datasources": {
"command": "uvx",
"args": ["codemie-mcp-datasources"],
"env": {
"CODEMIE_USERNAME": "your-username",
"CODEMIE_PASSWORD": "your-password"
}
}
}
Optional variables (with defaults):
"env": {
"CODEMIE_API_DOMAIN": "https://codemie.lab.epam.com/code-assistant-api",
"CODEMIE_AUTH_CLIENT_ID": "codemie-sdk",
"CODEMIE_AUTH_SERVER_URL": "https://keycloak.eks-core.aws.main.edp.projects.epam.com/auth",
"CODEMIE_AUTH_REALM_NAME": "codemie-prod"
}
Using poetry installation
Required variables:
"mcpServers": {
"codemie-datasources": {
"command": "poetry",
"args": ["run", "codemie-mcp-datasources"],
"env": {
"CODEMIE_USERNAME": "your-username",
"CODEMIE_PASSWORD": "your-password"
}
}
}
Optional variables (with defaults):
"env": {
"CODEMIE_API_DOMAIN": "https://codemie.lab.epam.com/code-assistant-api",
"CODEMIE_AUTH_CLIENT_ID": "codemie-sdk",
"CODEMIE_AUTH_SERVER_URL": "https://keycloak.eks-core.aws.main.edp.projects.epam.com/auth",
"CODEMIE_AUTH_REALM_NAME": "codemie-prod"
}
Environment Variables
Mandatory Variables
The following environment variables must be configured before running the MCP server:
Authentication (choose one method):
Option 1: Username/Password
CODEMIE_USERNAME: Your CodeMie usernameCODEMIE_PASSWORD: Your CodeMie password
Option 2: Client Credentials
CODEMIE_AUTH_CLIENT_SECRET: Auth client secret
Optional Variables (Environment-Specific)
By default, the server connects to the production environment with these settings:
CODEMIE_API_DOMAIN:https://codemie.lab.epam.com/code-assistant-apiCODEMIE_AUTH_CLIENT_ID:codemie-sdkCODEMIE_AUTH_SERVER_URL:https://keycloak.eks-core.aws.main.edp.projects.epam.com/authCODEMIE_AUTH_REALM_NAME:codemie-prod
You can override these variables to point to a different environment.
Example: Preview Environment Configuration
CODEMIE_API_DOMAIN="https://codemie-preview.lab.epam.com/code-assistant-api"
CODEMIE_AUTH_CLIENT_ID="codemie-preview-sdk"
CODEMIE_AUTH_SERVER_URL="https://keycloak.eks-core.aws.main.edp.projects.epam.com/auth"
CODEMIE_AUTH_REALM_NAME="codemie-prod"
Other Optional Variables:
CODEMIE_VERIFY_SSL: SSL verification flag (default:true)
Build
Make build:
make build
Release files for codemie-mcp-datasources 0.1.604
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| codemie_mcp_datasources-0.1.604.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| codemie_mcp_datasources-0.1.604-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / codemie_mcp_datasources-0.1.604.tar.gz
| Download URL | codemie_mcp_datasources-0.1.604.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5358decc4ba808d7f92db635895e8ca9676b5acd709a6d4d304740771777cfc4
|
|
BLAKE2b-256 checksum How to use checksums |
85c511456ff8d67fb0bc923a0cbcf15dba625b97fe8a413d36dd64f5fed17c49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.5
|
Release files / codemie_mcp_datasources-0.1.604-py3-none-any.whl
| Download URL | codemie_mcp_datasources-0.1.604-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f343acc841a964742ecc7ad94e97f44fc1d7df802c50cef1ff22bde314e5b2a5
|
|
BLAKE2b-256 checksum How to use checksums |
021e91c635b85d0bb025e53fd62f6bc70f4ad9f6a83b471ae22fcd2a64d7ffc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.5
|