You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
server-memory: Output schema has additionalProperties: false but response includes 'type' field #3210
When using the @modelcontextprotocol/server-memory package with the MCP Python client library, the search_nodes tool fails validation when entities exist in the knowledge graph.
Steps to Reproduce
Use @modelcontextprotocol/server-memory via npx
Create an entity: create_entities with {"entities": [{"name": "Test", "entityType": "Person", "observations": ["test obs"]}]}
Search for the entity: search_nodes with {"query": "Test"}
Expected Behavior
The search result should pass validation and return successfully.
Actual Behavior
The MCP Python client throws a validation error:
RuntimeError: Invalid structured content returned by tool search_nodes: Additional properties are not allowed ('type' was unexpected)
The search_nodes tool's output schema declares additionalProperties: false for entity items, but the actual response includes a type: "entity" field that isn't in the schema definition.
Suggested Fix
Either:
Add type to the output schema properties, or
Remove additionalProperties: false from the schema, or
Remove the type field from the response
Environment
@modelcontextprotocol/server-memory via npx (latest)
Activity
SashankMeka1 commentedon Jan 15, 2026
This can be closed