Skip to content

Commit 3aa8e71

Browse files
committed
feat: include server name in JSON output
1 parent 9b3979f commit 3aa8e71

File tree

1 file changed

+2
-2
lines changed
  • src/datapilot/core/mcp_utils

1 file changed

+2
-2
lines changed

src/datapilot/core/mcp_utils/mcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def create_mcp_proxy():
7575

7676
# Execute with processed parameters
7777
output = asyncio.run(list_tools(command=server_config["command"], args=processed_args, env=processed_env))
78-
click.echo(f"\nServer: {server_name}")
79-
click.echo(json.dumps(output, indent=2))
78+
output_with_name = {"name": server_name, **output}
79+
click.echo(json.dumps(output_with_name, indent=2))
8080

8181

8282
async def list_tools(command: str, args: list[str], env: dict[str, str]):

0 commit comments

Comments
 (0)