diff --git a/minimax_mcp/__init__.py b/minimax_mcp/__init__.py index f9cc663..856fc63 100644 --- a/minimax_mcp/__init__.py +++ b/minimax_mcp/__init__.py @@ -1,3 +1,3 @@ """Minimax Coding Plan MCP Server package.""" -__version__ = "0.0.3" +__version__ = "0.1.0" diff --git a/minimax_mcp/server.py b/minimax_mcp/server.py index 6ad39fb..d5cb7a2 100644 --- a/minimax_mcp/server.py +++ b/minimax_mcp/server.py @@ -14,7 +14,7 @@ import os import json from dotenv import load_dotenv -from mcp.server.fastmcp import FastMCP +from fastmcp import FastMCP from mcp.types import TextContent from minimax_mcp.utils import ( process_image_url, @@ -27,14 +27,13 @@ load_dotenv() api_key = os.getenv(ENV_MINIMAX_API_KEY) api_host = os.getenv(ENV_MINIMAX_API_HOST) -fastmcp_log_level = os.getenv(ENV_FASTMCP_LOG_LEVEL) or "WARNING" if not api_key: raise ValueError("MINIMAX_API_KEY environment variable is required") if not api_host: raise ValueError("MINIMAX_API_HOST environment variable is required") -mcp = FastMCP("Minimax",log_level=fastmcp_log_level) +mcp = FastMCP("Minimax") api_client = MinimaxAPIClient(api_key, api_host) @mcp.tool( diff --git a/pyproject.toml b/pyproject.toml index d084b12..358b572 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "minimax-coding-plan-mcp" -version = "0.0.4" +version = "0.1.0" description = "Specialized MiniMax Model Context Protocol (MCP) server designed for coding-plan users" authors = [ { name = "Roy Wu", email = "zhengyu@minimax.chat" }, @@ -22,7 +22,8 @@ keywords = [ ] requires-python = ">=3.10" dependencies = [ - "mcp[cli]>=1.6.0", + "mcp>=1.6.0", + "fastmcp>=3.0", "python-dotenv>=1.0.1", "requests>=2.31.0", ] @@ -34,7 +35,6 @@ minimax-coding-plan-mcp = "minimax_mcp.server:main" dev = [ "pre-commit>=3.6.2", "ruff>=0.3.0", - "fastmcp>=0.4.1", "pytest>=8.0.0", "pytest-cov>=4.1.0", "twine>=6.1.0",