-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
For openai models remote mcp server is not working.
Getting the following error:
Error code: 400 - {'error': {'message': "Invalid schema for function 'get_me': In context=(), object schema missing properties.", 'type': 'invalid_request_error', 'param': 'tools[13].function.parameters', 'code': 'invalid_function_parameters'}}
previous issue: #376
The error "Invalid schema for function 'get_me'" indicates that the JSON schema provided for the function named 'get_me' does not conform to the expected format. This typically occurs when interacting with APIs, particularly those involving function calling or structured output, like OpenAI's API.
We are using the MCP server like following:
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"transport": "streamable_http",
"headers": {"Authorization": f"Bearer {os.environ.get('GITHUB_PAT', '')}"},
},