Skip to content

Unable to import the MCP server tools #16

@maclean-stu

Description

@maclean-stu

Following the guidance for the orchestrate tools import I get errors. Any guidance appreciated.

orchestrate toolkits import --kind mcp --name DecisionServer --description 'A MCP IBM Decision Server' --package-root /Users/sjm/Demos/decision-mcp-server --command 'uv run decision-mcp-server --url=http://odm:9060/res' requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:4321/v1/toolkits/prepare/list-tools During handling of the above exception, another exception occurred: ibm_watsonx_orchestrate.client.base_api_client.ClientAPIException: ClientAPIException(status_code=500, message={"detail":"Failed to import tools from MCP server: Failed to call runs API: 400 {"error":"api returned status 500: error: Failed to discover managed Python installations\n Caused by: Failed to read Python installation directory: /opt/app-root/src/.local/share/uv/python\n Caused by: failed to read directory /opt/app-root/src/.local/share/uv/python: Permission denied (os error 13)\n + Exception Group Traceback (most recent call last):\n | File \"\u003cstring\u003e\", line 29, in \u003cmodule\u003e\n | File \"/usr/lib64/python3.12/asyncio/runners.py\", line 195, in run\n | return runner.run(main)\n | ^^^^^^^^^^^^^^^^\n | File \"/usr/lib64/python3.12/asyncio/runners.py\", line 118, in run\n | return self._loop.run_until_complete(task)\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n | File \"/usr/lib64/python3.12/asyncio/base_events.py\", line 691, in run_until_complete\n | return future.result()\n | ^^^^^^^^^^^^^^^\n | File \"\u003cstring\u003e\", line 13, in run\n | File \"/usr/lib64/python3.12/contextlib.py\", line 231, in aexit\n | await self.gen.athrow(value)\n | File \"/opt/app-root/lib64/python3.12/site-packages/mcp/client/stdio/init.py\", line 181, in stdio_client\n | anyio.create_task_group() as tg,\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\n | File \"/opt/app-root/lib64/python3.12/site-packages/anyio/_backends/_asyncio.py\", line 772, in aexit\n | raise BaseExceptionGroup(\n | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)\n +-+---------------- 1 ----------------\n | Exception Group Traceback (most recent call last):\n | File \"/opt/app-root/lib64/python3.12/site-packages/mcp/client/stdio/init.py\", line 187, in stdio_client\n | yield read_stream, write_stream\n | File \"\u003cstring\u003e\", line 14, in run\n | File \"/opt/app-root/lib64/python3.12/site-packages/mcp/shared/session.py\", line 218, in aexit\n | return await self._task_group.aexit(exc_type, exc_val, exc_tb)\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n | File \"/opt/app-root/lib64/python3.12/site-packages/anyio/_backends/_asyncio.py\", line 772, in aexit\n | raise BaseExceptionGroup(\n | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)\n +-+---------------- 1 ----------------\n | Traceback (most recent call last):\n | File \"\u003cstring\u003e\", line 15, in run\n | File \"/opt/app-root/lib64/python3.12/site-packages/mcp/client/session.py\", line 151, in initialize\n | result = await self.send_request(\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n | File \"/opt/app-root/lib64/python3.12/site-packages/mcp/shared/session.py\", line 286, in send_request\n | raise McpError(response_or_error.error)\n | mcp.shared.exceptions.McpError: Connection closed\n +------------------------------------\n"}"}) (.venv) sjm@Mac mcp-servers %

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions