Skip to main content
Glama

login

Authenticate users to access Folderr's API for managing and communicating with Assistants using email and password credentials.

Instructions

Login to Folderr with email and password

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailYesUser email
passwordYesUser password

Implementation Reference

  • The main handler function that executes the 'login' tool logic. It sends a POST request to the Folderr API's sign-in endpoint with email and password, updates the authentication token in config and axios instance upon success, and returns appropriate success or error messages.
    private async handleLogin(args: any) { try { const response = await this.axiosInstance.post<AuthResponse>('/api/auth/sign-in', { email: args.email, password: args.password, }); // Update config and axios instance with new token this.config.token = response.data.token; this.axiosInstance.defaults.headers.common['Authorization'] = `Bearer ${this.config.token}`; this.saveConfig(); return { content: [ { type: 'text', text: 'Successfully logged in', }, ], }; } catch (error: any) { return { content: [ { type: 'text', text: `Login failed: ${error.response?.data?.message || error.message}`, }, ], isError: true, }; } }
  • The input schema for the 'login' tool, specifying the required 'email' and 'password' fields as strings.
    inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'User email', }, password: { type: 'string', description: 'User password', }, }, required: ['email', 'password'], },
  • src/index.ts:125-142 (registration)
    Registration of the 'login' tool in the ListTools response, including name, description, and input schema.
    { name: 'login', description: 'Login to Folderr with email and password', inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'User email', }, password: { type: 'string', description: 'User password', }, }, required: ['email', 'password'], }, },
  • src/index.ts:217-218 (registration)
    Registration of the 'login' tool handler in the CallToolRequestSchema switch statement, dispatching to handleLogin function.
    case 'login': return await this.handleLogin(request.params.arguments);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/folderr-tech/folderr-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server