Creating own MCP server to read Jira workflows

Hello Team,

I am trying to create MCP server of my own so that it can read my Jira workflow and claude then help us by creating confluence documents.

The problem is When I generate the token and try to access workflow API it gives Unauthorized error, I have given my Outh 2,0 integration all necessary scopes my .env file is having all scopes but it just keep on giving unauthorized error, I am not really sure why.

If i access API to read user details like mine it works fine but for workflow i get unauthorized error