mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 06:24:18 +02:00
Skip load_server() in inspector when --module is active
This commit is contained in:
parent
7a582ff5a0
commit
f14f7783df
1 changed files with 5 additions and 1 deletions
|
|
@ -261,7 +261,11 @@ async def inspector(
|
|||
logger.error("No configuration available")
|
||||
sys.exit(1)
|
||||
assert config is not None # For type checker
|
||||
await config.source.load_server()
|
||||
|
||||
# Skip server-object validation in module mode — the module
|
||||
# manages its own startup and may not expose an importable server.
|
||||
if not module:
|
||||
await config.source.load_server()
|
||||
|
||||
env_vars = {}
|
||||
if ui_port:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue