py-poetry

by Tyler-R-Kendrick

233 downloads
Not rated
GitHub

Description

# py-poetry A template that has python configured for vs code with poetry. ## Running the Agent To run the agent, use the following command: ```sh python src/agent.py <path_to_local_git_repo> ``` Replace `<path_to_local_git_repo>` with the path to your local git repository. ##…

About

# py-poetry A template that has python configured for vs code with poetry. ## Running the Agent To run the agent, use the following command: ```sh python src/agent.py <path_to_local_git_repo> ``` Replace `<path_to_local_git_repo>` with the path to your local git repository. ## Using CodeQL with the Generated Docker…

Details

Author
Tyler-R-Kendrick
Downloads
233
Categories
AI

- Python project configured for VS Code with Poetry.
- Includes an agent script for local git repositories.
- Supports CodeQL analysis via generated Docker container.
- Provides Dockerfile and docker-compose.yml files.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name py-poetry
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Run the agent using python src/agent.py <path_to_local_git_repo>. For CodeQL analysis, build the Docker container, then use CodeQL CLI commands against the container's file system.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "py-poetry": {
            "mcp-server-agent": {
                "command": "python",
                "args": [
                    "src/agent.py",
                    "<path_to_local_git_repo>"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-server-agent": {
        "command": "python",
        "args": [
            "src/agent.py",
            "<path_to_local_git_repo>"
        ]
    }
}

py-poetry

A template that has python configured for vs code with poetry.

Running the Agent

To run the agent, use the following command:

python src/agent.py <path_to_local_git_repo>

Replace <path_to_local_git_repo> with the path to your local git repository.

Using CodeQL with the Generated Docker Container

To use CodeQL queries with the generated docker container, follow these steps:

1. Ensure that the codeql-config.yml file is generated in the root directory of the docker container.
2. Build the docker container using the provided Dockerfile and docker-compose.yml files.
3. Run the docker container.
4. Use CodeQL CLI to run queries against the python files in the container.

For example, to run a CodeQL query, use the following command:

codeql database create my-database --language=python --source-root=/workspace
codeql database analyze my-database python-security-extended.qls --format=sarif-latest --output=results.sarif

Replace my-database with the desired name for your CodeQL database.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.