Merge branch 'main' into mount

This commit is contained in:
Jeremiah Lowin 2025-04-16 09:38:51 -04:00 committed by GitHub
commit db32622c31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 1 deletions

View file

@ -2,6 +2,7 @@ import abc
import contextlib
import datetime
import os
import shutil
from collections.abc import AsyncIterator
from pathlib import Path
from typing import (
@ -343,6 +344,10 @@ class NpxStdioTransport(StdioTransport):
env_vars: Additional environment variables
use_package_lock: Whether to use package-lock.json (--prefer-offline)
"""
# verify npx is installed
if shutil.which("npx") is None:
raise ValueError("Command 'npx' not found")
# Basic validation
if project_directory and not Path(project_directory).exists():
raise NotADirectoryError(

View file

@ -42,7 +42,7 @@ class ServerSettings(BaseSettings):
log_level: LOG_LEVEL = Field(default_factory=lambda: Settings().log_level)
# HTTP settings
host: str = "0.0.0.0"
host: str = "127.0.0.1"
port: int = 8000
sse_path: str = "/sse"
message_path: str = "/messages/"