configure_auth
Set up Overleaf account credentials to enable Git-based project management, syncing LaTeX files between local environments and Overleaf.
Instructions
Configure global Overleaf credentials
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Overleaf account email | ||
| token | Yes | Overleaf git token |
Implementation Reference
- src/index.ts:157-163 (handler)Handler for the 'configure_auth' tool: extracts email and token from arguments and delegates to AuthManager.saveConfig, returning success message.case 'configure_auth': { const { email, token } = request.params.arguments as any; await authManager.saveConfig({ email, token }); return { content: [{ type: 'text', text: 'Successfully configured authentication' }], }; }
- src/index.ts:107-120 (schema)Input schema definition for the 'configure_auth' tool, specifying required email and token properties.inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'Overleaf account email', }, token: { type: 'string', description: 'Overleaf git token', }, }, required: ['email', 'token'], },
- src/index.ts:104-121 (registration)Registration of the 'configure_auth' tool in the ListTools response, including name, description, and input schema.{ name: 'configure_auth', description: 'Configure global Overleaf credentials', inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'Overleaf account email', }, token: { type: 'string', description: 'Overleaf git token', }, }, required: ['email', 'token'], }, },
- src/auth-manager.js:13-17 (helper)AuthManager.saveConfig method: merges new config with existing and writes to ~/.overleaf-mcp/config.json.async saveConfig(config) { const current = await this.getConfig(); const newConfig = { ...current, ...config }; await fs.writeJson(CONFIG_FILE, newConfig, { spaces: 2 }); }