Open
Description
Describe the bug
mcp not support integer type
Steps to reproduce the behavior
- install mcpcurl and genai-toolbox
$ go install github.com/googleapis/genai-toolbox@latest
$ go install github.com/github/github-mcp-server/cmd/mcpcurl@latest
- genai-toolbox config
$ echo mysql.yaml
sources:
my-mysql-source:
kind: mysql
host: localhost
port: 3306
database: classicmodels
user: root
password: p@55word
queryTimeout: 30s # Optional: query timeout duration
tools:
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
- reproduce
mcpcurl --stdio-server-cmd 'genai-toolbox --stdio --tools-file ./mysql.yaml' tools search_products_by_max_price --product-line "Ships" --max-price 100
Error: unknown flag: --max-price
Usage:
mcpcurl tools search_products_by_max_price [flags]
Flags:
-h, --help help for search_products_by_max_price
--product-line string productLine
Global 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)