8000 `title` Keyword Argument · Issue #985 · modelcontextprotocol/python-sdk · GitHub
[go: up one dir, main page]

Skip to content
8000
title Keyword Argument #985
Open
Open
@sivianil

Description

@sivianil

Initial Checks

Description

I had written a tool to compute the BMI and Fetch Weather (similar to tool call in GitHub). Provided keyword title for each tool call @mcp.tool(title="BMI Calculator"). When I tried to ran the command "mcp dev file.py", encountered an error TypeError: FastMCP.tool() got an unexpected keyword argument 'title'.

Without the title argument, the command works fine, functionality too.

Example Code

@mcp.tool(title="BMI Calculator")

Python & MCP Python SDK

MCP version 1.9.4
Python version 3.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0