Skip to main content
Glama

set_python_path

Specify the Python path to ensure the project is correctly identified before running tests, enabling accurate file operations and management.

Instructions

Set it before running tests so the project is correctly recognized

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Implementation Reference

  • The handler function decorated with @self.mcp.tool() implements the 'set_python_path' tool. It sets the PYTHONPATH environment variable using the provided path argument.
    @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
  • The @self.mcp.tool() decorator registers the set_python_path function as an MCP tool.
    @self.mcp.tool()

Other Tools

Related Tools

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