get-status
Check your SecureCodeHQ account status, including plan details, usage limits, secrets count, and MCP server version to monitor capacity and verify updates.
Instructions
Get your SecureCodeHQ account status: plan, usage limits, secrets count, and MCP server version. Useful to check remaining capacity and verify the server is up to date.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:593-621 (handler)The get-status tool implementation, which fetches account usage information and server version, formatting it for response.
// Tool: get-status server.tool( 'get-status', 'Get your SecureCodeHQ account status: plan, usage limits, secrets count, and MCP server version. Useful to check remaining capacity and verify the server is up to date.', {}, async () => { try { const client = getClient(); const usage = await client.getUsage(); const secretsLimit = usage.maxSecrets === -1 ? 'unlimited' : `${usage.maxSecrets}`; const accessLimit = usage.maxAccessesPerMonth === -1 ? 'unlimited' : `${usage.maxAccessesPerMonth}`; const lines = [ `MCP Server: v${MCP_VERSION}`, `Plan: ${usage.plan}`, `Secrets: ${usage.secretsCount} / ${secretsLimit}`, `Accesses this month: ${usage.accessesThisMonth} / ${accessLimit}`, ]; if (usage.alerts && usage.alerts.length > 0) { lines.push('', 'Alerts:'); for (const alert of usage.alerts) { lines.push(` ⚠ ${alert.message}`); } } return wrapResponse([{ type: 'text', text: lines.join('\n') }]); } catch (error) { return errorResult(error); } } );