MCP Server is pointing to 'localhost' URL even though ‘hostname’ URL is configured. The logs show a 401 Unauthorised error.
MCP server is hosted on VM and VS code is in local machine.
User has configured MCP server with the host name and is able to access Imaging URL using hostname from the local. MCP server gets connected with the host name, but when a question or query, is run it errors out. Imaging is trying to access Imaging URL using local host URL instead of hostname that is given during MCP server configuration.
Explanation
The 401 Unauthorised error typically means that the X-API-KEY being used has expired or is no longer valid.
This can be crosschecked with the following Curl command
curl -H "X-API-KEY: <APIKEY>" <HOSTNAME>:8090/imaging/apis/rest/applicationsGenerate a new API Key
NB: The default log path is: \ProgramFiles\CAST\Imaging-MCP-Server\logs
Default installation path is: \ProgramData\CAST\Imaging-MCP-Server\setup-config
Related Articles
CAST IMAGING – V3 – MCP Server – VS CODE - Dynamic client Registration Not Supported
Resources
Getting started with CAST Imaging MCP Server
CAST Imaging v3 Product Documentation
CAST Imaging Troubleshooting Guides
Additional Resources
CAST Highlight Product Documentation
CAST Highlight Troubleshooting Guides
Ticket
55940, 56871
Comments