lovie_auth_required
Run npx lovie login in your terminal to authenticate and unlock company formation, banking, cards, and invoices.
Instructions
The user is not authenticated with Lovie. Tell them to run npx lovie login in their terminal to authenticate, then restart the MCP connection. All Lovie tools (company formation, banking, cards, invoices) will become available after login.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:730-738 (registration)Tool object definition (name, description, inputSchema) for lovie_auth_required. Registered as a RemoteTool constant.
const AUTH_REQUIRED_TOOL: RemoteTool = { name: "lovie_auth_required", description: "The user is not authenticated with Lovie. Tell them to run `npx lovie login` in their terminal to authenticate, then restart the MCP connection. All Lovie tools (company formation, banking, cards, invoices) will become available after login.", inputSchema: { type: "object" as const, properties: {}, }, }; - src/index.ts:780-791 (handler)Handler logic for lovie_auth_required in the CallToolRequestSchema handler. Returns an error response telling the user to run `npx lovie login`.
// Handle the auth-required helper tool if (name === "lovie_auth_required") { return { content: [ { type: "text" as const, text: "Not authenticated with Lovie. The user needs to run `npx lovie login` in their terminal to authenticate, then restart the MCP connection (e.g. `/mcp` in Claude Code). After login, all Lovie tools will be available.", }, ], isError: true, }; } - src/index.ts:769-774 (registration)tools/list handler that exposes lovie_auth_required when not authenticated or when no tools are discovered.
server.setRequestHandler(ListToolsRequestSchema, async () => { if (notAuthenticated || discoveredTools.length === 0) { return { tools: [AUTH_REQUIRED_TOOL] }; } return { tools: discoveredTools }; }); - src/index.ts:52-56 (schema)RemoteTool interface defining the shape used by the tool definition.
interface RemoteTool { name: string; description?: string; inputSchema: Record<string, unknown>; }