Update mcp_server_main.py
This commit is contained in:
@@ -244,11 +244,8 @@ def create_app(auth=None):
|
|||||||
if auth:
|
if auth:
|
||||||
# Set auth on existing app instead of creating new one
|
# Set auth on existing app instead of creating new one
|
||||||
app.auth = auth
|
app.auth = auth
|
||||||
app.name = "Yargı MCP Server"
|
|
||||||
logger.info("MCP server created with Bearer authentication enabled")
|
logger.info("MCP server created with Bearer authentication enabled")
|
||||||
else:
|
else:
|
||||||
# Update placeholder app name only
|
|
||||||
app.name = "Yargı MCP Server"
|
|
||||||
logger.info("MCP server created with standard capabilities (FastMCP handles tools.listChanged automatically)")
|
logger.info("MCP server created with standard capabilities (FastMCP handles tools.listChanged automatically)")
|
||||||
|
|
||||||
# Add token counting middleware
|
# Add token counting middleware
|
||||||
|
|||||||
Reference in New Issue
Block a user