@@ -224,26 +224,27 @@ async def chat_with_agent(self, message: str) -> ChatResponse:
224224 credential = DefaultAzureCredential ()
225225 )
226226
227- # Re-enable MCP tool integration with proper implementation
227+ # Use external MCP server instead of self-hosted
228+ # Using the memory MCP server as a test
228229 mcp_tool = McpTool (
229- server_label = MCP_SERVER_LABEL ,
230- server_url = MCP_SERVER_URL ,
230+ server_label = "memory" ,
231+ server_url = "npx @modelcontextprotocol/server-memory" ,
231232 )
232233
233- # Default instructions for MCP-enabled agent
234+ # Default instructions for external MCP-enabled agent
234235 instructions = """
235- You are a helpful agent that can use MCP tools to assist users .
236- Use the available MCP tools to answer questions and perform tasks ."""
236+ You are a helpful agent that can use memory tools.
237+ Use the available memory tools to remember and recall information ."""
237238
238239 with fresh_client :
239240 # Create agent with MCP tool definitions (exactly like working sample)
240241 agent = fresh_client .create_agent (
241242 model = MODEL_DEPLOYMENT ,
242- name = "my -mcp-agent" ,
243+ name = "memory -mcp-agent" ,
243244 instructions = instructions ,
244245 tools = mcp_tool .definitions ,
245246 )
246- logger .info (f"Created agent with MCP tools, ID: { agent .id } " )
247+ logger .info (f"Created agent with external memory MCP tools, ID: { agent .id } " )
247248 logger .info (f"MCP Server: { mcp_tool .server_label } at { mcp_tool .server_url } " )
248249
249250 # Create thread for communication (exactly like working sample)
0 commit comments