Implement: Examine the apply_cli_overrides method implementation#1386
Open
tross-agent wants to merge 1 commit intogetzep:mainfrom
Open
Implement: Examine the apply_cli_overrides method implementation#1386tross-agent wants to merge 1 commit intogetzep:mainfrom
tross-agent wants to merge 1 commit intogetzep:mainfrom
Conversation
Member
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
Author
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
2 similar comments
Author
|
recheck |
Author
|
recheck |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bug is in the
apply_cli_overridesmethod inmcp_server/src/config/schema.py. The method handles transport, LLM, embedder, database, and graphiti overrides but skipshostandportoverrides. The CLI flags are defined ingraphiti_mcp_server.pybut never applied to theServerConfiginstance. TheServerConfigclass has defaults ofhost='0.0.0.0'andport=8000, which always win because the CLI overrides are missing. The fix is to add host and port overrides in theapply_cli_overridesmethod following the same pattern as the transport override.Tasks Completed:
The changes follow the existing pattern used for other CLI argument overrides and maintain logical grouping of server settings. The host and port CLI arguments were already defined in the argument parser in graphiti_mcp_server.py, so this completes the missing link to make them actually override the configuration.
args.port is not Noneinstead of truthiness check to properly handle port 0 edge case (following the same pattern as temperature override). Verified that:The fix is complete and the server would correctly bind to the host and port specified via CLI arguments.