In order to use the ATXP SDK, you need to create an ATXP account.
1
Create an ATXP account
Visit ATXP Accounts and sign in with your Google account. Your account will receive $5.00 in credits as a welcome bonus.
2
Save your connection details
Copy your connection string and save it in an environment variable. The best way to do this is to create a .env file in the root of your project and add the following line:
Never commit your .env file to version control. It is a good idea to add your .env to your .gitignore file to prevent it from being committed.
echo .env >> .gitignore
3
Use your connection string in the ATXP SDK
You now have your connection string. This connection string is tied to your Google authenticated ATXP account. You can use this connection string to connect to the ATXP SDK.
// Import the ATXP SDKimport { atxpClient, ATXPAccount } from '@atxp/client';// Read the ATXP account details from environment variablesconst atxpConnectionString = process.env.ATXP_CONNECTION;// Create a client using the `atxpClient` functionconst client = await atxpClient({mcpServer: 'https://browse.mcp.atxp.ai/',account: new ATXPAccount(atxpConnectionString),});