fastapi_mcp
fastapi_mcp copied to clipboard
Adding instructions to the server
I use fastapi_mcp with PydanticAI and it works great for tools, but is there a way to tell the AI the correlation between functions and give it a worflow/instructions to follow when using this MCP server?
Looking at FastMCP and its documentation it has this:
from fastmcp import FastMCP
# Create a basic server instance
mcp = FastMCP(name="MyAssistantServer")
# You can also add instructions for how to interact with the server
mcp_with_instructions = FastMCP(
name="HelpfulAssistant",
instructions="This server provides data analysis tools. Call get_average() to analyze numerical data."
)
https://gofastmcp.com/servers/fastmcp#creating-a-server
I prefer this library for it's simplicity. Is there an alternative that would allow me to pass instructions to the AI through the MCP?