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
Copy file name to clipboardExpand all lines: docs/tools/mcp-tools.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -794,7 +794,6 @@ When working with MCP and ADK, keep these points in mind:
794
794
795
795
* ADK Tools (BaseTool, FunctionTool, AgentTool, etc.) are Python objects designed for direct use within the ADK's LlmAgent and Runner.
796
796
* MCP Tools are capabilities exposed by an MCP Server according to the protocol's schema. MCPToolset makes these look like ADK tools to an LlmAgent.
797
-
* Langchain/CrewAI Tools are specific implementations within those libraries, often simple functions or classes, lacking the server/protocol structure of MCP. ADK offers wrappers (LangchainTool, CrewaiTool) for some interoperability.
798
797
799
798
***Asynchronous nature:** Both ADK and the MCP Python library are heavily based on the asyncio Python library. Tool implementations and server handlers should generally be async functions.
800
799
@@ -978,9 +977,9 @@ def create_mcp_server():
978
977
def main(port: int = 8080, json_response: bool = False):
979
978
"""Main server function."""
980
979
logging.basicConfig(level=logging.INFO)
981
-
980
+
982
981
app = create_mcp_server()
983
-
982
+
984
983
# Create session manager with stateless mode for scalability
985
984
session_manager = StreamableHTTPSessionManager(
986
985
app=app,
@@ -1051,7 +1050,7 @@ spec:
1051
1050
env:
1052
1051
- name: MCP_SERVER_URL
1053
1052
value: "http://localhost:8081"
1054
-
1053
+
1055
1054
# MCP server sidecar
1056
1055
- name: mcp-server
1057
1056
image: your-mcp-server:latest
@@ -1066,7 +1065,7 @@ spec:
1066
1065
- **Cons:** Process overhead, not suitable for high-scale deployments
0 commit comments