py-poetry
Overview
The mcp-server-agent is a template designed for Python development using Visual Studio Code, configured with Poetry for dependency management.
To use the mcp-server-agent, run the agent with the command: python src/agent.py <path_to_local_git_repo>, replacing <path_to_local_git_repo> with the path to your local git repository.
- Python environment configured for VS Code with Poetry. - Integration with CodeQL for security analysis of Python code. - Docker container support for running CodeQL queries.
- Setting up a Python development environment quickly.
- Running security analysis on Python projects using CodeQL.
- Managing project dependencies efficiently with Poetry.
Add to your AI client
Use these steps to connect py-poetry in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-agent-tyler-r-kendrick": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-agent-tyler-r-kendrick"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-agent-tyler-r-kendrick": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-agent-tyler-r-kendrick"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-agent-tyler-r-kendrick": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-agent-tyler-r-kendrick"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-agent-tyler-r-kendrick": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-agent-tyler-r-kendrick"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-agent-tyler-r-kendrick": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-agent-tyler-r-kendrick"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-agent-tyler-r-kendrick": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-agent-tyler-r-kendrick"
]
}
}
}FAQ
What is Poetry?
Poetry is a dependency management tool for Python that allows you to declare, manage, and install dependencies in a consistent manner.
How do I run CodeQL queries?
You can run CodeQL queries by building the Docker container and using the CodeQL CLI commands provided in the documentation.
Is this template suitable for beginners?
Yes! The mcp-server-agent is designed to simplify the setup process for Python development, making it accessible for beginners.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":917,"uuid":"4cc9cccb-9de8-49be-bae2-353c1f74a698","name":"mcp-server-agent","title":"py-poetry","description":null,"avatar_url":"https://avatars.githubusercontent.com/u/145080887?v=4","created_at":"$D2025-01-28T02:18:37.896Z","updated_at":"$D2025-02-23T07:18:50.229Z","status":"created","author_name":"Tyler-R-Kendrick","author_avatar_url":"https://avatars.githubusercontent.com/u/145080887?v=4","tags":"mcp-server-agent,python,codeql","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/Tyler-R-Kendrick/mcp-server-agent","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]