# Debugging Features and Extensions In VSCode: With Cursor editor and MCP Tools debugging as Example

> Note: Before following this blog - Please do check the version of your VS Code or Cursor to check whether you have a newer version or older version or the exact version compared to the version of the VS Code or Cursor that I’m using

VS Code Version that I’m using while writing this blog -

```plaintext
Version: 1.101.2
Commit: 2901c5ac6db8a986a5666c3af51ff804d05af0d4
Date: 2025-06-24T20:27:15.391Z
Electron: 35.5.1
ElectronBuildId: 11727614
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Darwin arm64 24.5.0
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751019232999/19e0ca6d-5c14-47b0-8b74-93cc6f2f52b9.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751019207237/5d2fe1cb-481b-4316-8003-ad27d3520878.png align="center")

This is a generic method but it works for specific things too. For example, I used this method in [Cursor](https://www.cursor.com/) editor to debug MCP issues

> MCP - Model Context Protocol - [https://modelcontextprotocol.io/](https://modelcontextprotocol.io/)

This uses the `Output` feature of VSCode, which is also what Cursor seems to be made of

You can generally use the `Output` feature by multiple ways - keybinding / keyboard shortcuts (depending on your machine and VSCode setup), Menu Bar, Command Palette

In Mac OS, I can do this by using the `Help` menu and searching for `Output` in the Search Bar 🔎🔍, which shows me that `Output` is there under `View` menu. Using Command Palette, I can choose the `View: Toggle Output` feature

> ‼️ ⚠️ ⛔️ ☣️ ☢️ ⚠ Be careful to not choose `View: Clear Output` while the Output panel is open, or else it will clear the output logs

An example is given below

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751017638866/c5c3c08d-faa4-4795-8812-f2ef5790d5f4.png align="center")

The default view will look like this -

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751017672593/f77b2177-a50f-4a15-95ef-d243937dead9.png align="center")

> ‼️ ⚠️ ⛔️ ☣️ ☢️ ⚠ Be careful to not choose `View: Clear Output` while the Output panel is open, or else it will clear the output logs

In the `Output` view, you can see the output (logs) of different things - I **guess** it’s usually features of VS Code or extensions of VS Code, but not for all features and extensions from what I can see. I **guess** this can be due to - either

* Feature not having output (logs)
    
* Feature not working
    
* Feature output (logs) alone not working
    
* Feature not enabled
    
* Extension not having output (logs)
    
* Extension not working
    
* Extension output (logs) alone not working
    
* Extension not enabled
    

Now, let’s look at the output (logs) of something, like `Git`

I **guess,** by default, you will see the output of `Tasks` if you haven’t chosen anything previously

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751018110727/1e4b45ee-c4eb-4f81-af49-aeba5605a556.png align="center")

You can see a drop down menu in the `Output` view near the filter input box, which says `Tasks` by default I **guess**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751018281614/24a1d924-6cf1-4cea-86a9-9bc4d61c4a22.png align="center")

> ‼️ ⚠️ ⛔️ ☣️ ☢️ ⚠ Be careful to not click the button shown below while the Output panel is open, or else it will clear the output logs. Unless you want to clear logs, don’t click it
> 
> ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751018219620/62f94de3-f39e-4075-b89d-961e49922c4c.png align="center")

You can choose from the list of things from the drop down

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751018369031/ce895918-2f1a-463c-aba9-8f1b4d97177b.png align="center")

Here’s a zoomed in view to give an example

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751018386637/e9135a74-a2ac-4126-baeb-6d55178be182.png align="center")

You can usually see Language Server Logs of different Languages depending on if the Language Extension has been installed and enabled and if the Language Extension uses a Language Server and also shows the logs of the Language Server

> ℹ️ℹ A Language Server is something that implements the Language Server Protocol - [https://en.wikipedia.org/wiki/Language\_Server\_Protocol](https://en.wikipedia.org/wiki/Language_Server_Protocol)

Let’s click on `Git` to see some sample output and also checkout the output for other things

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751018572455/8e783081-d3f0-4d8f-9553-ae476c2a5764.png align="center")

Other examples:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751018550992/3ca15709-653d-4d80-b7cc-862b0a8c5e41.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751018636723/c5879b26-acd8-453a-aa5f-1007bd0b3b5f.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751018647835/a78ea29e-a419-4840-b3d9-6a3e5677bab3.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751018660118/740a03cc-404f-469a-a23a-477474b6d6e3.png align="center")

Now, for debugging why the MCP client (in my Cursor editor) didn’t work, I used the `Output` tab and also my local terminal

So, this is how my Cursor editor settings looks like

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751018839067/9dc218a5-d1b1-450d-b538-a635be009602.png align="center")

Notice that the chosen thing in the drop down is `MCP Logs`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751018903492/2e2a08e9-a75c-4b69-a8f9-a7c4a6e35058.png align="center")

Other things on the list are -

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751018921391/12dcec20-40c6-4f8e-8ce1-de7ee2c069d4.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751018935587/3d684016-b97e-42b5-96b2-7138376a8a5f.png align="center")

Let me show you how my `mcp.json` looks like. You can see the `mcp.json` file when you click the `New MCP Server` button under `MCP Tools` under `Tools & Integrations`

Before showing more details, I just wanna share my Cursor editor version so that you can double check it before reading further and following it and doing things in your Cursor editor

My Cursor editor version is -

```plaintext
Version: 1.1.6
VSCode Version: 1.96.2
Commit: 5b19bac7a947f54e4caa3eb7e4c5fbf832389850
Date: 2025-06-25T02:14:24.784Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751019030768/5ac613bb-7198-4114-a6e9-311082778574.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751019359945/957c1fde-ca79-430d-b43d-9b3c4d273721.png align="center")

Now, let’s go back to my `mcp.json`

```json
{
  "mcpServers": {
    "prometheus_stage": {
      "url": "https://some-staging-server.com/prometheus/mcp",
      "headers": {
        "Content-Type": "application/json",
        "accessToken": "put-a-valid-token-over-here"
      }
    },
    "prometheus_nightly": {
      "url": "https://some-nightly-server.com/prometheus/mcp",
      "headers": {
       "Content-Type": "application/json",
       "accessToken": "put-a-valid-token-over-here"
      }
    },
    "prometheus_dev": {
      "url": "https://some-dev-server.com/prometheus/mcp",
      "headers": {
        "Content-Type": "application/json",
        "accessToken": "put-a-valid-token-over-here"
      }
    }
  }
}
```

> Note that `some-staging-server.com` , `some-nightly-server.com` , `some-dev-server.com` are all example names (DNS / Domain names). I changed the DNS name in the settings to remove sensitive, confidential and private information. If you literally use any of them (the DNS names) in your MCP tools settings, it may not give the same logs mostly because it doesn’t point to anything - as in - there are no DNS records for it.
> 
> For example, if you literally use `some-staging-server.com` in your MCP tools settings, it will not be able to resolve the name (DNS / Domain name) to anything unless you point it (using DNS records) to something in your machine or in the DNS you use or in the DNS in your network. So, you will get a different error if you literally use `some-staging-server.com` in your MCP tools settings
> 
> It may give the same logs if you use those and/ define those - create DNS records for the domain names.
> 
> As of this writing, `some-staging-server.com` , `some-nightly-server.com` , `some-dev-server.com` are not actual domain names that resolves to anything since they have no DNS records at this point of time

In my case, this `mcp.json` file is present in my home directory under the `.cursor` directory. You can check this out here -

> Note that I blurred the DNS name in the settings to remove sensitive, confidential and private information

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751019649764/cea95fa5-d7d9-4c39-9f06-516bd484ace3.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751019684142/89bfb98c-d10f-48c0-ac9a-2752bf6c4868.png align="center")

Now, I know there’s a problem in my MCP Client since I don’t see a “green” mark in the `MCP Tools` section for the MCP tools I’m using, after configuring. It shows either “yellow” mark - which seems to mean - Loading, or it shows a “red” mark - which seems to mean Failed / Error / Failure

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751019716500/606d53a9-fc04-45e8-9c0d-b5b0ea09d5d3.png align="center")

Now, to debug this, I saw the logs -

```plaintext
2025-06-27 12:11:47.509 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 12:11:47.509 [error] user-prometheus_stage: No server info found
2025-06-27 12:11:47.509 [info] user-prometheus_nightly: Handling CreateClient action
2025-06-27 12:11:47.509 [info] user-prometheus_nightly: Creating streamableHttp transport
2025-06-27 12:11:47.509 [info] user-prometheus_nightly: Connecting to streamableHttp server
2025-06-27 12:11:47.509 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 12:11:47.509 [error] user-prometheus_nightly: No server info found
2025-06-27 12:11:47.509 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 12:11:47.509 [error] user-prometheus_dev: No server info found
2025-06-27 12:11:52.074 [error] user-prometheus_nightly: Client error for command HTTP 401 trying to load well-known OAuth metadata
2025-06-27 12:11:52.075 [info] user-prometheus_nightly: Client closed for command
2025-06-27 12:11:52.076 [error] user-prometheus_nightly: Error connecting to streamableHttp server, falling back to SSE: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 12:11:52.076 [error] user-prometheus_nightly: Error connecting to streamableHttp server, falling back to SSE: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 12:11:52.076 [info] user-prometheus_nightly: Connecting to SSE server
2025-06-27 12:11:55.780 [error] user-prometheus_nightly: Client error for command HTTP 401 trying to load well-known OAuth metadata
2025-06-27 12:11:55.781 [error] user-prometheus_nightly: Error connecting to SSE server after fallback: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 12:11:55.781 [info] user-prometheus_nightly: Client closed for command
2025-06-27 12:11:55.783 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 12:11:55.783 [error] user-prometheus_stage: No server info found
2025-06-27 12:11:55.783 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 12:11:55.783 [error] user-prometheus_stage: No server info found
2025-06-27 12:11:55.796 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 12:11:55.796 [error] user-prometheus_nightly: No server info found
2025-06-27 12:11:55.797 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 12:11:55.797 [error] user-prometheus_nightly: No server info found
2025-06-27 12:11:55.800 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 12:11:55.800 [error] user-prometheus_dev: No server info found
2025-06-27 12:11:55.801 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 12:11:55.801 [error] user-prometheus_dev: No server info found
2025-06-27 12:13:51.869 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 12:13:51.870 [error] user-prometheus_stage: No server info found
2025-06-27 12:13:51.870 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 12:13:51.870 [error] user-prometheus_nightly: No server info found
2025-06-27 12:13:51.871 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 12:13:51.871 [error] user-prometheus_dev: No server info found
2025-06-27 12:13:53.813 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 12:13:53.813 [error] user-prometheus_stage: No server info found
2025-06-27 12:13:53.813 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 12:13:53.813 [error] user-prometheus_nightly: No server info found
2025-06-27 12:13:53.817 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 12:13:53.817 [error] user-prometheus_dev: No server info found
2025-06-27 15:16:11.749 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 15:16:11.749 [error] user-prometheus_stage: No server info found
2025-06-27 15:16:11.751 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 15:16:11.751 [error] user-prometheus_nightly: No server info found
2025-06-27 15:16:11.754 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 15:16:11.754 [error] user-prometheus_dev: No server info found
2025-06-27 15:36:09.516 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 15:36:09.516 [error] user-prometheus_stage: No server info found
2025-06-27 15:36:09.516 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 15:36:09.516 [error] user-prometheus_nightly: No server info found
2025-06-27 15:36:09.517 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 15:36:09.517 [error] user-prometheus_dev: No server info found
2025-06-27 15:36:28.347 [info] user-prometheus_nightly: Handling CreateClient action
2025-06-27 15:36:28.347 [info] user-prometheus_nightly: Creating streamableHttp transport
2025-06-27 15:36:28.347 [info] user-prometheus_nightly: Connecting to streamableHttp server
2025-06-27 15:36:28.359 [info] user-prometheus_nightly: Handling CreateClient action
2025-06-27 15:36:28.359 [info] user-prometheus_nightly: Creating streamableHttp transport
2025-06-27 15:36:28.359 [info] user-prometheus_nightly: Connecting to streamableHttp server
2025-06-27 15:36:32.369 [error] user-prometheus_nightly: Client error for command HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:32.371 [info] user-prometheus_nightly: Client closed for command
2025-06-27 15:36:32.373 [error] user-prometheus_nightly: Error connecting to streamableHttp server, falling back to SSE: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:32.373 [error] user-prometheus_nightly: Error connecting to streamableHttp server, falling back to SSE: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:32.373 [info] user-prometheus_nightly: Connecting to SSE server
2025-06-27 15:36:32.937 [error] user-prometheus_nightly: Client error for command HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:32.938 [info] user-prometheus_nightly: Client closed for command
2025-06-27 15:36:32.938 [error] user-prometheus_nightly: Error connecting to streamableHttp server, falling back to SSE: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:32.938 [error] user-prometheus_nightly: Error connecting to streamableHttp server, falling back to SSE: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:32.938 [info] user-prometheus_nightly: Connecting to SSE server
2025-06-27 15:36:35.205 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 15:36:35.205 [error] user-prometheus_stage: No server info found
2025-06-27 15:36:35.207 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 15:36:35.207 [error] user-prometheus_nightly: No server info found
2025-06-27 15:36:35.209 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 15:36:35.209 [error] user-prometheus_dev: No server info found
2025-06-27 15:36:36.369 [error] user-prometheus_nightly: Client error for command HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:36.369 [error] user-prometheus_nightly: Error connecting to SSE server after fallback: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:36.369 [info] user-prometheus_nightly: Client closed for command
2025-06-27 15:36:36.374 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 15:36:36.374 [error] user-prometheus_stage: No server info found
2025-06-27 15:36:36.374 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 15:36:36.374 [error] user-prometheus_stage: No server info found
2025-06-27 15:36:36.374 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 15:36:36.375 [error] user-prometheus_nightly: No server info found
2025-06-27 15:36:36.375 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 15:36:36.375 [error] user-prometheus_nightly: No server info found
2025-06-27 15:36:36.375 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 15:36:36.375 [error] user-prometheus_dev: No server info found
2025-06-27 15:36:36.377 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 15:36:36.377 [error] user-prometheus_dev: No server info found
2025-06-27 15:36:36.919 [error] user-prometheus_nightly: Client error for command HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:36.919 [error] user-prometheus_nightly: Error connecting to SSE server after fallback: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:36.919 [info] user-prometheus_nightly: Client closed for command
2025-06-27 15:36:36.921 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 15:36:36.921 [error] user-prometheus_stage: No server info found
2025-06-27 15:36:36.922 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 15:36:36.922 [error] user-prometheus_stage: No server info found
2025-06-27 15:36:36.922 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 15:36:36.922 [error] user-prometheus_nightly: No server info found
2025-06-27 15:36:36.923 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 15:36:36.923 [error] user-prometheus_nightly: No server info found
2025-06-27 15:36:36.925 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 15:36:36.926 [error] user-prometheus_dev: No server info found
2025-06-27 15:36:36.926 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 15:36:36.926 [error] user-prometheus_dev: No server info found
2025-06-27 15:36:45.569 [info] user-prometheus_dev: Handling CreateClient action
2025-06-27 15:36:45.569 [info] user-prometheus_dev: Creating streamableHttp transport
2025-06-27 15:36:45.569 [info] user-prometheus_dev: Connecting to streamableHttp server
2025-06-27 15:36:46.247 [error] user-prometheus_dev: Client error for command fetch failed
2025-06-27 15:36:46.247 [info] user-prometheus_dev: Client closed for command
2025-06-27 15:36:46.248 [error] user-prometheus_dev: Error connecting to streamableHttp server, falling back to SSE: fetch failed
2025-06-27 15:36:46.248 [error] user-prometheus_dev: Error connecting to streamableHttp server, falling back to SSE: fetch failed
2025-06-27 15:36:46.248 [info] user-prometheus_dev: Connecting to SSE server
2025-06-27 15:36:46.264 [error] user-prometheus_dev: Client error for command SSE error: TypeError: fetch failed: getaddrinfo ENOTFOUND some-dev-server.com
2025-06-27 15:36:46.264 [error] user-prometheus_dev: Error connecting to SSE server after fallback: SSE error: TypeError: fetch failed: getaddrinfo ENOTFOUND some-dev-server.com
2025-06-27 15:36:46.264 [info] user-prometheus_dev: Client closed for command
2025-06-27 15:36:46.267 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 15:36:46.268 [error] user-prometheus_stage: No server info found
2025-06-27 15:36:46.268 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 15:36:46.268 [error] user-prometheus_nightly: No server info found
2025-06-27 15:36:46.268 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 15:36:46.268 [error] user-prometheus_dev: No server info found
2025-06-27 15:36:46.932 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 15:36:46.932 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 15:36:46.932 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 15:36:50.719 [error] user-prometheus_stage: Client error for command HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:50.720 [info] user-prometheus_stage: Client closed for command
2025-06-27 15:36:50.720 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:50.720 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:50.720 [info] user-prometheus_stage: Connecting to SSE server
2025-06-27 15:36:54.470 [error] user-prometheus_stage: Client error for command HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:54.471 [error] user-prometheus_stage: Error connecting to SSE server after fallback: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 15:36:54.471 [info] user-prometheus_stage: Client closed for command
2025-06-27 15:36:54.476 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 15:36:54.477 [error] user-prometheus_stage: No server info found
2025-06-27 15:36:54.477 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 15:36:54.477 [error] user-prometheus_nightly: No server info found
2025-06-27 15:36:54.480 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 15:36:54.481 [error] user-prometheus_dev: No server info found
2025-06-27 15:39:18.898 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 15:39:18.898 [error] user-prometheus_stage: No server info found
2025-06-27 15:39:18.899 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 15:39:18.899 [error] user-prometheus_nightly: No server info found
2025-06-27 15:39:18.902 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 15:39:18.902 [error] user-prometheus_dev: No server info found
2025-06-27 15:39:24.126 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 15:39:24.127 [error] user-prometheus_stage: No server info found
2025-06-27 15:39:24.127 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 15:39:24.127 [error] user-prometheus_nightly: No server info found
2025-06-27 15:39:24.129 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 15:39:24.129 [error] user-prometheus_dev: No server info found
2025-06-27 15:47:49.588 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 15:47:49.588 [error] user-prometheus_stage: No server info found
2025-06-27 15:47:49.589 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 15:47:49.589 [error] user-prometheus_nightly: No server info found
2025-06-27 15:47:49.590 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 15:47:49.590 [error] user-prometheus_dev: No server info found
2025-06-27 15:47:51.563 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 15:47:51.563 [error] user-prometheus_stage: No server info found
2025-06-27 15:47:51.564 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 15:47:51.564 [error] user-prometheus_nightly: No server info found
2025-06-27 15:47:51.565 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 15:47:51.565 [error] user-prometheus_dev: No server info found
```

> Note that `some-dev-server.com` is an example name (DNS / Domain name). I changed the DNS name in the logs to remove sensitive, confidential and private information. If you literally use `some-dev-server.com` in your MCP tools settings, it will coincidentally give the same logs mostly because it doesn’t point to anything - as in - there are no DNS records defined for it. You may not get the same logs if you use those and/ define those - that is, create DNS records for `some-dev-server.com`
> 
> As of this writing `some-dev-server.com` is not an actual domain name that resolves to anything since it has no DNS records at this point of time

You can see how there are a lot of logs. I can see some 401s, and what not. There’s even a `getaddrinfo` error

Previously, I saw some timeout errors. Then I used `curl` in my terminal noticed the name resolution error and then used `dig` to confirm. For example -

```plaintext
> curl https://some-dev-server.com/prometheus/mcp
curl: (6) Could not resolve host: some-dev-server.com

> dig some-dev-server.com

; <<>> DiG 9.10.6 <<>> some-dev-server.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 39008
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;some-dev-server.com.		IN	A

;; AUTHORITY SECTION:
com.			882	IN	SOA	a.gtld-servers.net. nstld.verisign-grs.com. 1751020243 1800 900 604800 900

;; Query time: 2 msec
;; SERVER: 127.0.2.2#53(127.0.2.2)
;; WHEN: Fri Jun 27 16:01:31 IST 2025
;; MSG SIZE  rcvd: 124
```

Please note that when you use `curl` to debug, you need to use everything that you mention in your `mcp.json` - like the content headers etc which has some important information like any credentials for authentication and authorization. I say this because there can be authentication errors too, which sometimes get bubbled up to the AI Chat in the case of Cursor and it’s MCP Client when using the AI Chat in Cursor. Also, I have also noticed 5xx errors like `502` and also errors like 4xx like `401`.

Also, to make your debugging easier, you can shut the noise (logs) from other MCP tools by disabling them in your Cursor Settings, for example, like this -

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751020628797/be7c9884-0bea-4740-a588-7387bcdd215d.png align="center")

I have enabled `stage` alone and I notice this in my logs

```plaintext
2025-06-27 16:05:01.549 [info] user-prometheus_stage: Handling DeleteClient action
2025-06-27 16:05:04.427 [info] user-prometheus_nightly: Handling DeleteClient action
2025-06-27 16:05:05.545 [info] user-prometheus_dev: Handling DeleteClient action
2025-06-27 16:05:06.396 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 16:05:06.396 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 16:05:06.396 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 16:05:10.163 [error] user-prometheus_stage: Client error for command HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:05:10.164 [info] user-prometheus_stage: Client closed for command
2025-06-27 16:05:10.165 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:05:10.165 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:05:10.165 [info] user-prometheus_stage: Connecting to SSE server
2025-06-27 16:05:13.757 [error] user-prometheus_stage: Client error for command HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:05:13.758 [error] user-prometheus_stage: Error connecting to SSE server after fallback: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:05:13.758 [info] user-prometheus_stage: Client closed for command
2025-06-27 16:05:13.763 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:05:13.763 [error] user-prometheus_stage: No server info found
2025-06-27 16:05:13.764 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:05:13.764 [error] user-prometheus_nightly: No server info found
2025-06-27 16:05:13.774 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:05:13.774 [error] user-prometheus_dev: No server info found
```

Here you can see how there’s a log saying `Handling DeleteClient action` - this is shown by the tool I think, when it gets disabled, so as to say that the client was deleted

And when you enable, it shows `Creating streamableHttp transport` - again, his is shown by the tool I think, when it gets enabled, so as to say that the client was created

You can see how there are 401 errors. So, maybe some access token issue. In my case, it was an access token issue in one of the tools and in another one it was a DNS issue and a routing issue. At times, there were some intermittent connection issues - like, due to some gateway issues from Cloudflare since we use Cloudflare as a gateway / firewall to our services, so, I have seen `502` gateway errors. All of these - I could find it from the logs and also using `curl`

When I fix the access token issue in one of my tools, it looks like this -

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751021935482/f3d13694-709b-4b38-b448-19c9545e3596.png align="center")

Notice the “green” mark - a green filled circle

A closer look by magnifying it by zooming in

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751022220817/c3ce741b-abd1-4141-9b42-4feb1894c76d.png align="center")

If you click on `5 tools enabled` - it will show you the tools. For example, here’s an example for `prometheus_nightly`:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751027704678/9f31bf9e-85f0-4969-aebb-4a9e5e8245b7.png align="center")

Sometimes I can see a “red” mark - a red filled circle, like this -

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751021991576/9d4ff189-2b20-46a2-be1a-39e936101cb4.png align="center")

A closer look by magnifying it by zooming in

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751022051959/5fc23a6b-e5fd-4ab4-8013-b0a0acb81a24.png align="center")

When I look at the logs, it says this -

```plaintext
2025-06-27 16:29:31.973 [error] user-prometheus_stage: Client error for command SSE stream disconnected: TypeError: terminated
```

It just says some error - some `TypeError` and it just says `terminated`. I think some connection termination or something. Also, note the SSE reference - looks like it uses SSE - Server Sent Events. Some references from Wikipedia and MDN (Mozilla Developer Network) Web APIs docs - [https://en.wikipedia.org/wiki/Server-sent\_events](https://en.wikipedia.org/wiki/Server-sent_events) , [https://developer.mozilla.org/en-US/docs/Web/API/Server-sent\_events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events)

Some example logs when I was messing with the network in my machine to disconnect from the private network where our MCP server is running

```plaintext
2025-06-27 16:27:48.893 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 16:27:48.893 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 16:27:48.893 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 16:27:48.921 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:27:48.921 [error] user-prometheus_stage: No server info found
2025-06-27 16:27:48.921 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:27:48.921 [error] user-prometheus_nightly: No server info found
2025-06-27 16:27:48.921 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:27:48.921 [error] user-prometheus_dev: No server info found
2025-06-27 16:27:50.100 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:27:50.100 [error] user-prometheus_stage: No server info found
2025-06-27 16:27:50.106 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:27:50.106 [error] user-prometheus_nightly: No server info found
2025-06-27 16:27:50.106 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:27:50.106 [error] user-prometheus_dev: No server info found
2025-06-27 16:27:52.343 [error] user-prometheus_stage: Client error for command HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:27:52.345 [info] user-prometheus_stage: Client closed for command
2025-06-27 16:27:52.347 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:27:52.347 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:27:52.347 [info] user-prometheus_stage: Connecting to SSE server
2025-06-27 16:27:54.615 [info] user-prometheus_nightly: Handling DeleteClient action
2025-06-27 16:27:55.422 [info] user-prometheus_dev: Handling DeleteClient action
2025-06-27 16:27:55.825 [error] user-prometheus_stage: Client error for command HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:27:55.826 [error] user-prometheus_stage: Error connecting to SSE server after fallback: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:27:55.826 [info] user-prometheus_stage: Client closed for command
2025-06-27 16:27:55.828 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:27:55.828 [error] user-prometheus_stage: No server info found
2025-06-27 16:27:55.828 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:27:55.828 [error] user-prometheus_stage: No server info found
2025-06-27 16:27:55.830 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:27:55.831 [error] user-prometheus_nightly: No server info found
2025-06-27 16:27:55.831 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:27:55.831 [error] user-prometheus_nightly: No server info found
2025-06-27 16:27:55.831 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:27:55.831 [error] user-prometheus_dev: No server info found
2025-06-27 16:27:55.831 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:27:55.831 [error] user-prometheus_dev: No server info found
2025-06-27 16:28:17.872 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:28:17.872 [error] user-prometheus_stage: No server info found
2025-06-27 16:28:17.873 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:28:17.873 [error] user-prometheus_nightly: No server info found
2025-06-27 16:28:17.874 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:28:17.874 [error] user-prometheus_dev: No server info found
2025-06-27 16:28:23.308 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:28:23.308 [error] user-prometheus_stage: No server info found
2025-06-27 16:28:23.309 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:28:23.309 [error] user-prometheus_nightly: No server info found
2025-06-27 16:28:23.311 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:28:23.311 [error] user-prometheus_dev: No server info found
2025-06-27 16:28:26.884 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 16:28:26.884 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 16:28:26.884 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 16:28:26.893 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 16:28:26.893 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 16:28:26.893 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 16:28:30.115 [info] user-prometheus_stage: Successfully connected to streamableHttp server
2025-06-27 16:28:30.115 [info] user-prometheus_stage: Storing streamableHttp client
2025-06-27 16:28:30.117 [info] user-prometheus_stage: Successfully connected to streamableHttp server
2025-06-27 16:28:30.117 [info] user-prometheus_stage: A second client was created while connecting, discarding it.
2025-06-27 16:28:30.129 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:28:30.129 [info] user-prometheus_stage: Listing offerings
2025-06-27 16:28:30.130 [info] user-prometheus_stage: Connected to streamableHttp server, fetching offerings
2025-06-27 16:28:30.130 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:28:30.130 [info] user-prometheus_stage: Listing offerings
2025-06-27 16:28:30.131 [info] user-prometheus_stage: Connected to streamableHttp server, fetching offerings
2025-06-27 16:28:30.132 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:28:30.133 [info] user-prometheus_stage: Listing offerings
2025-06-27 16:28:30.133 [info] user-prometheus_stage: Connected to streamableHttp server, fetching offerings
2025-06-27 16:28:30.133 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:28:30.133 [info] user-prometheus_stage: Listing offerings
2025-06-27 16:28:30.133 [info] user-prometheus_stage: Connected to streamableHttp server, fetching offerings
2025-06-27 16:28:32.543 [info] listOfferings: Found 5 tools
2025-06-27 16:28:32.543 [info] user-prometheus_stage: Found 5 tools
2025-06-27 16:28:32.545 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:28:32.545 [error] user-prometheus_nightly: No server info found
2025-06-27 16:28:32.547 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:28:32.548 [error] user-prometheus_dev: No server info found
2025-06-27 16:28:32.551 [info] listOfferings: Found 5 tools
2025-06-27 16:28:32.551 [info] user-prometheus_stage: Found 5 tools
2025-06-27 16:28:32.553 [info] listOfferings: Found 5 tools
2025-06-27 16:28:32.553 [info] user-prometheus_stage: Found 5 tools
2025-06-27 16:28:32.554 [info] listOfferings: Found 5 tools
2025-06-27 16:28:32.554 [info] user-prometheus_stage: Found 5 tools
2025-06-27 16:28:32.554 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:28:32.554 [error] user-prometheus_nightly: No server info found
2025-06-27 16:28:32.560 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:28:32.560 [error] user-prometheus_nightly: No server info found
2025-06-27 16:28:32.560 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:28:32.560 [error] user-prometheus_nightly: No server info found
2025-06-27 16:28:32.561 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:28:32.561 [error] user-prometheus_dev: No server info found
2025-06-27 16:28:32.561 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:28:32.561 [error] user-prometheus_dev: No server info found
2025-06-27 16:28:32.564 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:28:32.565 [error] user-prometheus_dev: No server info found
2025-06-27 16:29:31.973 [error] user-prometheus_stage: Client error for command SSE stream disconnected: TypeError: terminated
2025-06-27 16:33:22.428 [info] user-prometheus_stage: Handling DeleteClient action
2025-06-27 16:33:22.428 [info] user-prometheus_stage: Cleaning up
2025-06-27 16:33:23.178 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 16:33:23.178 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 16:33:23.178 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 16:33:25.659 [info] user-prometheus_stage: Successfully connected to streamableHttp server
2025-06-27 16:33:25.659 [info] user-prometheus_stage: Storing streamableHttp client
2025-06-27 16:33:25.672 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:33:25.672 [info] user-prometheus_stage: Listing offerings
2025-06-27 16:33:25.672 [info] user-prometheus_stage: Connected to streamableHttp server, fetching offerings
2025-06-27 16:33:27.295 [info] listOfferings: Found 5 tools
2025-06-27 16:33:27.295 [info] user-prometheus_stage: Found 5 tools
2025-06-27 16:33:27.297 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:33:27.297 [error] user-prometheus_nightly: No server info found
2025-06-27 16:33:27.304 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:33:27.305 [error] user-prometheus_dev: No server info found
2025-06-27 16:34:18.011 [info] user-prometheus_stage: Handling DeleteClient action
2025-06-27 16:34:18.012 [info] user-prometheus_stage: Cleaning up
2025-06-27 16:34:18.711 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 16:34:18.712 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 16:34:18.712 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 16:34:28.972 [error] user-prometheus_stage: Client error for command fetch failed
2025-06-27 16:34:28.972 [info] user-prometheus_stage: Client closed for command
2025-06-27 16:34:28.973 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: fetch failed
2025-06-27 16:34:28.973 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: fetch failed
2025-06-27 16:34:28.973 [info] user-prometheus_stage: Connecting to SSE server
2025-06-27 16:34:39.550 [error] user-prometheus_stage: Client error for command SSE error: TypeError: fetch failed: Connect Timeout Error (attempted address: some-staging-server.com:443, timeout: 10000ms)
2025-06-27 16:34:39.551 [error] user-prometheus_stage: Error connecting to SSE server after fallback: SSE error: TypeError: fetch failed: Connect Timeout Error (attempted address: some-staging-server.com:443, timeout: 10000ms)
2025-06-27 16:34:39.551 [info] user-prometheus_stage: Client closed for command
2025-06-27 16:34:39.556 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:34:39.556 [error] user-prometheus_stage: No server info found
2025-06-27 16:34:39.562 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:34:39.562 [error] user-prometheus_nightly: No server info found
2025-06-27 16:34:39.566 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:34:39.566 [error] user-prometheus_dev: No server info found
```

> Note that you may not get the same logs since as of this writing `some-staging-server` is not an actual domain name that resolves to anything since it has no DNS records at this point of time

In some cases, I have noticed new errors too, for example, after fixing the network issues I created, I disabled and enabled the MCP tool, but there was still some error due to some reason. Look at this -

```plaintext
2025-06-27 16:27:48.893 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 16:27:48.893 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 16:27:48.893 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 16:27:48.921 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:27:48.921 [error] user-prometheus_stage: No server info found
2025-06-27 16:27:48.921 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:27:48.921 [error] user-prometheus_nightly: No server info found
2025-06-27 16:27:48.921 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:27:48.921 [error] user-prometheus_dev: No server info found
2025-06-27 16:27:50.100 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:27:50.100 [error] user-prometheus_stage: No server info found
2025-06-27 16:27:50.106 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:27:50.106 [error] user-prometheus_nightly: No server info found
2025-06-27 16:27:50.106 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:27:50.106 [error] user-prometheus_dev: No server info found
2025-06-27 16:27:52.343 [error] user-prometheus_stage: Client error for command HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:27:52.345 [info] user-prometheus_stage: Client closed for command
2025-06-27 16:27:52.347 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:27:52.347 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:27:52.347 [info] user-prometheus_stage: Connecting to SSE server
2025-06-27 16:27:54.615 [info] user-prometheus_nightly: Handling DeleteClient action
2025-06-27 16:27:55.422 [info] user-prometheus_dev: Handling DeleteClient action
2025-06-27 16:27:55.825 [error] user-prometheus_stage: Client error for command HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:27:55.826 [error] user-prometheus_stage: Error connecting to SSE server after fallback: HTTP 401 trying to load well-known OAuth metadata
2025-06-27 16:27:55.826 [info] user-prometheus_stage: Client closed for command
2025-06-27 16:27:55.828 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:27:55.828 [error] user-prometheus_stage: No server info found
2025-06-27 16:27:55.828 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:27:55.828 [error] user-prometheus_stage: No server info found
2025-06-27 16:27:55.830 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:27:55.831 [error] user-prometheus_nightly: No server info found
2025-06-27 16:27:55.831 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:27:55.831 [error] user-prometheus_nightly: No server info found
2025-06-27 16:27:55.831 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:27:55.831 [error] user-prometheus_dev: No server info found
2025-06-27 16:27:55.831 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:27:55.831 [error] user-prometheus_dev: No server info found
2025-06-27 16:28:17.872 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:28:17.872 [error] user-prometheus_stage: No server info found
2025-06-27 16:28:17.873 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:28:17.873 [error] user-prometheus_nightly: No server info found
2025-06-27 16:28:17.874 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:28:17.874 [error] user-prometheus_dev: No server info found
2025-06-27 16:28:23.308 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:28:23.308 [error] user-prometheus_stage: No server info found
2025-06-27 16:28:23.309 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:28:23.309 [error] user-prometheus_nightly: No server info found
2025-06-27 16:28:23.311 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:28:23.311 [error] user-prometheus_dev: No server info found
2025-06-27 16:28:26.884 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 16:28:26.884 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 16:28:26.884 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 16:28:26.893 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 16:28:26.893 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 16:28:26.893 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 16:28:30.115 [info] user-prometheus_stage: Successfully connected to streamableHttp server
2025-06-27 16:28:30.115 [info] user-prometheus_stage: Storing streamableHttp client
2025-06-27 16:28:30.117 [info] user-prometheus_stage: Successfully connected to streamableHttp server
2025-06-27 16:28:30.117 [info] user-prometheus_stage: A second client was created while connecting, discarding it.
2025-06-27 16:28:30.129 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:28:30.129 [info] user-prometheus_stage: Listing offerings
2025-06-27 16:28:30.130 [info] user-prometheus_stage: Connected to streamableHttp server, fetching offerings
2025-06-27 16:28:30.130 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:28:30.130 [info] user-prometheus_stage: Listing offerings
2025-06-27 16:28:30.131 [info] user-prometheus_stage: Connected to streamableHttp server, fetching offerings
2025-06-27 16:28:30.132 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:28:30.133 [info] user-prometheus_stage: Listing offerings
2025-06-27 16:28:30.133 [info] user-prometheus_stage: Connected to streamableHttp server, fetching offerings
2025-06-27 16:28:30.133 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:28:30.133 [info] user-prometheus_stage: Listing offerings
2025-06-27 16:28:30.133 [info] user-prometheus_stage: Connected to streamableHttp server, fetching offerings
2025-06-27 16:28:32.543 [info] listOfferings: Found 5 tools
2025-06-27 16:28:32.543 [info] user-prometheus_stage: Found 5 tools
2025-06-27 16:28:32.545 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:28:32.545 [error] user-prometheus_nightly: No server info found
2025-06-27 16:28:32.547 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:28:32.548 [error] user-prometheus_dev: No server info found
2025-06-27 16:28:32.551 [info] listOfferings: Found 5 tools
2025-06-27 16:28:32.551 [info] user-prometheus_stage: Found 5 tools
2025-06-27 16:28:32.553 [info] listOfferings: Found 5 tools
2025-06-27 16:28:32.553 [info] user-prometheus_stage: Found 5 tools
2025-06-27 16:28:32.554 [info] listOfferings: Found 5 tools
2025-06-27 16:28:32.554 [info] user-prometheus_stage: Found 5 tools
2025-06-27 16:28:32.554 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:28:32.554 [error] user-prometheus_nightly: No server info found
2025-06-27 16:28:32.560 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:28:32.560 [error] user-prometheus_nightly: No server info found
2025-06-27 16:28:32.560 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:28:32.560 [error] user-prometheus_nightly: No server info found
2025-06-27 16:28:32.561 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:28:32.561 [error] user-prometheus_dev: No server info found
2025-06-27 16:28:32.561 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:28:32.561 [error] user-prometheus_dev: No server info found
2025-06-27 16:28:32.564 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:28:32.565 [error] user-prometheus_dev: No server info found
2025-06-27 16:29:31.973 [error] user-prometheus_stage: Client error for command SSE stream disconnected: TypeError: terminated
2025-06-27 16:33:22.428 [info] user-prometheus_stage: Handling DeleteClient action
2025-06-27 16:33:22.428 [info] user-prometheus_stage: Cleaning up
2025-06-27 16:33:23.178 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 16:33:23.178 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 16:33:23.178 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 16:33:25.659 [info] user-prometheus_stage: Successfully connected to streamableHttp server
2025-06-27 16:33:25.659 [info] user-prometheus_stage: Storing streamableHttp client
2025-06-27 16:33:25.672 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:33:25.672 [info] user-prometheus_stage: Listing offerings
2025-06-27 16:33:25.672 [info] user-prometheus_stage: Connected to streamableHttp server, fetching offerings
2025-06-27 16:33:27.295 [info] listOfferings: Found 5 tools
2025-06-27 16:33:27.295 [info] user-prometheus_stage: Found 5 tools
2025-06-27 16:33:27.297 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:33:27.297 [error] user-prometheus_nightly: No server info found
2025-06-27 16:33:27.304 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:33:27.305 [error] user-prometheus_dev: No server info found
2025-06-27 16:34:18.011 [info] user-prometheus_stage: Handling DeleteClient action
2025-06-27 16:34:18.012 [info] user-prometheus_stage: Cleaning up
2025-06-27 16:34:18.711 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 16:34:18.712 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 16:34:18.712 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 16:34:28.972 [error] user-prometheus_stage: Client error for command fetch failed
2025-06-27 16:34:28.972 [info] user-prometheus_stage: Client closed for command
2025-06-27 16:34:28.973 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: fetch failed
2025-06-27 16:34:28.973 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: fetch failed
2025-06-27 16:34:28.973 [info] user-prometheus_stage: Connecting to SSE server
2025-06-27 16:34:39.550 [error] user-prometheus_stage: Client error for command SSE error: TypeError: fetch failed: Connect Timeout Error (attempted address: some-staging-server.com, timeout: 10000ms)
2025-06-27 16:34:39.551 [error] user-prometheus_stage: Error connecting to SSE server after fallback: SSE error: TypeError: fetch failed: Connect Timeout Error (attempted address: some-staging-server.com, timeout: 10000ms)
2025-06-27 16:34:39.551 [info] user-prometheus_stage: Client closed for command
2025-06-27 16:34:39.556 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:34:39.556 [error] user-prometheus_stage: No server info found
2025-06-27 16:34:39.562 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:34:39.562 [error] user-prometheus_nightly: No server info found
2025-06-27 16:34:39.566 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:34:39.566 [error] user-prometheus_dev: No server info found
2025-06-27 16:35:42.035 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:35:42.035 [error] user-prometheus_stage: No server info found
2025-06-27 16:35:42.036 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:35:42.036 [error] user-prometheus_nightly: No server info found
2025-06-27 16:35:42.037 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:35:42.037 [error] user-prometheus_dev: No server info found
2025-06-27 16:59:05.015 [info] user-prometheus_stage: Handling DeleteClient action
2025-06-27 16:59:05.618 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 16:59:05.618 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 16:59:05.618 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 16:59:41.350 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 16:59:41.350 [error] user-prometheus_stage: No server info found
2025-06-27 16:59:41.351 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 16:59:41.351 [error] user-prometheus_nightly: No server info found
2025-06-27 16:59:41.352 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 16:59:41.352 [error] user-prometheus_dev: No server info found
2025-06-27 17:00:05.627 [info] user-prometheus_stage: Client closed for command
2025-06-27 17:00:05.627 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: MCP error -32001: Request timed out
2025-06-27 17:00:05.627 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: MCP error -32001: Request timed out
2025-06-27 17:00:05.627 [info] user-prometheus_stage: Connecting to SSE server
2025-06-27 17:00:05.628 [error] user-prometheus_stage: Client error for command This operation was aborted
2025-06-27 17:00:05.637 [error] user-prometheus_stage: Client error for command This operation was aborted
2025-06-27 17:00:05.637 [error] user-prometheus_stage: Client error for command Failed to send cancellation: AbortError: This operation was aborted
2025-06-27 17:00:08.060 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:00:08.060 [error] user-prometheus_stage: No server info found
2025-06-27 17:00:08.060 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:00:08.061 [error] user-prometheus_nightly: No server info found
2025-06-27 17:00:08.061 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:00:08.061 [error] user-prometheus_dev: No server info found
2025-06-27 17:00:08.848 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:00:08.848 [error] user-prometheus_stage: No server info found
2025-06-27 17:00:08.849 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:00:08.849 [error] user-prometheus_nightly: No server info found
2025-06-27 17:00:08.850 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:00:08.850 [error] user-prometheus_dev: No server info found
2025-06-27 17:00:10.176 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:00:10.176 [error] user-prometheus_stage: No server info found
2025-06-27 17:00:10.177 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:00:10.177 [error] user-prometheus_stage: No server info found
2025-06-27 17:00:10.178 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:00:10.178 [error] user-prometheus_stage: No server info found
2025-06-27 17:00:10.178 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:00:10.178 [error] user-prometheus_nightly: No server info found
2025-06-27 17:00:10.179 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:00:10.179 [error] user-prometheus_nightly: No server info found
2025-06-27 17:00:10.179 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:00:10.179 [error] user-prometheus_nightly: No server info found
2025-06-27 17:00:10.180 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:00:10.180 [error] user-prometheus_dev: No server info found
2025-06-27 17:00:10.180 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:00:10.180 [error] user-prometheus_dev: No server info found
2025-06-27 17:00:10.180 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:00:10.180 [error] user-prometheus_dev: No server info found
2025-06-27 17:00:13.676 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:00:13.676 [error] user-prometheus_stage: No server info found
2025-06-27 17:00:13.677 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:00:13.677 [error] user-prometheus_stage: No server info found
2025-06-27 17:00:13.677 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:00:13.677 [error] user-prometheus_nightly: No server info found
2025-06-27 17:00:13.678 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:00:13.678 [error] user-prometheus_nightly: No server info found
2025-06-27 17:00:13.680 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:00:13.680 [error] user-prometheus_dev: No server info found
2025-06-27 17:00:13.681 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:00:13.681 [error] user-prometheus_dev: No server info found
2025-06-27 17:00:16.628 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:00:16.628 [error] user-prometheus_stage: No server info found
2025-06-27 17:00:16.629 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:00:16.629 [error] user-prometheus_nightly: No server info found
2025-06-27 17:00:16.631 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:00:16.631 [error] user-prometheus_dev: No server info found
2025-06-27 17:01:06.431 [error] user-prometheus_stage: Client error for command SSE error: Non-200 status code (504)
2025-06-27 17:01:06.431 [error] user-prometheus_stage: Error connecting to SSE server after fallback: SSE error: Non-200 status code (504)
2025-06-27 17:01:06.432 [info] user-prometheus_stage: Client closed for command
2025-06-27 17:01:06.437 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:01:06.437 [error] user-prometheus_stage: No server info found
2025-06-27 17:01:06.447 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:01:06.447 [error] user-prometheus_nightly: No server info found
2025-06-27 17:01:06.450 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:01:06.450 [error] user-prometheus_dev: No server info found
2025-06-27 17:02:03.770 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:02:03.771 [error] user-prometheus_stage: No server info found
2025-06-27 17:02:03.771 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:02:03.771 [error] user-prometheus_nightly: No server info found
2025-06-27 17:02:03.772 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:02:03.772 [error] user-prometheus_dev: No server info found
2025-06-27 17:02:20.189 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:02:20.190 [error] user-prometheus_stage: No server info found
2025-06-27 17:02:20.191 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:02:20.191 [error] user-prometheus_stage: No server info found
2025-06-27 17:02:20.192 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:02:20.192 [error] user-prometheus_stage: No server info found
2025-06-27 17:02:20.192 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:02:20.192 [error] user-prometheus_nightly: No server info found
2025-06-27 17:02:20.193 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:02:20.193 [error] user-prometheus_nightly: No server info found
2025-06-27 17:02:20.193 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:02:20.193 [error] user-prometheus_nightly: No server info found
2025-06-27 17:02:20.194 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:02:20.194 [error] user-prometheus_dev: No server info found
2025-06-27 17:02:20.195 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:02:20.195 [error] user-prometheus_dev: No server info found
2025-06-27 17:02:20.195 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:02:20.195 [error] user-prometheus_dev: No server info found
2025-06-27 17:02:22.766 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:02:22.766 [error] user-prometheus_stage: No server info found
2025-06-27 17:02:22.767 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:02:22.767 [error] user-prometheus_stage: No server info found
2025-06-27 17:02:22.767 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:02:22.767 [error] user-prometheus_nightly: No server info found
2025-06-27 17:02:22.768 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:02:22.768 [error] user-prometheus_nightly: No server info found
2025-06-27 17:02:22.768 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:02:22.768 [error] user-prometheus_dev: No server info found
2025-06-27 17:02:22.768 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:02:22.768 [error] user-prometheus_dev: No server info found
2025-06-27 17:02:27.308 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:02:27.309 [error] user-prometheus_stage: No server info found
2025-06-27 17:02:27.311 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:02:27.311 [error] user-prometheus_nightly: No server info found
2025-06-27 17:02:27.312 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:02:27.312 [error] user-prometheus_dev: No server info found
2025-06-27 17:04:02.534 [info] user-prometheus_stage: Handling DeleteClient action
2025-06-27 17:04:03.669 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 17:04:03.669 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 17:04:03.669 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 17:04:24.017 [info] user-prometheus_stage: Handling DeleteClient action
2025-06-27 17:04:24.906 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 17:04:24.906 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 17:04:24.906 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 17:04:35.388 [error] user-prometheus_stage: Client error for command fetch failed
2025-06-27 17:04:35.389 [info] user-prometheus_stage: Client closed for command
2025-06-27 17:04:35.389 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: fetch failed
2025-06-27 17:04:35.389 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: fetch failed
2025-06-27 17:04:35.390 [info] user-prometheus_stage: Connecting to SSE server
2025-06-27 17:04:45.946 [error] user-prometheus_stage: Client error for command SSE error: TypeError: fetch failed: Connect Timeout Error (attempted address: some-staging-server.com, timeout: 10000ms)
2025-06-27 17:04:45.947 [error] user-prometheus_stage: Error connecting to SSE server after fallback: SSE error: TypeError: fetch failed: Connect Timeout Error (attempted address: some-staging-server.com, timeout: 10000ms)
2025-06-27 17:04:45.947 [info] user-prometheus_stage: Client closed for command
2025-06-27 17:04:45.951 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:04:45.951 [error] user-prometheus_stage: No server info found
2025-06-27 17:04:45.952 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:04:45.952 [error] user-prometheus_nightly: No server info found
2025-06-27 17:04:45.952 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:04:45.953 [error] user-prometheus_dev: No server info found
2025-06-27 17:04:56.954 [info] user-prometheus_stage: Handling DeleteClient action
2025-06-27 17:04:58.118 [info] user-prometheus_stage: Handling CreateClient action
2025-06-27 17:04:58.118 [info] user-prometheus_stage: Creating streamableHttp transport
2025-06-27 17:04:58.118 [info] user-prometheus_stage: Connecting to streamableHttp server
2025-06-27 17:05:03.678 [info] user-prometheus_stage: Client closed for command
2025-06-27 17:05:03.678 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: MCP error -32001: Request timed out
2025-06-27 17:05:03.679 [error] user-prometheus_stage: Error connecting to streamableHttp server, falling back to SSE: MCP error -32001: Request timed out
2025-06-27 17:05:03.679 [info] user-prometheus_stage: Connecting to SSE server
2025-06-27 17:05:03.679 [error] user-prometheus_stage: Client error for command This operation was aborted
2025-06-27 17:05:03.690 [error] user-prometheus_stage: Client error for command This operation was aborted
2025-06-27 17:05:03.690 [error] user-prometheus_stage: Client error for command Failed to send cancellation: AbortError: This operation was aborted
```

> Note that you may not get the same logs since as of this writing `some-staging-server` is not an actual domain name that resolves to anything since it has no DNS records at this point of time

When things work, the logs show the number of tools that MCP has, for example, something like this -

```plaintext
2025-06-27 17:33:46.638 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:33:46.638 [error] user-prometheus_stage: No server info found
2025-06-27 17:33:46.641 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:33:46.641 [error] user-prometheus_nightly: No server info found
2025-06-27 17:33:46.643 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:33:46.643 [error] user-prometheus_dev: No server info found
2025-06-27 17:33:49.058 [info] user-prometheus_nightly: Handling CreateClient action
2025-06-27 17:33:49.058 [info] user-prometheus_nightly: Creating streamableHttp transport
2025-06-27 17:33:49.058 [info] user-prometheus_nightly: Connecting to streamableHttp server
2025-06-27 17:33:51.960 [info] user-prometheus_nightly: Successfully connected to streamableHttp server
2025-06-27 17:33:51.960 [info] user-prometheus_nightly: Storing streamableHttp client
2025-06-27 17:33:51.973 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:33:51.973 [error] user-prometheus_stage: No server info found
2025-06-27 17:33:51.975 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:33:51.975 [info] user-prometheus_nightly: Listing offerings
2025-06-27 17:33:51.976 [info] user-prometheus_nightly: Connected to streamableHttp server, fetching offerings
2025-06-27 17:33:53.415 [info] listOfferings: Found 5 tools
2025-06-27 17:33:53.416 [info] user-prometheus_nightly: Found 5 tools
2025-06-27 17:33:53.417 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:33:53.417 [error] user-prometheus_dev: No server info found
2025-06-27 17:33:57.333 [error] user-prometheus_stage: Client error for command SSE error: Non-200 status code (504)
2025-06-27 17:33:57.334 [error] user-prometheus_stage: Error connecting to SSE server after fallback: SSE error: Non-200 status code (504)
2025-06-27 17:33:57.334 [info] user-prometheus_stage: Client closed for command
2025-06-27 17:33:57.336 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:33:57.336 [error] user-prometheus_stage: No server info found
2025-06-27 17:33:57.339 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:33:57.339 [info] user-prometheus_nightly: Listing offerings
2025-06-27 17:33:57.339 [info] user-prometheus_nightly: Connected to streamableHttp server, fetching offerings
2025-06-27 17:33:58.533 [info] listOfferings: Found 5 tools
2025-06-27 17:33:58.533 [info] user-prometheus_nightly: Found 5 tools
2025-06-27 17:33:58.535 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:33:58.535 [error] user-prometheus_dev: No server info found
2025-06-27 17:34:41.878 [error] user-prometheus_stage: Client error for command SSE error: Non-200 status code (504)
2025-06-27 17:34:41.878 [error] user-prometheus_stage: Error connecting to SSE server after fallback: SSE error: Non-200 status code (504)
2025-06-27 17:34:41.879 [info] user-prometheus_stage: Client closed for command
2025-06-27 17:34:41.880 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:34:41.881 [error] user-prometheus_stage: No server info found
2025-06-27 17:34:41.882 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:34:41.882 [info] user-prometheus_nightly: Listing offerings
2025-06-27 17:34:41.882 [info] user-prometheus_nightly: Connected to streamableHttp server, fetching offerings
2025-06-27 17:34:43.175 [info] listOfferings: Found 5 tools
2025-06-27 17:34:43.175 [info] user-prometheus_nightly: Found 5 tools
2025-06-27 17:34:43.177 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:34:43.177 [error] user-prometheus_dev: No server info found
2025-06-27 17:34:53.798 [error] user-prometheus_nightly: Client error for command SSE stream disconnected: TypeError: terminated
```

Notice the `Found 5 tools` log. But yeah, later the connection failed I think, but everything still works, as you can see here in the logs -

```plaintext
2025-06-27 17:33:46.638 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:33:46.638 [error] user-prometheus_stage: No server info found
2025-06-27 17:33:46.641 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:33:46.641 [error] user-prometheus_nightly: No server info found
2025-06-27 17:33:46.643 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:33:46.643 [error] user-prometheus_dev: No server info found
2025-06-27 17:33:49.058 [info] user-prometheus_nightly: Handling CreateClient action
2025-06-27 17:33:49.058 [info] user-prometheus_nightly: Creating streamableHttp transport
2025-06-27 17:33:49.058 [info] user-prometheus_nightly: Connecting to streamableHttp server
2025-06-27 17:33:51.960 [info] user-prometheus_nightly: Successfully connected to streamableHttp server
2025-06-27 17:33:51.960 [info] user-prometheus_nightly: Storing streamableHttp client
2025-06-27 17:33:51.973 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:33:51.973 [error] user-prometheus_stage: No server info found
2025-06-27 17:33:51.975 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:33:51.975 [info] user-prometheus_nightly: Listing offerings
2025-06-27 17:33:51.976 [info] user-prometheus_nightly: Connected to streamableHttp server, fetching offerings
2025-06-27 17:33:53.415 [info] listOfferings: Found 5 tools
2025-06-27 17:33:53.416 [info] user-prometheus_nightly: Found 5 tools
2025-06-27 17:33:53.417 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:33:53.417 [error] user-prometheus_dev: No server info found
2025-06-27 17:33:57.333 [error] user-prometheus_stage: Client error for command SSE error: Non-200 status code (504)
2025-06-27 17:33:57.334 [error] user-prometheus_stage: Error connecting to SSE server after fallback: SSE error: Non-200 status code (504)
2025-06-27 17:33:57.334 [info] user-prometheus_stage: Client closed for command
2025-06-27 17:33:57.336 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:33:57.336 [error] user-prometheus_stage: No server info found
2025-06-27 17:33:57.339 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:33:57.339 [info] user-prometheus_nightly: Listing offerings
2025-06-27 17:33:57.339 [info] user-prometheus_nightly: Connected to streamableHttp server, fetching offerings
2025-06-27 17:33:58.533 [info] listOfferings: Found 5 tools
2025-06-27 17:33:58.533 [info] user-prometheus_nightly: Found 5 tools
2025-06-27 17:33:58.535 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:33:58.535 [error] user-prometheus_dev: No server info found
2025-06-27 17:34:41.878 [error] user-prometheus_stage: Client error for command SSE error: Non-200 status code (504)
2025-06-27 17:34:41.878 [error] user-prometheus_stage: Error connecting to SSE server after fallback: SSE error: Non-200 status code (504)
2025-06-27 17:34:41.879 [info] user-prometheus_stage: Client closed for command
2025-06-27 17:34:41.880 [info] user-prometheus_stage: Handling ListOfferings action
2025-06-27 17:34:41.881 [error] user-prometheus_stage: No server info found
2025-06-27 17:34:41.882 [info] user-prometheus_nightly: Handling ListOfferings action
2025-06-27 17:34:41.882 [info] user-prometheus_nightly: Listing offerings
2025-06-27 17:34:41.882 [info] user-prometheus_nightly: Connected to streamableHttp server, fetching offerings
2025-06-27 17:34:43.175 [info] listOfferings: Found 5 tools
2025-06-27 17:34:43.175 [info] user-prometheus_nightly: Found 5 tools
2025-06-27 17:34:43.177 [info] user-prometheus_dev: Handling ListOfferings action
2025-06-27 17:34:43.177 [error] user-prometheus_dev: No server info found
2025-06-27 17:34:53.798 [error] user-prometheus_nightly: Client error for command SSE stream disconnected: TypeError: terminated
2025-06-27 17:36:08.790 [info] user-prometheus_nightly: Handling CallTool action for tool 'execute_query'
2025-06-27 17:36:08.790 [info] user-prometheus_nightly: Calling tool 'execute_query' with toolCallId: toolu_01LKTmjdoV6uRaaDVX5cF624
2025-06-27 17:36:10.133 [info] user-prometheus_nightly: Successfully called tool 'execute_query'
2025-06-27 17:36:25.003 [info] user-prometheus_nightly: Handling CallTool action for tool 'execute_query'
2025-06-27 17:36:25.004 [info] user-prometheus_nightly: Calling tool 'execute_query' with toolCallId: toolu_01A4T9gaGmDQ1iCZhzr4oiZ5
2025-06-27 17:36:26.435 [info] user-prometheus_nightly: Successfully called tool 'execute_query'
```

When it’s green, it shows something like this:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751027704678/9f31bf9e-85f0-4969-aebb-4a9e5e8245b7.png align="center")

Notice how it says the 5 tools are `execute_query`, `execute_range_query`, `list_metrics`, `get_metrics_metadata`, `get_targets`

And also, the AI Chat is also working and is able to use the MCP tool among the MCP tools

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751026112203/7495f14b-de15-4abc-8b29-98c9419f412a.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751026147614/9300b4f9-6f46-42e3-bece-5c7c83121f74.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751026169040/9be4b96b-7d89-432b-8c7a-1a4c9814030e.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751026666723/1e3c4f76-4f95-4ffc-b665-45c78163d18b.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751026946784/8763cbf5-add7-421b-a218-12b0cc2325d9.png align="center")

As we can see, the AI picked up the tool and executed things (based on available tools) in it

Also, note that I’m using Cursor AI, it’s AI Chat box, with Claude-4-sonnet with thinking enabled with MAX Mode enabled

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751027002215/b0ac8c04-1818-4165-aa97-d9a709ef74c5.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751027046854/82647f76-68d9-4dc4-a391-9673bada06b7.png align="center")

I’m also using `mcp.json` as my context. And my query was just simply said as `get number of nodes` . I didn’t even mention the environment etc

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751027070212/699b5f6e-19fb-4b9e-a184-632275b45d92.png align="center")

Also, I’m using Agent mode, not Ask mode or Manual mode

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751027091798/ea64f9bd-dcef-45ac-b495-e2184c33a8ef.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751027118031/0129a235-8ae3-41aa-9c08-cc5a413419de.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751027137823/537ce8eb-cae3-4d29-a29a-3f0fa968a5bd.png align="center")

Note that though in this chat the AI did well, I have noticed in many chats that for the same get node count query, the same thing again and again. In those cases, it kept executing `list_metrics` again and again and thinking the same thing again and again. Maybe some AI backend error (in Claude for example), not sure though
