name: Help Wanted
about: Request community help on a specific task or feature
title: '[HELP WANTED] Bug: MCP Server schema validation error with Gemini CLI'
labels: 'help wanted', 'bug'
assignees: ''
What We Need Help With
We need help investigating and fixing a schema validation error that occurs when connecting the Intugle MCP server (intugle-mcp) to the Gemini CLI. The error indicates a mismatch in the expected type for additionalProperties in the tool's output schema.
Background & Context
The Model Context Protocol (MCP) server allows AI agents to interact with Intugle's semantic layer. However, when users try to connect the intugle-mcp server to the Gemini CLI, the connection fails during tool discovery due to a JSON schema validation error.
Current State
When the Gemini CLI attempts to discover tools from the Intugle MCP server, it throws the following error:
Error discovering tools from semantic_model: [
{
"code": "invalid_type",
"expected": "boolean",
"received": "object",
"path": [
"tools",
1,
"outputSchema",
"additionalProperties"
],
"message": "Expected boolean, received object"
}
]
This suggests that for one of the tools (specifically the second one, index 1), the outputSchema defines additionalProperties as an object, but the consumer (Gemini CLI) expects a boolean.
Desired Outcome
The intugle-mcp server should successfully connect to the Gemini CLI without throwing schema validation errors. The tool definitions should generate schemas that are compatible with the strict validation expected by the client.
Scope of Work
Technical Details
Relevant Files/Modules
src/intugle/mcp/ (Likely contains the server implementation and tool definitions)
src/intugle/mcp/server.py (or similar entry point)
Key Concepts/Technologies
- Model Context Protocol (MCP)
- Pydantic: Used for defining data models and generating JSON schemas.
- JSON Schema: Understanding
additionalProperties behavior.
Related Documentation
Steps to Reproduce
- Install the library:
- Start the MCP server:
- Configure the Gemini CLI (or create a
.gemini/settings.json) with the following server configuration:
"mcpServers": {
"semantic_model": {
"httpUrl": "http://localhost:8080/semantic_layer/mcp",
"trust": true
}
}
- Start the Gemini CLI. The error should appear immediately upon initialization.
Suggested Approach
- Inspect the
src/intugle/mcp/ directory to find where tools are defined.
- Look for Pydantic models used as return types for the tools.
- Check if any model config has
extra = 'allow' or similar settings that might generate an object for additionalProperties.
Skills Needed
Getting Started
- Fork the repository
- Set up your development environment (see CONTRIBUTING.md)
- Reproduce the error locally.
- Apply the fix in the Pydantic models or server configuration.
Testing Requirements
Questions & Support
- Ask questions in the comments below
- Join our Discord for real-time help
We appreciate your interest in contributing to Intugle! 🙏
name: Help Wanted
about: Request community help on a specific task or feature
title: '[HELP WANTED] Bug: MCP Server schema validation error with Gemini CLI'
labels: 'help wanted', 'bug'
assignees: ''
What We Need Help With
We need help investigating and fixing a schema validation error that occurs when connecting the Intugle MCP server (
intugle-mcp) to the Gemini CLI. The error indicates a mismatch in the expected type foradditionalPropertiesin the tool's output schema.Background & Context
The Model Context Protocol (MCP) server allows AI agents to interact with Intugle's semantic layer. However, when users try to connect the
intugle-mcpserver to the Gemini CLI, the connection fails during tool discovery due to a JSON schema validation error.Current State
When the Gemini CLI attempts to discover tools from the Intugle MCP server, it throws the following error:
This suggests that for one of the tools (specifically the second one, index 1), the
outputSchemadefinesadditionalPropertiesas an object, but the consumer (Gemini CLI) expects a boolean.Desired Outcome
The
intugle-mcpserver should successfully connect to the Gemini CLI without throwing schema validation errors. The tool definitions should generate schemas that are compatible with the strict validation expected by the client.Scope of Work
additionalPropertiesis handled correctly (likely by setting it toFalseor removing it if not needed, or ensuring the client can handle it).Technical Details
Relevant Files/Modules
src/intugle/mcp/(Likely contains the server implementation and tool definitions)src/intugle/mcp/server.py(or similar entry point)Key Concepts/Technologies
additionalPropertiesbehavior.Related Documentation
Steps to Reproduce
.gemini/settings.json) with the following server configuration:Suggested Approach
src/intugle/mcp/directory to find where tools are defined.extra = 'allow'or similar settings that might generate an object foradditionalProperties.Skills Needed
Getting Started
Testing Requirements
Questions & Support
We appreciate your interest in contributing to Intugle! 🙏