Skip to main content
Glama

Rezoomex MCP Server

by Pratik-911

Rezoomex MCP Server (Node.js)

A Node.js-based Server-Sent Events (SSE) MCP server for Rezoomex API integration with bearer token authentication.

Features

  • SSE Support: Real-time streaming responses for long-running operations
  • Bearer Token Authentication: Secure authentication using Rezoomex bearer tokens
  • Comprehensive API Coverage: All major Rezoomex API endpoints
  • Session Management: Multi-user session handling with automatic cleanup
  • Proper Error Handling: Detailed error messages and logging
  • Rate Limiting: Built-in protection against abuse
  • Health Monitoring: Health check endpoints and logging

Quick Start

1. Installation

cd /Users/pratik/Documents/Projects/Rezoomex/image-processing/rezoomex npm install

2. Configuration

Copy the environment template:

cp .env.example .env

Edit .env with your configuration:

PORT=3000 NODE_ENV=development REZOOMEX_BASE_URL=https://awsapi-gateway.rezoomex.com # No default projects - all project_id and persona_id must be provided

3. Start the Server

npm start

The server will be available at http://localhost:3000

Authentication Flow

Step 1: Get Login URL

curl http://localhost:3000/auth/login-url

Response:

{ "loginUrl": "https://workspace.rezoomex.com/account/login", "instructions": "Please login at the provided URL and extract the bearer token from the URL after successful authentication.", "tokenLocation": "The bearer token will be in the URL as access_token parameter after login." }

Step 2: Login and Extract Bearer Token

  1. Visit the login URL in your browser
  2. Login with your Rezoomex credentials
  3. After successful login, extract the access_token from the URL
  4. The URL will look like: https://workspace.rezoomex.com/dashboard?access_token=YOUR_BEARER_TOKEN&...

Step 3: Authenticate with Server

curl -X POST http://localhost:3000/auth/token \ -H "Content-Type: application/json" \ -H "X-Session-ID: your-session-id" \ -d '{"bearerToken": "YOUR_BEARER_TOKEN"}'

Response:

{ "success": true, "sessionId": "your-session-id", "message": "Authentication successful. Use this session ID for subsequent requests.", "expiresIn": "24 hours" }

API Endpoints

Health Check

GET /health

Authentication

GET /auth/login-url # Get login URL POST /auth/token # Authenticate with bearer token GET /auth/session/:sessionId # Check session status DELETE /auth/session/:sessionId # Clear session

MCP Tools

GET /mcp/tools # List available tools GET /mcp/execute/:toolName # Execute tool via SSE POST /mcp/execute/:toolName # Execute tool via POST

Available MCP Tools

Tool NameDescriptionRequired Parameters
list_user_storiesList all user stories with numbers for a project and personaproject_id, persona_id
get_story_rangeGet user stories in a range (e.g., stories 1-5) with all detailsproject_id, persona_id, start_number, end_number
get_single_story_detailsGet detailed information for a single user storyproject_id, persona_id
get_project_overviewGet comprehensive project overviewproject_id
get_persona_profileGet detailed persona profileproject_id, persona_id
get_user_journeyGet detailed user journey eventsproject_id, persona_id
get_jobs_to_be_doneGet Jobs to be Done analysisproject_id, persona_id
get_user_infoGet authenticated user profile informationNone
get_project_environmentGet project environment information including personasproject_id
check_nda_statusCheck NDA status for the authenticated userNone
get_product_infoGet detailed product information for a projectproject_id

Name-Based Lookup Tools (User-Friendly)

Tool NameDescriptionRequired Parameters
list_projectsList all available projects with their names and IDsNone
find_project_by_nameFind a project by its name and get the project IDproject_name
find_persona_by_nameFind a persona by name within a project and get the persona IDproject_id, persona_name
get_user_stories_by_nameList user stories using project and persona names (more user-friendly)project_name, persona_name
get_persona_by_nameGet persona profile using project and persona names (more user-friendly)project_name, persona_name

Legacy Tools (Backward Compatibility)

Tool NameDescriptionRequired Parameters
mcp0_getUserInfoLegacy: Get authenticated user profile informationNone
mcp0_fetchPersonaLegacy: Get persona details by project and persona IDprojectId, personaId
mcp0_fetchElevatorPitchLegacy: Get project elevator pitchprojectId
mcp0_fetchVisionStatementLegacy: Get project vision statementprojectId
mcp0_fetchProductInfoLegacy: Get product informationprojectId
mcp0_fetchProjectEnvironmentLegacy: Get project environment informationprojectId
mcp0_checkNdaStatusLegacy: Check NDA status for the authenticated userNone

Usage Examples

Using SSE (Server-Sent Events)

const eventSource = new EventSource( 'http://localhost:3000/mcp/execute/list_user_stories?project_id=39SQ&persona_id=39SQ-P-003', { headers: { 'X-Session-ID': 'your-session-id' } } ); eventSource.addEventListener('progress', (event) => { const data = JSON.parse(event.data); console.log('Progress:', data.message); }); eventSource.addEventListener('result', (event) => { const data = JSON.parse(event.data); console.log('Result:', data.result); }); eventSource.addEventListener('complete', (event) => { console.log('Operation completed'); eventSource.close(); }); eventSource.addEventListener('error', (event) => { const data = JSON.parse(event.data); console.error('Error:', data.message); });

Using POST Requests

# Using IDs (traditional way) curl -X POST http://localhost:3000/mcp/execute/list_user_stories \ -H "Content-Type: application/json" \ -H "X-Session-ID: your-session-id" \ -d '{"project_id": "39SQ", "persona_id": "39SQ-P-003"}' # Using names (user-friendly way) curl -X POST http://localhost:3000/mcp/execute/get_user_stories_by_name \ -H "Content-Type: application/json" \ -H "X-Session-ID: your-session-id" \ -d '{"project_name": "Talentally Yours", "persona_name": "Priya Sinha"}'

Get Story Range

curl -X POST http://localhost:3000/mcp/execute/get_story_range \ -H "Content-Type: application/json" \ -H "X-Session-ID: your-session-id" \ -d '{"start_number": 1, "end_number": 5, "project_id": "39SQ", "persona_id": "39SQ-P-003"}'

Get Single Story Details

curl -X POST http://localhost:3000/mcp/execute/get_single_story_details \ -H "Content-Type: application/json" \ -H "X-Session-ID: your-session-id" \ -d '{"story_number": 1, "project_id": "39SQ", "persona_id": "39SQ-P-003"}'

Error Handling

The server provides detailed error messages for different scenarios:

  • Authentication Required: AUTH_REQUIRED - Need to authenticate first
  • Session Expired: SESSION_EXPIRED - Need to re-authenticate
  • Unknown Tool: UNKNOWN_TOOL - Tool name not recognized
  • Validation Error: VALIDATION_ERROR - Invalid input parameters
  • Execution Error: EXECUTION_ERROR - Error during tool execution

Logging

Logs are written to both console and file (logs/rezoomex-mcp.log). Log levels:

  • error: Critical errors
  • warn: Warning messages
  • info: General information
  • debug: Detailed debugging information

Development

Run in Development Mode

npm run dev

Run Tests

npm test

Configuration Options

Environment VariableDefaultDescription
PORT3000Server port
NODE_ENVdevelopmentEnvironment mode
REZOOMEX_BASE_URLhttps://awsapi-gateway.rezoomex.comRezoomex API base URL
REZOOMEX_LOGIN_URLhttps://workspace.rezoomex.com/account/loginLogin URL
DEFAULT_PROJECT_ID39SQDefault project ID
DEFAULT_PERSONA_ID39SQ-P-003Default persona ID
LOG_LEVELinfoLogging level
LOG_FILElogs/rezoomex-mcp.logLog file path
RATE_LIMIT_WINDOW_MS900000Rate limit window (15 min)
RATE_LIMIT_MAX_REQUESTS100Max requests per window
CORS_ORIGIN*CORS origin setting

Security Features

  • Helmet.js: Security headers
  • Rate Limiting: Prevents abuse
  • CORS: Configurable cross-origin requests
  • Session Timeout: Automatic session cleanup
  • Input Validation: Parameter validation for all tools
  • Error Sanitization: Safe error messages

Architecture

rezoomex/ ├── server.js # Main server file ├── lib/ │ ├── rezoomex-client.js # Rezoomex API client │ ├── auth-manager.js # Authentication management │ └── mcp-tools.js # MCP tool definitions ├── logs/ # Log files ├── package.json ├── .env.example └── README.md

Troubleshooting

Common Issues

  1. Authentication Failed
    • Ensure bearer token is valid and not expired
    • Check that you're using the correct login URL
    • Verify the token was extracted correctly from the URL
  2. Session Expired
    • Re-authenticate using /auth/token endpoint
    • Check session timeout settings
  3. API Errors
    • Verify project ID and persona ID are correct
    • Check Rezoomex API status
    • Review server logs for detailed error information
  4. Connection Issues
    • Ensure server is running on correct port
    • Check firewall settings
    • Verify network connectivity to Rezoomex API

Debug Mode

Set LOG_LEVEL=debug in your .env file for detailed logging.

License

MIT License - see LICENSE file for details.

Support

For issues and questions, please check the logs first and ensure your authentication is valid. The server provides detailed error messages to help diagnose problems.

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables interaction with the Rezoomex API for project management and user story analysis. Provides real-time access to user stories, personas, project overviews, and user journeys with SSE support and secure bearer token authentication.

  1. Features
    1. Quick Start
      1. 1. Installation
      2. 2. Configuration
      3. 3. Start the Server
    2. Authentication Flow
      1. Step 1: Get Login URL
      2. Step 2: Login and Extract Bearer Token
      3. Step 3: Authenticate with Server
    3. API Endpoints
      1. Health Check
      2. Authentication
      3. MCP Tools
    4. Available MCP Tools
      1. Name-Based Lookup Tools (User-Friendly)
      2. Legacy Tools (Backward Compatibility)
    5. Usage Examples
      1. Using SSE (Server-Sent Events)
      2. Using POST Requests
      3. Get Story Range
      4. Get Single Story Details
    6. Error Handling
      1. Logging
        1. Development
          1. Run in Development Mode
          2. Run Tests
        2. Configuration Options
          1. Security Features
            1. Architecture
              1. Troubleshooting
                1. Common Issues
                2. Debug Mode
              2. License
                1. Support

                  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/Pratik-911/Rmx-mcp'

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