Skip to main content

MCP server for connecting to CodeMie Datasources

Project description

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 types
  • projects (array, optional): Filter by project names
  • owner (string, optional): Filter by owner
  • status (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 description
  • project_name (string): Project name
  • repository_link (string): Git repository URL
  • branch (string): Git branch name
  • index_type (string, optional): Type of indexing - 'code', 'summary', or 'chunk-summary' (default: 'code')
  • files_filter (string, optional): File patterns to include/exclude
  • embeddings_model (string, optional): Model for embeddings generation
  • shared_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 update
  • name (string, optional): New name
  • description (string, optional): New description
  • branch (string, optional): New branch
  • files_filter (string, optional): New files filter
  • full_reindex (boolean, optional): Whether to perform full reindex
  • skip_reindex (boolean, optional): Whether to skip reindex
  • resume_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 username
  • CODEMIE_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-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

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

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codemie_mcp_datasources-0.1.352.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codemie_mcp_datasources-0.1.352-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file codemie_mcp_datasources-0.1.352.tar.gz.

File metadata

File hashes

Hashes for codemie_mcp_datasources-0.1.352.tar.gz
Algorithm Hash digest
SHA256 b518cda7ee6fb02aae770199a51f47c8efa636c774c44cdb664ce8a7729a5ac0
MD5 421b1a7e1c7a4334059207173dfcca63
BLAKE2b-256 1a7f6acbf9c7299f4eda68ee87d187220e998e63808407bf61578e007d8f9897

See more details on using hashes here.

File details

Details for the file codemie_mcp_datasources-0.1.352-py3-none-any.whl.

File metadata

File hashes

Hashes for codemie_mcp_datasources-0.1.352-py3-none-any.whl
Algorithm Hash digest
SHA256 97df995c6ab2c7e27b495ed62badee5b9e250641a6dc9de6eec1dbe0d678678a
MD5 be8df4e656f7dca66e13deec1c087c4a
BLAKE2b-256 09167d084716453f2d23d421dd120ebb41d9f3f262c2a0eaf9f76927ee29b38f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page