Skip to main content
Glama
MarveleE
by MarveleE

rap2_debug_login_info

Debug current login environment configuration for RAP2 API documentation access without exposing plaintext passwords.

Instructions

调试当前登录环境配置(不返回明文密码)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for 'rap2_debug_login_info' tool. It reads environment variables for login config using readEnvConfig(), constructs a payload with baseUrl, email, and boolean flags for session cookies and password presence (without exposing password), logs it, and returns as JSON text content.
    if (name === 'rap2_debug_login_info') {
      const { baseUrl, email, sid, sidSig } = readEnvConfig();
      const payload = { baseUrl, email, hasSid: !!sid, hasSidSig: !!sidSig, hasPassword: !!(process.env.RAP2_PASSWORD || process.env.RAP_PASSWORD) };
      logger.info({ tool: name, result: payload }, 'tool success');
      return { content: [{ type: 'text', text: JSON.stringify(payload) }] };
  • Registration of the 'rap2_debug_login_info' tool in the tools list, including name, description, and empty input schema. This list is provided to the MCP server capabilities.
    {
      name: 'rap2_debug_login_info',
      description: '调试当前登录环境配置(不返回明文密码)',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • Input schema for the tool: an empty object (no parameters required).
    inputSchema: {
      type: 'object',
      properties: {},
    },
  • Helper function used by the handler to read and return environment configuration variables for RAP2 login.
    function readEnvConfig() {
      const baseUrl = process.env.RAP2_BASE_URL || process.env.RAP_BASE_URL || '';
      const email = process.env.RAP2_EMAIL || process.env.RAP_EMAIL || '';
      const password = process.env.RAP2_PASSWORD || process.env.RAP_PASSWORD || '';
      const sid = process.env.RAP2_SID || '';
      const sidSig = process.env.RAP2_SID_SIG || '';
      return { baseUrl, email, password, sid, sidSig };
    }

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/MarveleE/rap2-mcp'

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