-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor server by merging the initial and hackathon ones #9
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
Conversation
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.
great work
ERROR = "error" | ||
|
||
|
||
class MCPResponse[T](BaseModel): |
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.
It looks good but it feels like it should be provided by FastMCP, I think it would be good to start a discussion on their repo to see if
- they would accept this contribution
- there is another way to achieve the same
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.
From my understanding, there is already some part ongoing and should be available soon (some got merged last week)
|
||
|
||
mcp = FastMCP("Infrahub MCP", lifespan=app_lifespan) | ||
mcp: FastMCP = FastMCP(name="Infrahub MCP Server", version="0.1.0", lifespan=app_lifespan) |
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.
we could read the version dynamically to make sure it's always accurate
src/infrahub_mcp_server/branch.py
Outdated
mcp: FastMCP = FastMCP(name="Infrahub Branches") | ||
|
||
|
||
@mcp.tool(tags=["branches", "create"]) |
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.
I'm curious, what is the impact of having the tags, how are they influencing the LLM ?
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.
Uh oh!
There was an error while loading. Please reload this page.