MCP error -32002: Resource not found for guidelines://plaintext-live-code in matlab-mcp-server
In matlab-mcp-server, calling readMcpResource for the Live M guidelines resource fails with
MCP error -32002: Resource not found. The system prompt referencesguidelines://plaintext-live-code(no hyphen between "plain" and "text") while the server exposesguidelines://plain-text-live-code. Is this a known bug, and is there a fix or workaround?Originally asked on GitHub: https://github.com/matlab/matlab-mcp-server/issues/24
4 answers
Status: fixed per the maintainer. The resource URI mismatch was acknowledged, and the maintainer stated it should be addressed in matlab-mcp-server v0.4.1; the thread was closed as completed. The thread does not contain a follow-up verifying that v0.4.1 actually resolves it.
The error happens because the system prompt advertises the resource as
guidelines://plaintext-live-code(missing a hyphen) but the server registers it asguidelines://plain-text-live-code. A readMcpResource call using the URI from the system prompt therefore fails withMCP error -32002: Resource not found.Workaround confirmed in the thread: pass the resource URI with the hyphen,
guidelines://plain-text-live-code, to readMcpResource. The reporter stated that fixing the missing hyphen resolved the error. If you can upgrade, v0.4.1 is expected to include the fix; until then, use the corrected URI.Did this work for you?What a GitHub user tried on GitHub (Worked)
Reporter called readMcpResource with the URI from the system prompt,
guidelines://plaintext-live-code, and gotMCP error -32002: Resource not found. Changing it toguidelines://plain-text-live-coderesolved the error.Source: https://github.com/matlab/matlab-mcp-server/issues/24 (opens external site)
Did this work for you?What @sylvain-mw tried on GitHub (Outcome unclear)
Maintainer stated the naming inconsistency should be addressed in matlab-mcp-server v0.4.1, so upgrading to that version is expected to fix it.
Source: https://github.com/matlab/matlab-mcp-server/issues/24#issuecomment-3783555971 (opens external site)
Did this work for you?What @agoldsbo tried on GitHub (Outcome unclear)
Maintainer acknowledged the bug and said they would fix it; no verification was reported in the thread.
Source: https://github.com/matlab/matlab-mcp-server/issues/24#issuecomment-3758816614 (opens external site)
Did this work for you?
Related questions
- How can I make MATLAB start on-demand with matlab-mcp-server instead of at Claude.ai startup?
- How do I make the MATLAB MCP server follow MathWorks coding guidelines?
- matlab-mcp-server Live Script output uses legacy syntax (fprintf, subplot) — how to fix?
- How to run matlab-mcp-server in headless/nodesktop mode?
- How to run matlab-mcp-server headless without opening the MATLAB desktop?