Replies: 1 comment 2 replies
-
Hi @aubhadia Here is an example config for Home Assistant via SSE - note v0.2.7 includes support for setting the headers: import asyncio
from mcp_agent.core.fastagent import FastAgent
fast: FastAgent = FastAgent("Home Assistant Demo")
@fast.agent("hass",servers=["hass","prompts"],instruction="you have control of my house",model="sonnet")
async def main() -> None:
# Use the app's context manager
async with fast.run() as agent:
await agent.interactive()
if __name__ == "__main__":
asyncio.run(main()) mcp:
hass:
transport: sse
url: http://192.168.5.9:8123/mcp_server/sse
headers:
Authorization: "Bearer XXXXXXX" Works well, and easy to add additional servers. Does this help? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
can you please provide an example of How fast Agent can communicate with multiple MCP servers with SSE transport and choose the right tool?
Beta Was this translation helpful? Give feedback.
All reactions