An MCP Server to utilize Codelogic's rich software dependency data in your AI programming assistant. The server implements five tools: - codelogic-method-impact: Pulls an impact assessment from the CodeLogic server's APIs for your code. - Takes the given "method" that you're working on and its associated "class". - codelogic-database-impact: Analyzes impacts between code and database entities. - T
Add this skill
npx mdskills install CodeLogicIncEngineering/codelogic-mcp-serverComprehensive MCP server for code and database impact analysis with strong DevOps integration
1# codelogic-mcp-server23An [MCP Server](https://modelcontextprotocol.io/introduction) to utilize Codelogic's rich software dependency data in your AI programming assistant.45## Components67### Tools89The server implements five tools:1011#### Code Analysis Tools12- **codelogic-method-impact**: Pulls an impact assessment from the CodeLogic server's APIs for your code.13 - Takes the given "method" that you're working on and its associated "class".14- **codelogic-database-impact**: Analyzes impacts between code and database entities.15 - Takes the database entity type (column, table, or view) and its name.1617#### DevOps & CI/CD Integration Tools18- **codelogic-docker-agent**: Generates Docker agent configurations for CodeLogic scanning in CI/CD pipelines.19 - Supports .NET, Java, SQL, and TypeScript agents20 - Generates configurations for Jenkins, GitHub Actions, Azure DevOps, and GitLab CI21- **codelogic-build-info**: Generates build information and send commands for CodeLogic integration.22 - Supports Git information, build logs, and metadata collection23 - Provides both Docker and standalone usage examples24- **codelogic-pipeline-helper**: Generates complete CI/CD pipeline configurations for CodeLogic integration.25 - Creates comprehensive pipeline configurations with best practices26 - Includes error handling, notifications, and scan space management strategies2728### Install2930#### Pre Requisites3132The MCP server relies upon Astral UV to run, please [install](https://docs.astral.sh/uv/getting-started/installation/)3334### MacOS Workaround for uvx3536There is a known issue with `uvx` on **MacOS** where the CodeLogic MCP server may fail to launch in certain IDEs (such as Cursor), resulting in errors like:37See [issue #11](https://github.com/CodeLogicIncEngineering/codelogic-mcp-server/issues/11)38```39Failed to connect client closed40```4142This appears to be a problem with Astral `uvx` running on MacOS. The following can be used as a workaround:43441. Clone this project locally.452. Configure your `mcp.json` to use `uv` instead of `uvx`. For example:4647```json48{49 "mcpServers": {50 "codelogic-mcp-server": {51 "type": "stdio",52 "command": "<PATH_TO_UV>/uv",53 "args": [54 "--directory",55 "<PATH_TO_THIS_REPO>/codelogic-mcp-server-main",56 "run",57 "codelogic-mcp-server"58 ],59 "env": {60 "CODELOGIC_SERVER_HOST": "<url to the server e.g. https://myco.app.codelogic.com>",61 "CODELOGIC_USERNAME": "<my username>",62 "CODELOGIC_PASSWORD": "<my password>",63 "CODELOGIC_WORKSPACE_NAME": "<my workspace>",64 "CODELOGIC_DEBUG_MODE": "true"65 }66 }67 }68}69```70713. Restart Cursor.724. Ensure the Cursor Global Rule for CodeLogic is in place.735. Open the MCP tab in Cursor and refresh the `codelogic-mcp-server`.746. Ask Cursor to make a code change in an existing class. The MCP server should now run the impact analysis successfully.7576## Configuration for Different IDEs7778### Visual Studio Code Configuration7980To configure this MCP server in VS Code:81821. First, ensure you have GitHub Copilot agent mode enabled in VS Code.83842. Create a `.vscode/mcp.json` file in your workspace with the following configuration:8586```json87{88 "servers": {89 "codelogic-mcp-server": {90 "type": "stdio",91 "command": "uvx",92 "args": [93 "codelogic-mcp-server@latest"94 ],95 "env": {96 "CODELOGIC_SERVER_HOST": "<url to the server e.g. https://myco.app.codelogic.com>",97 "CODELOGIC_USERNAME": "<my username>",98 "CODELOGIC_PASSWORD": "<my password>",99 "CODELOGIC_WORKSPACE_NAME": "<my workspace>",100 "CODELOGIC_DEBUG_MODE": "true"101 }102 }103 }104}105```106107> **Note:** On some systems, you may need to use the full path to the uvx executable instead of just "uvx". For example: `/home/user/.local/bin/uvx` on Linux/Mac or `C:\Users\username\AppData\Local\astral\uvx.exe` on Windows.1081093. Alternatively, you can run the `MCP: Add Server` command from the Command Palette and provide the server information.1101114. To manage your MCP servers, use the `MCP: List Servers` command from the Command Palette.1121135. Once configured, the server's tools will be available to Copilot agent mode. You can toggle specific tools on/off as needed by clicking the Tools button in the Chat view when in agent mode.1141156. To use the Codelogic tools in agent mode, you can specifically ask about code impacts or database relationships, and the agent will utilize the appropriate tools.116117### Claude Desktop Configuration118119Configure Claude Desktop by editing the configuration file:120121- On MacOS: `~/Library/Application\ Support/Claude/claude_desktop_config.json`122- On Windows: `%APPDATA%/Claude/claude_desktop_config.json`123- On Linux: `~/.config/Claude/claude_desktop_config.json`124125Add the following to your configuration file:126127```json128"mcpServers": {129 "codelogic-mcp-server": {130 "command": "uvx",131 "args": [132 "codelogic-mcp-server@latest"133 ],134 "env": {135 "CODELOGIC_SERVER_HOST": "<url to the server e.g. https://myco.app.codelogic.com>",136 "CODELOGIC_USERNAME": "<my username>",137 "CODELOGIC_PASSWORD": "<my password>",138 "CODELOGIC_WORKSPACE_NAME": "<my workspace>"139 }140 }141}142```143144> **Note:** On some systems, you may need to use the full path to the uvx executable instead of just "uvx". For example: `/home/user/.local/bin/uvx` on Linux/Mac or `C:\Users\username\AppData\Local\astral\uvx.exe` on Windows.145146After adding the configuration, restart Claude Desktop to apply the changes.147148### Windsurf IDE Configuration149150To run this MCP server with [Windsurf IDE](https://codeium.com/windsurf):151152**Configure Windsurf IDE**:153154To configure Windsurf IDE, you need to create or modify the `~/.codeium/windsurf/mcp_config.json` configuration file.155156Add the following configuration to your file:157158```json159"mcpServers": {160 "codelogic-mcp-server": {161 "command": "uvx",162 "args": [163 "codelogic-mcp-server@latest"164 ],165 "env": {166 "CODELOGIC_SERVER_HOST": "<url to the server e.g. https://myco.app.codelogic.com>",167 "CODELOGIC_USERNAME": "<my username>",168 "CODELOGIC_PASSWORD": "<my password>",169 "CODELOGIC_WORKSPACE_NAME": "<my workspace>"170 }171 }172}173```174175> **Note:** On some systems, you may need to use the full path to the uvx executable instead of just "uvx". For example: `/home/user/.local/bin/uvx` on Linux/Mac or `C:\Users\username\AppData\Local\astral\uvx.exe` on Windows.176177After adding the configuration, restart Windsurf IDE or refresh the tools to apply the changes.178179### Cursor Configuration180181To configure the CodeLogic MCP server in Cursor:1821831. Configure the MCP server by creating a `.cursor/mcp.json` file:184185```json186{187 "mcpServers": {188 "codelogic-mcp-server": {189 "command": "uvx",190 "args": [191 "codelogic-mcp-server@latest"192 ],193 "env": {194 "CODELOGIC_SERVER_HOST": "<url to the server e.g. https://myco.app.codelogic.com>",195 "CODELOGIC_USERNAME": "<my username>",196 "CODELOGIC_PASSWORD": "<my password>",197 "CODELOGIC_WORKSPACE_NAME": "<my workspace>",198 "CODELOGIC_DEBUG_MODE": "true"199 }200 }201 }202}203```204205> **Note:** On some systems, you may need to use the full path to the uvx executable instead of just "uvx". For example: `/home/user/.local/bin/uvx` on Linux/Mac or `C:\Users\username\AppData\Local\astral\uvx.exe` on Windows.2062072. Restart Cursor to apply the changes.208209The CodeLogic MCP server tools will now be available in your Cursor workspace.210211## DevOps Integration212213The CodeLogic MCP Server now includes powerful DevOps capabilities for integrating CodeLogic scanning into your CI/CD pipelines. These tools help DevOps teams:214215### Docker Agent Integration216- Generate Docker run commands for CodeLogic agents217- Create platform-specific configurations (Jenkins, GitHub Actions, Azure DevOps, GitLab CI)218- Set up proper environment variables and volume mounts219- Include build information collection220221### Build Information Management222- Send Git information, build logs, and metadata to CodeLogic servers223- Support multiple CI/CD platforms with platform-specific variables224- Handle log file management and rotation225- Provide both Docker and standalone usage options226227### Complete Pipeline Configuration228- Generate end-to-end CI/CD pipeline configurations229- Include error handling, notifications, and monitoring230- Support different scan space management strategies231- Follow DevOps best practices for security and performance232233### Example Usage234235```bash236# Generate Docker agent configuration for .NET237codelogic-docker-agent --agent-type=dotnet --scan-path=/app --application-name=MyApp --ci-platform=jenkins238239# Set up build information sending240codelogic-build-info --build-type=all --output-format=docker --ci-platform=github-actions241242# Create complete pipeline configuration243codelogic-pipeline-helper --ci-platform=jenkins --agent-type=dotnet --scan-triggers=main,develop244```245246## AI Assistant Instructions/Rules247248To help the AI assistant use the CodeLogic tools effectively, you can add the following instructions/rules to your client's configuration. We recommend customizing these instructions to align with your team's specific coding standards, best practices, and workflow requirements:249250### VS Code (GitHub Copilot) Instructions251252Create a `.vscode/copilot-instructions.md` file with the following content:253254```markdown255# CodeLogic MCP Server Instructions256257When modifying existing code methods:258- Use codelogic-method-impact to analyze code changes259- Use codelogic-database-impact for database modifications260- Highlight impact results for the modified methods261262When modifying SQL code or database entities:263- Always use codelogic-database-impact to analyze potential impacts264- Highlight impact results for the modified database entities265266For DevOps and CI/CD integration:267- Use codelogic-docker-agent to generate Docker agent configurations268- Use codelogic-build-info to set up build information sending269- Use codelogic-pipeline-helper to create complete CI/CD pipeline configurations270- Support Jenkins, GitHub Actions, Azure DevOps, and GitLab CI platforms271272To use the CodeLogic tools effectively:273- For code impacts: Ask about specific methods or functions274- For database relationships: Ask about tables, views, or columns275- For DevOps: Ask about CI/CD integration, Docker agents, or build information276- Review the impact results before making changes277- Consider both direct and indirect impacts278```279280### Claude Desktop Instructions281282Create a file `~/.claude/instructions.md` with the following content:283284```markdown285# CodeLogic MCP Server Instructions286287When modifying existing code methods:288- Use codelogic-method-impact to analyze code changes289- Use codelogic-database-impact for database modifications290- Highlight impact results for the modified methods291292When modifying SQL code or database entities:293- Always use codelogic-database-impact to analyze potential impacts294- Highlight impact results for the modified database entities295296For DevOps and CI/CD integration:297- Use codelogic-docker-agent to generate Docker agent configurations298- Use codelogic-build-info to set up build information sending299- Use codelogic-pipeline-helper to create complete CI/CD pipeline configurations300- Support Jenkins, GitHub Actions, Azure DevOps, and GitLab CI platforms301302To use the CodeLogic tools effectively:303- For code impacts: Ask about specific methods or functions304- For database relationships: Ask about tables, views, or columns305- For DevOps: Ask about CI/CD integration, Docker agents, or build information306- Review the impact results before making changes307- Consider both direct and indirect impacts308```309310### Windsurf IDE Rules311312Create or modify the `~/.codeium/windsurf/memories/global_rules.md` markdown file with the following content:313314```markdown315When modifying existing code methods:316- Use codelogic-method-impact to analyze code changes317- Use codelogic-database-impact for database modifications318- Highlight impact results for the modified methods319320When modifying SQL code or database entities:321- Always use codelogic-database-impact to analyze potential impacts322- Highlight impact results for the modified database entities323324For DevOps and CI/CD integration:325- Use codelogic-docker-agent to generate Docker agent configurations326- Use codelogic-build-info to set up build information sending327- Use codelogic-pipeline-helper to create complete CI/CD pipeline configurations328- Support Jenkins, GitHub Actions, Azure DevOps, and GitLab CI platforms329330To use the CodeLogic tools effectively:331- For code impacts: Ask about specific methods or functions332- For database relationships: Ask about tables, views, or columns333- For DevOps: Ask about CI/CD integration, Docker agents, or build information334- Review the impact results before making changes335- Consider both direct and indirect impacts336```337338### Cursor Global Rule339340To configure CodeLogic rules in Cursor:3413421. Open Cursor Settings3432. Navigate to the "Rules" section3443. Add the following content to "User Rules":345346```markdown347# CodeLogic MCP Server Rules348## Codebase349- The CodeLogic MCP Server is for java, javascript, typescript, and C# dotnet codebases350- don't run the tools on python or other non supported codebases351## AI Assistant Behavior352- When modifying existing code methods:353 - Use codelogic-method-impact to analyze code changes354 - Use codelogic-database-impact for database modifications355 - Highlight impact results for the modified methods356- When modifying SQL code or database entities:357 - Always use codelogic-database-impact to analyze potential impacts358 - Highlight impact results for the modified database entities359- To use the CodeLogic tools effectively:360 - For code impacts: Ask about specific methods or functions361 - For database relationships: Ask about tables, views, or columns362 - Review the impact results before making changes363 - Consider both direct and indirect impacts364```365366## Environment Variables367368The following environment variables can be configured to customize the behavior of the server:369370- `CODELOGIC_SERVER_HOST`: The URL of the CodeLogic server.371- `CODELOGIC_USERNAME`: Your CodeLogic username.372- `CODELOGIC_PASSWORD`: Your CodeLogic password.373- `CODELOGIC_WORKSPACE_NAME`: The name of the workspace to use.374- `CODELOGIC_DEBUG_MODE`: Set to `true` to enable debug mode. When enabled, additional debug files such as `timing_log.txt` and `impact_data*.json` will be generated. Defaults to `false`.375376### Example Configuration377378```json379"env": {380 "CODELOGIC_SERVER_HOST": "<url to the server e.g. https://myco.app.codelogic.com>",381 "CODELOGIC_USERNAME": "<my username>",382 "CODELOGIC_PASSWORD": "<my password>",383 "CODELOGIC_WORKSPACE_NAME": "<my workspace>",384 "CODELOGIC_DEBUG_MODE": "true"385}386```387388### Pinning the version389390instead of using the **latest** version of the server, you can pin to a specific version by changing the **args** field to match the version in [pypi](https://pypi.org/project/codelogic-mcp-server/) e.g.391392```json393 "args": [394 "codelogic-mcp-server@0.2.2"395 ],396```397398### Version Compatibility399400This MCP server has the following version compatibility requirements:401402- Version 0.3.1 and below: Compatible with all CodeLogic API versions403- Version 0.4.0 and above: Requires CodeLogic API version 25.10.0 or greater404405If you're upgrading, make sure your CodeLogic server meets the minimum API version requirement.406407## Debug Logging408409When `CODELOGIC_DEBUG_MODE=true`, debug files are written to the system temporary directory:410411- **Windows**: `%TEMP%\codelogic-mcp-server` (typically `C:\Users\{username}\AppData\Local\Temp\codelogic-mcp-server`)412- **macOS**: `/tmp/codelogic-mcp-server` (or `$TMPDIR/codelogic-mcp-server` if set)413- **Linux**: `/tmp/codelogic-mcp-server` (or `$TMPDIR/codelogic-mcp-server` if set)414415**Debug files include**:416- `timing_log.txt` - Performance timing information417- `impact_data_*.json` - Raw impact analysis data for troubleshooting418419**Finding your log directory**:420```python421import tempfile422import os423print("Log directory:", os.path.join(tempfile.gettempdir(), "codelogic-mcp-server"))424```425426## Testing427428### Running Unit Tests429430The project uses unittest for testing. You can run unit tests without any external dependencies:431432```bash433python -m unittest discover -s test -p "unit_*.py"434```435436Unit tests use mock data and don't require a connection to a CodeLogic server.437438### Integration Tests (Optional)439440If you want to run integration tests that connect to a real CodeLogic server:4414421. Copy `test/.env.test.example` to `test/.env.test` and populate with your CodeLogic server details4432. Run the integration tests:444445```bash446python -m unittest discover -s test -p "integration_*.py"447```448449Note: Integration tests require access to a CodeLogic server instance.450451## Validation for Official MCP Registry452453mcp-name: io.github.CodeLogicIncEngineering/codelogic-mcp-server454
Full transparency — inspect the skill content before installing.