From 2460ae592814abbab9253eebedf87a11e620b102 Mon Sep 17 00:00:00 2001 From: Cristiano Hoshikawa Date: Wed, 21 May 2025 21:13:17 -0300 Subject: [PATCH] adjustments --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1b2b2ff..8027aa3 100644 --- a/README.md +++ b/README.md @@ -396,10 +396,17 @@ prompt = ChatPromptTemplate.from_messages([ * **Execução do servidor MCP local via stdio** ```python -server_params = StdioServerParameters( - command="python", - args=["server_nf_items.py"], -) +# Run the client with the MCP server +async def main(): + async with MultiServerMCPClient( + { + "InvoiceItemResolver": { + "command": "python", + "args": ["server_nf_items.py"], + "transport": "stdio", + }, + } + ) as client: ``` * **Loop principal de interação com o usuário:**