Skip to content

start.sh: MCP installation fails with older uv due to directory shadowing #106

Description

@LinXunFeng

Description

When running ./start.sh from the repository root and choosing to install MCP configuration, installation fails with:

ImportError: cannot import name 'RunTree' from 'langsmith'
(<project>/.venv/lib/python3.14/site-packages/langsmith/__init__.py)

The Showcase UI build completes successfully before this failure.

Environment

  • macOS
  • Python 3.14.5
  • uv 0.5.9
  • Repository commit: 371aa6d

Reproduction

From the repository root:

uv run artemis mcp --help

This reproduces the same import error without modifying IDE configuration.

Verbose uv output shows:

DEBUG Running `python artemis mcp --help`

Cause

In this environment, uv interprets artemis as the local directory instead of invoking the installed console script. This places the package directory on the module search path, allowing artemis/platform to shadow Python's standard-library platform module.

Expected behavior

The MCP command should run successfully from the repository root.

Verified workaround

uv run python -m artemis mcp --help
uv run python -m artemis mcp --install all

Both commands succeed with the same Python environment and dependencies.

Proposed fix

Use uv run python -m artemis for MCP installation and the retry instructions in start.sh, consistent with the script's existing UI launch command.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions