removed description from server
This commit is contained in:
parent
de65ad64ee
commit
a2a28b949c
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "blender-mcp"
|
||||
version = "1.2"
|
||||
version = "1.2.2"
|
||||
description = "Blender integration through the Model Context Protocol"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
|
||||
@ -163,21 +163,10 @@ class BlenderConnection:
|
||||
@asynccontextmanager
|
||||
async def server_lifespan(server: FastMCP) -> AsyncIterator[Dict[str, Any]]:
|
||||
"""Manage server startup and shutdown lifecycle"""
|
||||
# We don't need to create a connection here since we're using the global connection
|
||||
# for resources and tools
|
||||
|
||||
try:
|
||||
# Just log that we're starting up
|
||||
logger.info("BlenderMCP server starting up")
|
||||
|
||||
# Try to connect to Blender on startup to verify it's available
|
||||
try:
|
||||
# This will initialize the global connection if needed
|
||||
blender = get_blender_connection()
|
||||
logger.info("Successfully connected to Blender on startup")
|
||||
except Exception as e:
|
||||
logger.warning(f"Could not connect to Blender on startup: {str(e)}")
|
||||
logger.warning("Make sure the Blender addon is running before using Blender resources or tools")
|
||||
logger.info("Server will connect to Blender when tools are used")
|
||||
|
||||
# Return an empty context - we're using the global connection
|
||||
yield {}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user