Skip to content

Unable to run MCP server (import-error) #71

@chrootlogin

Description

@chrootlogin

I'm unable to run this MCP server. When I try to start this MCP server my IDE complains that it cannot start this MCP server.

$ uvx --from context-portal-mcp conport-mcp --mode stdio --workspace_id [redacted]/Projects/[redacted] --log-file [redacted]/Projects/[redacted]/conport.log --log-level INFO
Traceback (most recent call last):
  File "[redacted]/.cache/uv/archive-v0/ifMZhTD_vq3SYW5eYftbW/lib/python3.14/site-packages/context_portal_mcp/main.py", line 18, in <module>
    from .handlers import mcp_handlers # We will adapt these
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[redacted]/.cache/uv/archive-v0/ifMZhTD_vq3SYW5eYftbW/lib/python3.14/site-packages/context_portal_mcp/handlers/mcp_handlers.py", line 16, in <module>
    from ..core import embedding_service # Added for semantic search
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[redacted]/.cache/uv/archive-v0/ifMZhTD_vq3SYW5eYftbW/lib/python3.14/site-packages/context_portal_mcp/core/embedding_service.py", line 6, in <module>
    from chromadb.utils import embedding_functions # Added for Chroma EmbeddingFunction
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[redacted]/.cache/uv/archive-v0/ifMZhTD_vq3SYW5eYftbW/lib/python3.14/site-packages/chromadb/__init__.py", line 2, in <module>
    import chromadb.config
  File "[redacted]/.cache/uv/archive-v0/ifMZhTD_vq3SYW5eYftbW/lib/python3.14/site-packages/chromadb/config.py", line 1, in <module>
    from pydantic import BaseSettings
  File "[redacted]/.cache/uv/archive-v0/ifMZhTD_vq3SYW5eYftbW/lib/python3.14/site-packages/pydantic/__init__.py", line 437, in __getattr__
    return _getattr_migration(attr_name)
  File "[redacted]/.cache/uv/archive-v0/ifMZhTD_vq3SYW5eYftbW/lib/python3.14/site-packages/pydantic/_migration.py", line 304, in wrapper
    raise PydanticImportError(
    ...<3 lines>...
    )
pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/2.12/migration/#basesettings-has-moved-to-pydantic-settings for more details.

For further information visit https://errors.pydantic.dev/2.12/u/import-error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "[redacted]/.cache/uv/archive-v0/ifMZhTD_vq3SYW5eYftbW/bin/conport-mcp", line 6, in <module>
    from context_portal_mcp.main import cli_entry_point
  File "[redacted]/.cache/uv/archive-v0/ifMZhTD_vq3SYW5eYftbW/lib/python3.14/site-packages/context_portal_mcp/main.py", line 25, in <module>
    from src.context_portal_mcp.handlers import mcp_handlers
ModuleNotFoundError: No module named 'src'

OS: MacOS Tahoe 26.1 (arm64 M4)
UV version: 0.9.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions