Skip to content

No support of inputSchema in mcp.tool decorator #772

Open
@fmtsvetkov

Description

@fmtsvetkov

Describe the bug
It's more an inconsistence than a bug but there is no "inputSchema" field in mcp.tool decorator while it's available in Tool

To Reproduce
@mcp.tool(
name="Name",
description=(
"description"
),
inputSchema = {}
)

Expected behavior
Add of mcp tool to mcp server

Current behavior
TypeError: FastMCP.tool() got an unexpected keyword argument 'inputSchema'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions