Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Breaking changes in 0.2.0

  • The Python package is now codemie_mcp_datasources. The command codemie-mcp-datasources is unchanged.
  • The server no longer has built-in server addresses. CODEMIE_AUTH_SERVER_URL, CODEMIE_AUTH_REALM_NAME and CODEMIE_API_DOMAIN are required. Without them the server exits with an error.
  • TLS certificate verification is now on by default. Earlier versions turned it off in this server. Set CODEMIE_VERIFY_SSL=false to keep the old behavior for local testing only.

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).

When using uv no specific installation is needed. We will use uvx to directly run codemie-mcp-datasources.

uvx codemie-mcp-datasources

create_git_faq_datasource

Creates a Git FAQ datasource (knowledge_base_git_faq). Every .md file in the repository (narrowed only by the optional gitignore-style files_filter) is parsed as an FAQ article, split into embedded H1-H3 section chunks, and searched through the standard hybrid knowledge-base retrieval flow.

create_git_faq_datasource(
  name="team_faq",
  description="Team FAQ articles",
  project_name="my_project",
  repository_link="https://github.com/org/docs",
  branch="main",
  files_filter="docs/**/*.md\n!docs/internal/**",
)

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_AUTH_SERVER_URL": "https://auth.example.com/auth",
      "CODEMIE_AUTH_REALM_NAME": "your-realm",
      "CODEMIE_API_DOMAIN": "https://codemie.example.com/code-assistant-api",
      "CODEMIE_USERNAME": "your-username",
      "CODEMIE_PASSWORD": "your-password"
    }
  }
}

Optional variables:

"env": {
  "CODEMIE_AUTH_CLIENT_ID": "codemie-sdk",
  "CODEMIE_VERIFY_SSL": "true"
}
Using poetry installation

Required variables:

"mcpServers": {
  "codemie-datasources": {
    "command": "poetry",
    "args": ["run", "codemie-mcp-datasources"],
    "env": {
      "CODEMIE_AUTH_SERVER_URL": "https://auth.example.com/auth",
      "CODEMIE_AUTH_REALM_NAME": "your-realm",
      "CODEMIE_API_DOMAIN": "https://codemie.example.com/code-assistant-api",
      "CODEMIE_USERNAME": "your-username",
      "CODEMIE_PASSWORD": "your-password"
    }
  }
}

Optional variables:

"env": {
  "CODEMIE_AUTH_CLIENT_ID": "codemie-sdk",
  "CODEMIE_VERIFY_SSL": "true"
}

Environment Variables

Mandatory Variables

The following environment variables must be configured before running the MCP server:

Platform settings (all three are required, an empty value counts as missing):

  • CODEMIE_AUTH_SERVER_URL: URL of your authentication server, for example https://auth.example.com/auth
  • CODEMIE_AUTH_REALM_NAME: authentication realm name
  • CODEMIE_API_DOMAIN: URL of your CodeMie API, for example https://codemie.example.com/code-assistant-api

The server has no built-in addresses. If any of the three is missing it prints Missing required settings: <names> and exits with a non-zero code, before any network call.

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

  • CODEMIE_AUTH_CLIENT_ID: authentication client ID (default: codemie-sdk)

  • CODEMIE_VERIFY_SSL: TLS certificate verification flag (default: true). Set false only for local testing.

Build

Make build:

make build

Metadata

Release files for codemie-mcp-datasources 0.2.0rc0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codemie-mcp-datasources 0.2.0rc0
File Size Uploaded
codemie_mcp_datasources-0.2.0rc0.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for codemie-mcp-datasources 0.2.0rc0
File Interpreter ABI Platform
codemie_mcp_datasources-0.2.0rc0-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / codemie_mcp_datasources-0.2.0rc0.tar.gz

Download URL codemie_mcp_datasources-0.2.0rc0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
87e7d4fa3358c833756beaacbcecf753989e1e8b06c756725d46e8d9a8e6661d
BLAKE2b-256 checksum
How to use checksums
cb722a249e26d6b538647892c3e1e9a04299820e52c78fd10721f47b4929c4a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / codemie_mcp_datasources-0.2.0rc0-py3-none-any.whl

Download URL codemie_mcp_datasources-0.2.0rc0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a2d1d224a105cdda6b551170df64722a71a28b823aec6916f17f7c1e8b74719
BLAKE2b-256 checksum
How to use checksums
8b61e732174121a9b8714378a89ad8892ec46d1ff37d7a51594cf1044145c689
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.2.0rc0 This release

2 release files

0.1.91

2 release files

0.1.89

2 release files

0.1.88

2 release files

0.1.84

2 release files

0.1.82

2 release files

0.1.80

2 release files

0.1.78

2 release files

0.1.76

2 release files

0.1.70

2 release files

0.1.50

2 release files

0.1.48

2 release files

0.1.40

2 release files

0.1.36

2 release files

0.1.27

2 release files

0.1.22

2 release files

0.1.12

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page