Skip to content

phpstorm mcp not working #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
eondcom opened this issue May 28, 2025 · 7 comments
Open

phpstorm mcp not working #50

eondcom opened this issue May 28, 2025 · 7 comments

Comments

@eondcom
Copy link

eondcom commented May 28, 2025

claude desktop install and setting jetbrains

Image

Image

phpstorm > install mcpserver plugins

Image

시작중...

@kevinquillen
Copy link

Same. I have tried several ways, but the error I get in PHPStorm is always: "Element class kotlinx.serialization.json.JsonArray is not a JsonObject". Meanwhile, it works from command line.

@Salomon88
Copy link

Salomon88 commented Jun 3, 2025

@kevinquillen @eondcom I just tried to reproduce this issue, but the MCP plugin works fine in PhpStorm with the Claude agent for me. Can you follow the next steps and report back to me with the results?

  1. Add following settings to claude_desktop_config.json (claude app should be closed now)

{

  "mcp": {
    "servers": {
      "jetbrains": {
        "command": "npx",
        "args": [
          "-y",
          "@jetbrains/mcp-proxy"
        ]
      }
    }
  },
  "mcpServers": {
    "jetbrains": {
      "command": "npx",
      "args": [
        "-y",
        "@jetbrains/mcp-proxy"
      ]
    }
  }
}
  1. If it is possible update PhpStorm to latest stable version
  2. Reinstall plugin and restart PhpStorm
  3. Disable connection in ai assistant settings like on screenshot
Image 5. Start claude app 6. Try to ask smth in claude. For example `Show current file in jetbrains`

If the issue remains, turn on debug logging as explained in the article and please attach them to this issue

@kevinquillen
Copy link

I am trying to add a MCP connection from PHPStorm to Atlassian though - not Claude Desktop. Alternatively, how would I create an MCP server here that points to Atlassian? It just spins and spins and winds up as 'not started'.

@Salomon88
Copy link

@kevinquillen I think I understand your issue. This plugin is required when the IDE acts as a server. In your case, however, the IDE is acting as a client, and you're using a different AI Assistant feature that isn't related to this plugin. Could you send a screenshot of your settings?

@kevinquillen
Copy link

kevinquillen commented Jun 4, 2025

Its similar to the above, except:

{
  "mcpServers": {
    "atlassian": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://mcp.atlassian.com/v1/sse"
      ]
    }
  }

From the CLI, the npx command works. From the MCP section in PHPStorm (or RustRover etc), it fails with the Kotlin error above. This makes the AI Assistant plugin unable to query Jira.

@Salomon88
Copy link

@kevinquillen Please can you attach the full log where error Element class kotlinx.serialization.json.JsonArray is not a JsonObject occurred?
I will file a bug on ai assistant team. Logs you can find in
Image

@Salomon88
Copy link

@eondcom Yours issue is in progress and planned to fix in the next stable release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants