Skip to content

remove type from loading - #3213

Merged
dsp-ant merged 1 commit into
modelcontextprotocol:mainfrom
SashankMeka1:kg-type-loading-fix
Jan 14, 2026
Merged

remove type from loading#3213
dsp-ant merged 1 commit into
modelcontextprotocol:mainfrom
SashankMeka1:kg-type-loading-fix

Conversation

@SashankMeka1

@SashankMeka1 SashankMeka1 commented Jan 14, 2026

Copy link
Copy Markdown

Description

loadGraph() loads in type because saveGraph saves it as described in 3210

Server Details

  • Server: memory
  • Changes to: index.ts, knowledge-graph.tst.ts

Motivation and Context

Fixed a validation error where search_nodes (and other tools) returned entities/relations with a type field that wasn't in the schema.

How Has This Been Tested?

Added 3 unit tests verifying entities/relations loaded from file

Breaking Changes

None

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

@dsp-ant
dsp-ant self-requested a review January 14, 2026 11:43
@dsp-ant

dsp-ant commented Jan 14, 2026

Copy link
Copy Markdown
Member

Auto code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

@dsp-ant dsp-ant left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

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.

2 participants