|
| 1 | += MCP Server Issues |
| 2 | +:page-deployment-options: cloud-ide, desktop-ide |
| 3 | + |
| 4 | +include::reuse::partial$beta-banner.adoc[tag="anypoint-code-builder"] |
| 5 | + |
| 6 | +When using the MuleSoft MCP Server in Anypoint Code Builder, you might encounter issues that prevent the server from functioning correctly. Follow these troubleshooting steps to diagnose and resolve common MCP server problems. |
| 7 | + |
| 8 | +[[verify-mcp-server]] |
| 9 | +== Verify the MCP Server Is Running |
| 10 | + |
| 11 | +If MuleSoft Vibes isn't responding to commands or tools aren't available, verify that the MuleSoft MCP Server is running: |
| 12 | + |
| 13 | +. Open the MuleSoft Vibes panel in Anypoint Code Builder. |
| 14 | +. Click *Manage MCP Servers*. |
| 15 | +. Click image:anypoint-code-builder::icon-gear.png["",18,18] (Settings) to open the MCP Server settings. |
| 16 | +. In the *Installed* tab, verify that the MuleSoft MCP Server is enabled (toggled on and marked in green). |
| 17 | ++ |
| 18 | +If the server is disabled, toggle it on to enable it. |
| 19 | ++ |
| 20 | +image:mcp-server-settings.png["The MCP server panel showing the Settings icon and the Enable toggle.",30%,30%] |
| 21 | + |
| 22 | +[[check-mcp-logs]] |
| 23 | +== Check MCP Server Logs |
| 24 | + |
| 25 | +When the MCP server isn't working as expected, check the logs to identify the cause: |
| 26 | + |
| 27 | +//step to open output panel: |
| 28 | +include::partial$acb-reusable-steps.adoc[tags="open-output-panel"] |
| 29 | +. From the dropdown list in the Output panel, select *Anypoint Code Builder - MCP Server*. |
| 30 | ++ |
| 31 | +image:mcp-server-output-dropdown.png["The outputs panel showing the MCP Server selected in the dropdown menu."] |
| 32 | + |
| 33 | +. Review the logged information for errors or warnings. |
| 34 | ++ |
| 35 | +The logs provide details about server operations, tool executions, and any errors that occur. |
| 36 | + |
| 37 | +You can also check the *Tasks* section in the Output panel for additional errors or warnings related to MCP server operations. |
| 38 | + |
| 39 | +[[restart-mcp-server]] |
| 40 | +== Restart the MCP Server |
| 41 | + |
| 42 | +If the MCP server stops responding or behaves unexpectedly, restart it: |
| 43 | + |
| 44 | +. Open the MuleSoft Vibes panel in Anypoint Code Builder. |
| 45 | +. Click *Manage MCP Servers*. |
| 46 | +. Click image:anypoint-code-builder::icon-gear.png["",18,18] (Settings) to open the MCP Server settings. |
| 47 | +. In the *Installed* tab, locate the MuleSoft MCP Server. |
| 48 | +. Click image:anypoint-code-builder::icon-restart-mcp-server.png["",18,18] (Restart Server). |
| 49 | ++ |
| 50 | +When the server restarts successfully, you see a confirmation message in the Output panel. |
| 51 | + |
| 52 | +If restarting doesn't resolve the issue, try disabling and then re-enabling the server. |
| 53 | + |
| 54 | +[[validate-mcp-server]] |
| 55 | +== Validate MCP Server Configuration |
| 56 | + |
| 57 | +You can validate whether the MCP server is running correctly by using third-party tools: |
| 58 | + |
| 59 | +. In the MCP Server settings, select *Configure MCP Servers* to view the server configuration. |
| 60 | +. Use an API client like Postman to send test requests to the MCP server endpoint. |
| 61 | +. Verify that the server responds correctly to your requests. |
| 62 | + |
| 63 | +If the server doesn't respond, check that the configuration in the `a4d_mcp_settings.json` file is correct. |
| 64 | + |
| 65 | +[[mcp-tools-unavailable]] |
| 66 | +== MCP Server Tools Are Unavailable |
| 67 | + |
| 68 | +If MCP server tools aren't appearing or aren't responding: |
| 69 | + |
| 70 | +. Verify that the MuleSoft MCP Server is enabled in the *Installed* tab of the MCP Server settings. |
| 71 | +. Check that the tools are enabled for the server: |
| 72 | ++ |
| 73 | +.. In the *Installed* tab, select the MuleSoft MCP Server to expand its details. |
| 74 | +.. Verify that the required tools are listed and enabled. |
| 75 | +. Restart the MCP server. |
| 76 | +. If the issue persists, check the MCP server logs for errors. |
| 77 | + |
| 78 | +[[mcp-timeout]] |
| 79 | +== MCP Server Request Timeout |
| 80 | + |
| 81 | +If requests to the MCP server are timing out: |
| 82 | + |
| 83 | +. Open the MCP Server settings. |
| 84 | +. In the *Installed* tab, select the MuleSoft MCP Server. |
| 85 | +. Locate the *Request Timeout* setting. |
| 86 | +. Increase the timeout value to allow more time for the server to respond. |
| 87 | + |
| 88 | +For complex operations, a longer timeout might be required. |
| 89 | + |
| 90 | +== See Also |
| 91 | + |
| 92 | +* xref:a4d-mcp-server.adoc[] |
| 93 | +* xref:troubleshooting.adoc[] |
| 94 | +* xref:troubleshoot-generative-ai.adoc[] |
0 commit comments