iaptic_reset_app
Reverts to the original app credentials from server initialization, restoring default app name and API key for subsequent API calls.
Instructions
Reset to the default Iaptic app.
Reverts to the original app credentials provided during server initialization
All subsequent API calls will use the default app name and API key
Use this after using iaptic_switch_app to return to the default app
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/app.ts:101-108 (handler)Handler for iaptic_reset_app tool: calls this.api.resetToDefaultApp() and returns success message
case 'iaptic_reset_app': this.api.resetToDefaultApp(); return { content: [{ type: "text", text: `Successfully reset to default app` }] }; - src/tools/app.ts:39-49 (schema)Schema registration for iaptic_reset_app: defines the tool name, description, and empty input schema
{ name: "iaptic_reset_app", description: `Reset to the default Iaptic app. - Reverts to the original app credentials provided during server initialization - All subsequent API calls will use the default app name and API key - Use this after using iaptic_switch_app to return to the default app`, inputSchema: { type: "object", properties: {} } }, - src/iaptic-api.ts:154-160 (helper)Helper method resetToDefaultApp() in IapticAPI class: resets apiKey and appName to defaults and reinitializes the HTTP client
// Method to reset to the default app resetToDefaultApp(): void { this.apiKey = this.defaultApiKey; this.appName = this.defaultAppName; this.initializeClient(); console.error(`Reset to default app: ${this.appName}`); } - src/server.ts:108-110 (registration)Registration in server.ts: routes tools starting with 'iaptic_' to app.handleTool(), which handles iaptic_reset_app
if (name.startsWith('iaptic_')) { return await this.tools.app.handleTool(name, args); }