-
Notifications
You must be signed in to change notification settings - Fork 0
Fix URL and envs #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix URL and envs #11
Conversation
@@ -21,13 +21,13 @@ | |||
# Initialize FastMCP server | |||
mcp = FastMCP("mcp-memgraph") | |||
|
|||
MEMGRAPH_URI = "bolt://localhost:7687" | |||
MEMGRAPH_URL = "bolt://localhost:7687" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note for future selves + I guess product feedback.
We have MEMGRAPH_BOLT_PORT env in Memgraph, but there is no MEMGRAPH_BOLT_HOST. Ideally, there would be both, and then URI would be MEMGRAPH_BOLT_HOST:MEMGRAPH_BOLT_PORT
and URL bolt://MEMGRAPH_BOLT_HOST:MEMGRAPH_BOLT_PORT
, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe one small thing to change, but I left some general comments for awareness.
@@ -15,7 +15,7 @@ | |||
@pytest.fixture(scope="module") | |||
def memgraph_connection(): | |||
"""Setup Memgraph connection fixture.""" | |||
uri = os.getenv("MEMGRAPH_URI", "bolt://localhost:7687") | |||
uri = os.getenv("MEMGRAPH_URL", "bolt://localhost:7687") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: update 'uri' variable name as well, to avoid confusion.
Additional comment: @antejavor please check the related issue and if you fixed all I was referring to - example in README for memgraph toolkit. [EDIT] |
Introduce enviroment variables and fix URL