Skip to content

fix(memory): allow additional properties in entity/relation schemas - #1

Merged
incapdns merged 1 commit into
incapdns:mainfrom
majiayu000:fix/memory-schema-additional-properties
Jan 27, 2026
Merged

incapdns merged 1 commit into
incapdns:mainfrom
majiayu000:fix/memory-schema-additional-properties

Conversation

@incapdns

Copy link
Copy Markdown
Owner

Added .passthrough() to EntitySchema and RelationSchema to allow entities with extra properties to be read without schema validation errors. This fixes the issue where read_graph fails when the stored memory.jsonl contains entities with non-standard properties.

Fixes modelcontextprotocol#3144

Description

Publishing Your Server

Note: We are no longer accepting PRs to add servers to the README. Instead, please publish your server to the MCP Server Registry to make it discoverable to the MCP ecosystem.

To publish your server, follow the quickstart guide. You can browse published servers at https://registry.modelcontextprotocol.io/.

Server Details

  • Server:
  • Changes to:

Motivation and Context

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Protocol Documentation
  • My changes follows MCP security best practices
  • I have updated the server's README accordingly
  • I have tested this with an LLM client
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have documented all environment variables and configuration options

Additional context

Added .passthrough() to EntitySchema and RelationSchema to allow
entities with extra properties to be read without schema validation
errors. This fixes the issue where read_graph fails when the stored
memory.jsonl contains entities with non-standard properties.

Fixes modelcontextprotocol#3144

Signed-off-by: majiayu000 <[email protected]>
@incapdns incapdns self-assigned this Jan 27, 2026
@incapdns
incapdns merged commit f578afd into incapdns:main Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory MCP Schema Validation Error on read_graph for entities with additional properties

2 participants