Skip to content

Auth issues with Claude Desktop #82

@benneic

Description

@benneic

I am trying to configure Claude Desktop, I have created a Xero "Customer Connection" (and paid the extra money to access my own data).

I've set the env variables to the client id and secret following the instructions in the README.

In the Claude Desktop UI it says No authentication is required for this integration

Image

It appears to connect to the MCP server and can retrieve the list of tools. (It tries to list prompts and gets errors for that)

2025-06-26T04:55:50.094Z [xero] [info] Initializing server... { metadata: undefined }
2025-06-26T04:55:50.125Z [xero] [info] Generated authentication token for server { metadata: undefined }
2025-06-26T04:55:50.138Z [xero] [info] Server started and connected successfully { metadata: undefined }
2025-06-26T04:55:50.140Z [xero] [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} { metadata: undefined }
2025-06-26T04:55:50.764Z [xero] [info] Message from server: {"jsonrpc":"2.0","id":0,"result":{"protocolVersion":"2024-11-05","capabilities":{"tools":{}},"serverInfo":{"name":"Xero MCP Server","version":"1.0.0","capabilities":{"tools":{}}}}} { metadata: undefined }
2025-06-26T04:55:50.764Z [xero] [info] Message from client: {"method":"notifications/initialized","jsonrpc":"2.0"} { metadata: undefined }
2025-06-26T04:55:50.766Z [xero] [info] Message from client: {"method":"tools/list","params":{},"jsonrpc":"2.0","id":1} { metadata: undefined }
2025-06-26T04:55:50.766Z [xero] [info] Message from client: {"method":"tools/list","params":{},"jsonrpc":"2.0","id":2} { metadata: undefined }
2025-06-26T04:55:50.766Z [xero] [info] Message from client: {"method":"resources/list","params":{},"jsonrpc":"2.0","id":3} { metadata: undefined }
2025-06-26T04:55:50.768Z [xero] [info] Message from server: {"jsonrpc":"2.0","id":3,"error":{"code":-32601,"message":"Method not found"}} { metadata: undefined }
2025-06-26T04:55:50.768Z [xero] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":4} { metadata: undefined }
2025-06-26T05:11:40.420Z [xero] [info] Message from server: {"jsonrpc":"2.0","id":2,"result":{"tools":[{"name":"delete-timesheet .....

...

2025-06-26T05:11:40.423Z [xero] [info] Message from client: {"method":"prompts/list","params":{},"jsonrpc":"2.0","id":4} { metadata: undefined }
2025-06-26T05:11:40.424Z [xero] [info] Message from server: {"jsonrpc":"2.0","id":4,"error":{"code":-32601,"message":"Method not found"}} { metadata: undefined }

But when Claude calls a tool it errors:

2025-06-26T05:21:29.437Z [xero] [info] Message from client: {"method":"tools/call","params":{"name":"list-organisation-details","arguments":{}},"jsonrpc":"2.0","id":5} { metadata: undefined }
2025-06-26T05:21:29.920Z [xero] [info] Message from server: {"jsonrpc":"2.0","id":5,"result":{"content":[{"type":"text","text":"Error fetching organisation details: Failed to get Xero token: [object Object]"}]}} { metadata: undefined }
2025-06-26T05:21:33.690Z [xero] [info] Message from client: {"method":"tools/call","params":{"name":"list-contacts","arguments":{"page":1}},"jsonrpc":"2.0","id":6} { metadata: undefined }
2025-06-26T05:21:33.963Z [xero] [info] Message from server: {"jsonrpc":"2.0","id":6,"result":{"content":[{"type":"text","text":"Error listing contacts: Failed to get Xero token: [object Object]"}]}} { metadata: undefined }

What have I missed here with this set up?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions