Skip to content

Conversation

BeArchiTek
Copy link
Contributor

@BeArchiTek BeArchiTek commented Jul 29, 2025

  • Adding logging to client with ctx.xxx
  • Rename the function so the name is "similar" across tools
  • Add tags to tools
  • Change output to use a "standard" structured output (which, in case of error, includes a remediation so LLM can learn from it ...)

@BeArchiTek BeArchiTek changed the title WIP: Merge server_initial to server and refactor it Refactor server by merging the initial and hackathon ones Jul 31, 2025
@BeArchiTek BeArchiTek requested a review from dgarros July 31, 2025 07:55
Copy link
Contributor

@dgarros dgarros left a 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):
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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



mcp = FastMCP("Infrahub MCP", lifespan=app_lifespan)
mcp: FastMCP = FastMCP(name="Infrahub MCP Server", version="0.1.0", lifespan=app_lifespan)
Copy link
Contributor

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

mcp: FastMCP = FastMCP(name="Infrahub Branches")


@mcp.tool(tags=["branches", "create"])
Copy link
Contributor

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 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@BeArchiTek BeArchiTek merged commit 1d62725 into develop Jul 31, 2025
@BeArchiTek BeArchiTek deleted the bkr-refactor-server branch July 31, 2025 14:06
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