Skip to main content
Glama
yarmijosp94

Evaluar MCP Server

by yarmijosp94

auth_refresh

Refresh authentication tokens for the Evaluar recruitment platform to maintain continuous access when tokens approach expiration.

Instructions

Refresh the authentication token. Use this when the current token is about to expire.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the logic for refreshing the authentication token.
    export async function handleAuthRefresh(): Promise<string> {
      try {
        const tokenData = await refreshToken();
        return JSON.stringify({
          success: true,
          message: "Token refreshed successfully",
          expiresIn: tokenData.expires_in,
        });
      } catch (error) {
        return JSON.stringify({
          success: false,
          error: error instanceof Error ? error.message : "Unknown error",
        });
      }
    }
  • The tool definition schema for "auth_refresh".
    export const authRefreshTool = {
      name: "auth_refresh",
      description: "Refresh the authentication token. Use this when the current token is about to expire.",
      inputSchema: {
        type: "object" as const,
        properties: {},
        required: [],
      },
    };
  • src/index.ts:53-54 (registration)
    The registration and dispatching logic in the main index file for the "auth_refresh" tool.
    case "auth_refresh":
      result = await handleAuthRefresh();

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/yarmijosp94/evaluar-mcp'

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