Skip to main content
Glama

AgilePlace MCP Server

by jhigh1594
KWARGS_FIX.md•2.29 kB
# FastMCP **kwargs Fix ## 🚨 Issue Resolved **Error:** `Functions with **kwargs are not supported as tools` **Root Cause:** FastMCP doesn't support functions with `**kwargs` parameters in tool definitions. ## āœ… **What Was Fixed** ### Before (Broken): ```python @mcp.tool() async def update_card(card_id: str, **updates: Any) -> dict: # FastMCP doesn't support **kwargs ``` ### After (Working): ```python @mcp.tool() async def update_card( card_id: str, title: Optional[str] = None, description: Optional[str] = None, priority: Optional[str] = None, size: Optional[int] = None, tags: Optional[list[str]] = None, lane_id: Optional[str] = None, position: Optional[int] = None, ) -> dict: # Build updates dict from provided parameters updates = {} if title is not None: updates["title"] = title # ... etc for all parameters ``` ## šŸŽÆ **How It Works Now** ### Explicit Parameters The `update_card` function now accepts explicit optional parameters: - `title` - New card title - `description` - New card description - `priority` - Priority level (low, normal, high, critical) - `size` - Card size - `tags` - List of tags - `lane_id` - Move to different lane - `position` - Position in lane ### Internal Logic The function builds an `updates` dictionary internally from the provided parameters, then passes it to the underlying `cards.update_card()` function. ## šŸš€ **Usage Examples** ### Update Card Title ```python await update_card(card_id="123", title="New Title") ``` ### Update Multiple Fields ```python await update_card( card_id="123", title="Updated Title", priority="high", tags=["urgent", "bug"] ) ``` ### Move Card ```python await update_card( card_id="123", lane_id="456", position=2 ) ``` ## āœ… **FastMCP Compatibility** This approach: - āœ… Uses explicit parameters (FastMCP compatible) - āœ… Maintains all functionality - āœ… Provides clear parameter documentation - āœ… Allows flexible updates - āœ… No **kwargs issues ## šŸŽ‰ **Result** Your FastMCP Cloud deployment should now work without the **kwargs error! The server will: - āœ… Start successfully - āœ… Register all tools - āœ… Handle card updates properly - āœ… Be ready for Claude Desktop connection

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jhigh1594/agileplace-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server