• Resolved yehiax

    (@yehiax)


    I’m trying to test the connection between Claude Desktop and my WordPress setup.
    Here are my environment details:

    • My laptop is running macOS.
    • WordPress is installed using LocalWP.
    • I’m using the latest Pro version of the AI Engine plugin.

    In the terminal, I ran the command:

    node mcp start domain.local

    But I got this error:

    SSE Failed to parse URL from

    When I try to open the endpoint in the browser at /wp-json/mcp/v1/sse/ I get the following response:

    {"code":"rest_forbidden","message":"Sorry, you are not allowed to do that.","data":{"status":401}}

    I also tried the following:

    • Removed the Bearer Token from Dev Tools → left it blank.
    • Enabled the “Public API” option in the plugin settings.

    However, the SSE endpoint is still not accessible. The rest of the plugin seems to be working fine.

    Could you please help me troubleshoot this?

    Thanks in advance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    Can you try to set a Bearer Token? Then type this:

    node mcp start domain.local YOUR_BEARER_TOKEN
    Thread Starter yehiax

    (@yehiax)

    Hello,

    the same, I checked the logs, sites.json contain the url + token, mcp.log empty, mcp-results.log empty, and the error.log

    {"ts":"2025-05-08T21:56:47.631Z","kind":"sse","msg":"Failed to parse URL from yehia.local/wp-json/mcp/v1/sse/","stack":"TypeError: Failed to parse URL from yehia.local/wp-json/mcp/v1/sse/\n    at node:internal/deps/undici/undici:13484:13\n    at async runRelay (/Users/.../.../ai-engine/labs/mcp.js:266:19)","endpoint":"yehia.local/wp-json/mcp/v1/sse/"}
    Thread Starter yehiax

    (@yehiax)

    Hello!

    I got it work using live website not local. if there something i can do more to check why localwp didn’t work, let me know.

    Thank you.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @yehiax,

    I am also using LocalWP. I think the problem might be that you are using domain.local. Try with http://domain.local but also with https://domain.local. If that doesn’t work, make sure your Site URL in your WordPress admin really matches that URL (otherwise, there might be redirects as well).

    Thread Starter yehiax

    (@yehiax)

    hello @tigroumeow

    I changed the domain name from .local to localhost:port, the connectian is working but claude is not.

    looks like there is an issue using my localwp setup

    Thank you.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Did you check the logs of Claude? They are in:

    • macOS: ~/Library/Logs/Claude
    • Windows: %APPDATA%\Claude\logs
    Thread Starter yehiax

    (@yehiax)

    Will try again with localwp and check the logs.

    currently with live website I trying to create a post but i am getting this msg in claude

    "It appears there might be some connectivity issues with the server. Let me try creating the post again:

    In terminal

    ✗ unexpected content-type text/html

    In log file

    [info] [AI Engine] Message from client: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":6,"reason":"Error: MCP error -32001: Request timed out"}}
    Thread Starter yehiax

    (@yehiax)

    Hello,

    I am still can’t get it work with localwp. I switched to use localhost:port instead of site domain.

    ✓ Claude → http://localhost:10024
    connect http://localhost:10024/wp-json/mcp/v1/sse/
    SSE connected ↪ messages http://localhost:10024/wp-json/mcp/v1/messages?session_id=ab6bd2e0bddd44d4ab2d618fb25ff72f

    When I open claude desktop, no tools there and I can’t get any hint from logs

    2025-05-14T14:53:15.089Z [AI Engine] [info] Initializing server…
    2025-05-14T14:53:15.103Z [AI Engine] [info] Server started and connected successfully
    2025-05-14T14:53:15.108Z [AI Engine] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0}
    AI Engine relay started
    2025-05-14T14:53:15.218Z [AI Engine] [info] Message from server: {"jsonrpc":"2.0","id":0,"result":{"protocolVersion":"2024-11-05","capabilities":{},"serverInfo":{"name":"AI Relay","version":"1.5"}}}
    2025-05-14T14:53:15.219Z [AI Engine] [info] Message from client: {"method":"notifications/initialized","jsonrpc":"2.0"}
    2025-05-14T14:53:15.220Z [AI Engine] [info] Message from client: {"method":"tools/list","params":{},"jsonrpc":"2.0","id":1}
    2025-05-14T14:53:15.220Z [AI Engine] [info] Message from client: {"method":"tools/list","params":{},"jsonrpc":"2.0","id":2}
    2025-05-14T14:53:15.220Z [AI Engine] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":3}
    2025-05-14T14:53:20.222Z [AI Engine] [info] Message from client: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":1,"reason":"Error: MCP error -32001: Request timed out"}}
    2025-05-14T14:53:20.223Z [AI Engine] [info] Message from client: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":2,"reason":"Error: MCP error -32001: Request timed out"}}
    2025-05-14T14:53:15.089Z [info] [AI Engine] Initializing server…
    2025-05-14T14:53:15.103Z [info] [AI Engine] Server started and connected successfully
    2025-05-14T14:53:15.108Z [info] [AI Engine] Message from client: {"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0}
    2025-05-14T14:53:15.218Z [info] [AI Engine] Message from server: {"jsonrpc":"2.0","id":0,"result":{"protocolVersion":"2024-11-05","capabilities":{},"serverInfo":{"name":"AI Relay","version":"1.5"}}}
    2025-05-14T14:53:15.219Z [info] [AI Engine] Message from client: {"method":"notifications/initialized","jsonrpc":"2.0"}
    2025-05-14T14:53:15.220Z [info] [AI Engine] Message from client: {"method":"tools/list","params":{},"jsonrpc":"2.0","id":1}
    2025-05-14T14:53:15.220Z [info] [AI Engine] Message from client: {"method":"tools/list","params":{},"jsonrpc":"2.0","id":2}
    2025-05-14T14:53:15.220Z [info] [AI Engine] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":3}
    2025-05-14T14:53:20.222Z [info] [AI Engine] Message from client: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":1,"reason":"Error: MCP error -32001: Request timed out"}}
    2025-05-14T14:53:20.223Z [info] [AI Engine] Message from client: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":2,"reason":"Error: MCP error -32001: Request timed out"}}

    Thanks in advance.

    Plugin Support Val Meow

    (@valwa)

    Hey @yehiax! 👋

    I’m closing this thread since you’re actively communicating with us through PRO support as a PRO user. This forum is reserved for free users. Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘rest_forbidden 401’ is closed to new replies.