INNER CODE UNIT · TypeScript
setupServer
gensx-inc/gensx · packages/gensx-cloud-mcp/src/index.ts:190
async function setupServer() {
try {
// Get API key
const apiKey = getApiKey();
const client = new GenSXClient(
org,
projectName,
environmentName,
apiKey,
baseUrl,
);
// Get project info
const project = await client.getProject();
console.error(`Connected to project: ${project.name}`);
console.error(
`Project description: ${project.description ?? "No description"}`,