You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone, after implementing an agent I want to (1) run it locally as a server, and (2) package it as an image and run it on my server. I prefer the server would be a remote MCP server.
So at each one of the two steps I want to contact the agent with HTTP request, hopefully via postman
Following the tutorials and trying to manipulate some example didn't yield a working solution, the way I see it I have two options, currently trying option (1) as option (2) is a general fallback:
Locally build the server directly with ADK, i.e. similar to how FastMCP is used, only with agents and local run.
Wrapping a runner as a Flask/FastAPI application, where the runner would get a root_agent similar to all example
As mentioned, I'm following the path of (1), in that case I've created an agent tool with agent_tool = AgentTool(root_agent), the current error that I'm getting is: 'NoneType' object has no attribute '_invocation_context'\", but as this flow isn't working smoothly, I'm wondering is path (1) the suggested approach and is there any end-to-end example for such scenario?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, after implementing an agent I want to (1) run it locally as a server, and (2) package it as an image and run it on my server. I prefer the server would be a remote MCP server.
So at each one of the two steps I want to contact the agent with HTTP request, hopefully via postman
Following the tutorials and trying to manipulate some example didn't yield a working solution, the way I see it I have two options, currently trying option (1) as option (2) is a general fallback:
As mentioned, I'm following the path of (1), in that case I've created an agent tool with
agent_tool = AgentTool(root_agent)
, the current error that I'm getting is:'NoneType' object has no attribute '_invocation_context'\"
, but as this flow isn't working smoothly, I'm wondering is path (1) the suggested approach and is there any end-to-end example for such scenario?Beta Was this translation helpful? Give feedback.
All reactions