Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mcpcurl not support 'integer' type #687

Open
Labels
bugSomething isn't working
@bitsark

Description

@bitsark

Describe the bug

mcp not support integer type

Steps to reproduce the behavior

  1. install mcpcurl and genai-toolbox
$ go install github.com/googleapis/genai-toolbox@latest$ go install github.com/github/github-mcp-server/cmd/mcpcurl@latest
  1. genai-toolbox config
$ echo mysql.yamlsources:    my-mysql-source:        kind: mysql        host: localhost        port: 3306        database: classicmodels        user: root        password: p@55word        queryTimeout: 30s # Optional: query timeout durationtools:  search_products_by_max_price:    kind: mysql-sql    source: my-mysql-source    statement: |      SELECT * FROM products      WHERE productLine like ?      AND buyPrice <= ?      LIMIT 10    description: |      Use this tool to search products by product line and price.      Example:      {{          "product-line": "Ships",          "max-price": "888",      }}      Example:      {{          "product-line": "%L%",          "max-price": 34,      }}    parameters:      - name: product-line        type: string        description: productLine      - name: max-price        type: integer        description: max price
  1. reproduce
mcpcurl --stdio-server-cmd 'genai-toolbox --stdio --tools-file ./mysql.yaml' tools search_products_by_max_price --product-line "Ships" --max-price 100Error: unknown flag: --max-priceUsage:  mcpcurl tools search_products_by_max_price [flags]Flags:  -h, --help                  help for search_products_by_max_price      --product-line string   productLineGlobal Flags:      --pretty                    Pretty print MCP response (only for JSON or JSONL responses) (default true)      --stdio-server-cmd string   Shell command to invoke MCP server via stdio (required)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp