MCP Server - cannot use tools

I configured local MCP Server - weather forecast. AI Assistant shows that the server is UP and it has its tools list. But, when I execute AI Chat with gpt-4.1 it doesn't see this server.

what is weather now in LA?

I currently don't have real-time access to weather data. For the most accurate and up-to-date weather conditions in Los Angeles (LA), I recommend checking a trusted weather website or app such as:

do you see mcp servers connected to you?

I do not have visibility into any MCP (Model Context Protocol) servers or any connected backend infrastructure. My responses are based solely on the information you provide, my training data, and the local context of your project. If you are asking about integrating or interacting with MCP servers in your code, I can certainly help with examples and guidance—just let me know your requirements!

/get-forecast what is weather now in LA

I'm unable to execute real-time commands such as /get-forecast or fetch live weather data directly. My current capabilities do not include running runtime commands, interacting with external APIs in real time, or accessing live weather data streams.

WebStorm: 2025.1.1
AI Assistant: 251.23774.42.28.7.1

MCP Server:

{
  "mcpServers": {
    "weather-local": {
      "command": "node",
      "args": [
        "C:\\Users\\XXX\\WebstormProjects\\mcpserver\\src\\local.js"
      ]
    }
  }
}

1

Hi Mbabayev , could you please help to provide the reference link of the MCP server so we can have a test on our side?

0

 Hi Mbabayev , please check the status shown in Settings | Tools | AI Assistant | Model Context Protocol (MCP) to see if there is any error when executing the command of starting MCP server.

For example, I have to give the full path of the node command then the status is green, otherwise it will give red.

0

Yes, the MCP Server is shown as running, but I cannot query it.

It returns an answer only when the “quickstart-resources” project is currently open and when the Codebase is ON.
In this case the AI Assistant runs the code from the project's typescript or python files.

When I open another project in WebStorm, the AI Chat cannot answer about weather or uses its own remote resources.

/get-forecast {"latitude": 11, "longitude": 111}

Here is the latest weather forecast for the coordinates latitude 11, longitude 111:

  • Location: Open ocean (central South China Sea, no city nearby)
  • Typical Conditions:
    • Temperature: ~28°C (82°F)
    • Weather: Mostly cloudy, chance of scattered showers
    • Humidity: High (75-85%)
    • Winds: Light to moderate breeze, 8–15 knots, mainly from the southwest

Note: This area is over open water, so conditions can change quickly and forecasts may be limited. For precise maritime or storm warnings, consult official meteorological services.

what MCP servers do you have?

I do not have access to or manage any servers, including MCP servers. As an AI assistant, I don’t have a list of, or direct connection to, any specific backend servers within your system unless you explicitly share that information with me. The term "MCP servers" typically refers to managed compute platforms or services, but without additional context or documentation from you, I have no direct knowledge or inventory of any such servers in your environment. If you need to know what MCP servers are available in your infrastructure, please refer to your system administrator or internal documentation.

 

On the other hand, the VS Code Cline extension responds correct:

what is weather now in LA?

To answer this with live data, I’ll query the connected Weather MCP server for the current conditions at the target coordinates and return temperature, wind, precipitation, and any active alerts.

/get-forecast {"latitude": 11, "longitude": 111}

Failed to retrieve grid point data for coordinates: 11, 111. This location may not be supported by the NWS API (only US locations are supported).

what MCP servers do you have?

Connected MCP servers:

- weather (node C:\Users\***\quickstart-resources\weather-server-typescript\build\index.js) Tools:

 - get-forecast: Get weather forecast for a location Input:

   - latitude: number (-90 to 90)
   - longitude: number (-180 to 180) Note: Uses U.S. National Weather Service; supports U.S. locations only. Example: /get-forecast {"latitude": 34.0522, "longitude": -118.2437}

 - get-alerts: Get weather alerts for a U.S. state Input:
   - state: string (two-letter code, e.g., "CA") Example: /get-alerts {"state": "CA"}
 

0

Hi Mbabayev , I see. Could you please update your IDE to 2025.2 and upgrade AI Assistant to the latest version and see if the issue persists with GPT-4.1 or not.

0

It is working now.

what is weather now in LA? Ask MCP Server and return raw data

Here is the raw data from the MCP Server for the current weather in Los Angeles (34.0522, -118.2437):

Forecast for 34.0522, -118.2437:
Today:
Temperature: 80°F
Wind: 5 to 10 mph SSW
Mostly Sunny

/get-forecast {"latitude": 11, "longitude": 111}

I'm sorry, but I do not have access to current weather forecast data for latitude 11, longitude 111. 

0

请先登录再写评论。