Skip to main content

MCP server for connecting to CodeMie Assistants API

Project description

CodeMie Assistants MCP Server

Python server implementing Model Context Protocol (MCP) for CodeMie Assistants operations.

Features

  • Chat with AI/Run CodeMie assistant

Note: The server requires authentication credentials via environment variables.

API

Tools

chat

Chat with a specific AI assistant Inputs:

  • message (string): Message to send to assistant
  • conversation_id (string): Identifier of current conversation. It should be always passed if present in current communication thread.
  • history (array, optional): Previous conversation messages in format: [{"role": "user|assistant", "message": "text"}]

Returns generated assistant response as text

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

uvx codemie-mcp-assistants

Using Poetry

Alternatively you can install via Poetry:

poetry install codemie-mcp-assistants

After installation, you can run it as a script using:

poetry run codemie-mcp-assistants

Configuration

Configure for Claude.app

Add to your Claude settings:

Using uvx

Required variables:

"mcpServers": {
  "codemie": {
    "command": "uvx",
    "args": ["codemie-mcp-assistants"],
    "env": {
      "CODEMIE_ASSISTANT_ID": "your-assistant-id",
      "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": {
    "command": "poetry",
    "args": ["run", "codemie-mcp-assistants"],
    "env": {
      "CODEMIE_ASSISTANT_ID": "your-assistant-id",
      "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:

Assistant Configuration:

  • CODEMIE_ASSISTANT_ID: Your CodeMie assistant ID (required)

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_assistants-0.1.259.tar.gz (5.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_assistants-0.1.259-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file codemie_mcp_assistants-0.1.259.tar.gz.

File metadata

File hashes

Hashes for codemie_mcp_assistants-0.1.259.tar.gz
Algorithm Hash digest
SHA256 f35eaae338f0b5407de8e08e979ec940530af5a8f9b8439b14820df154138e0b
MD5 98f0900ecfdca12977c639818fe2d165
BLAKE2b-256 f0da5c8c0e12a9d6459da512db1c8e32c4f6e499045f84a19494db1ecbcda233

See more details on using hashes here.

File details

Details for the file codemie_mcp_assistants-0.1.259-py3-none-any.whl.

File metadata

File hashes

Hashes for codemie_mcp_assistants-0.1.259-py3-none-any.whl
Algorithm Hash digest
SHA256 c47f251dbf87016fe6acc2264e3d82a9636a88c369bf3f67b99d4e809d933522
MD5 aed8591723b0133a83ed49ee7666951f
BLAKE2b-256 619d4c2385bb336a90f5003c49eb5db03a138740c20fb1aa003f36118625839e

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