rap2_debug_login_info
Debug current login environment configuration for RAP2 API documentation access without exposing plaintext passwords.
Instructions
调试当前登录环境配置(不返回明文密码)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp-server.js:206-210 (handler)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) }] };
- src/mcp-server.js:110-117 (registration)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: {}, }, },
- src/mcp-server.js:113-116 (schema)Input schema for the tool: an empty object (no parameters required).inputSchema: { type: 'object', properties: {}, },
- src/mcp-server.js:11-18 (helper)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 }; }