diff --git a/CHANGELOG.md b/CHANGELOG.md index ee362f6..e98d516 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.1.4] + +### Fixed +- [Issue #8](https://github.com/tadata-org/fastapi_mcp/issues/8): Converted tools unuseable due to wrong passing of arguments. + ## [0.1.3] ### Fixed diff --git a/fastapi_mcp/__init__.py b/fastapi_mcp/__init__.py index 731ba95..7af9dd7 100644 --- a/fastapi_mcp/__init__.py +++ b/fastapi_mcp/__init__.py @@ -4,7 +4,7 @@ Created by Tadata Inc. (https://github.com/tadata-org) """ -__version__ = "0.1.3" +__version__ = "0.1.4" from .server import add_mcp_server, create_mcp_server, mount_mcp_server from .http_tools import create_mcp_tools_from_openapi diff --git a/fastapi_mcp/http_tools.py b/fastapi_mcp/http_tools.py index 05c9da0..3102257 100644 --- a/fastapi_mcp/http_tools.py +++ b/fastapi_mcp/http_tools.py @@ -12,7 +12,7 @@ from fastapi import FastAPI from fastapi.openapi.utils import get_openapi from mcp.server.fastmcp import FastMCP -from pydantic import Field +from pydantic import Field logger = logging.getLogger("fastapi_mcp") @@ -468,7 +468,7 @@ async def http_tool_function(kwargs: Dict[str, Any] = Field(default_factory=dict elif method.lower() == "put": response = await client.put(url, params=query, headers=headers, json=body) elif method.lower() == "delete": - response = await client.delete(url, params=query, headers=headers, json=body) + response = await client.delete(url, params=query, headers=headers) elif method.lower() == "patch": response = await client.patch(url, params=query, headers=headers, json=body) else: diff --git a/pyproject.toml b/pyproject.toml index 418a345..f8636ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "fastapi-mcp" -version = "0.1.3" +version = "0.1.4" description = "Automatic MCP server generator for FastAPI applications - converts FastAPI endpoints to MCP tools for LLM integration" readme = "README.md" requires-python = ">=3.10" diff --git a/setup.py b/setup.py index 87d9fac..62f5ed9 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name="fastapi-mcp", - version="0.1.3", + version="0.1.4", description="Automatic MCP server generator for FastAPI applications - converts FastAPI endpoints to MCP tools for LLM integration", author="Tadata Inc.", author_email="itay@tadata.com", diff --git a/uv.lock b/uv.lock index 6a35701..60e3b0a 100644 --- a/uv.lock +++ b/uv.lock @@ -206,7 +206,7 @@ wheels = [ [[package]] name = "fastapi-mcp" -version = "0.1.3" +version = "0.1.4" source = { editable = "." } dependencies = [ { name = "fastapi" },