Skip to main content
Glama

set_python_path

Configure Python environment paths to ensure project dependencies and modules are correctly recognized during testing and execution.

Instructions

Set it before running tests so the project is correctly recognized

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Implementation Reference

  • The handler function for the 'set_python_path' tool. It sets the PYTHONPATH environment variable to the provided path using os.environ. Registered via @self.mcp.tool() decorator.
    @self.mcp.tool() async def set_python_path(path: str): """ Set it before running tests so the project is correctly recognized """ os.environ["PYTHONPATH"] = path

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielpodrazka/editor-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server