Hi all! I successfully connected the AI Connector ...
# ai-netsuite
d
Hi all! I successfully connected the AI Connector to Claude web. Has anybody managed to connect it to Claude Code?
a
I did. Its the same way.
d
I have an issue with the OAUTH2.0 log in, the browser just won't open. How did you solve that?
a
I did not face that. Browser opened perfectly.
m
Is it analogous to using the MCP tools directly from an IDE such as Cursor, or does it have other benefits when used from the CLI instead?
d
I used CLI
a
@Dmitry Masanov Sorry, I mis-understood Claude Code with Claude Desktop.
👍 1
d
I think I managed to solve it by writing my own MCP proxy. Not very convenient, but working. I want to use Claude Code because it has sub-agents, so the context is clearer
👍 1
m
@Dmitry Masanov I was able to connect and interact with both the NS Sample and Standard MCP Tools SuiteApp from Claude Code without any issues. Attaching a sample screenshot for your reference.
d
So did the browser open for OAUTH 2.0?
m
I simply added the mcp server using the sample command below
Copy code
claude mcp add --transport http secure-api <https://api.example.com/mcp> \
  --header "Authorization: Bearer your-token"
d
Oh, nice. Will try. What should be the token?
m
If you follow our guide, you can easily generate an access token using Postman: A Setup Guide for NetSuite AI Connector with Postman: API Integration Tutorial
🔥 1
d
Looks good! But does it require to get a new access code every hour?
m
As per the official docs, Yes!
👍 1
In the integration record, just update both values to their maximums so that you can keep using the refresh token to obtain new access tokens until you hit the max-time limit — at that point you’ll need to run the full auth flow (consent screen) again.
Quick Summary: • Access tokens expire in ~1 hour • Refresh tokens are valid ~2 days by default, and can be configured up to ~30 days • Many integrations observe a ~7 day practical limit for refresh token usage • Example: Authenticate once → get an access token (~1 h) + refresh token → use the refresh token to renew access tokens within its validity → but after the rotation cap you’ll need to re-authenticate via consent again
👍 1
204 Views