Prerequisites
Before you begin, make sure you have:- Node.js 18+ (for running Heimdall backend and frontend)
- Python 3.9+ (if using the Python SDK)
Step 1: Start the Heimdall Stack
First, clone the Heimdall repository and start the backend and frontend servers.Start the Backend Server (Port 4318)
Start the Backend Server (Port 4318)
The backend server receives OTLP traces from your instrumented applications.You should see:
Start the Frontend Dashboard (Port 5173)
Start the Frontend Dashboard (Port 5173)
The frontend provides a beautiful dashboard for viewing your traces.Open http://localhost:5173 in your browser.
Step 2: Create Your Workspace
1
Create an Account
Navigate to http://localhost:5173 and sign up with your email and password.
2
Create an Organization
Organizations group your projects together. Give it a name like “My Company” or “Personal”.
3
Create a Project
Each project has a unique ID for trace collection. Create one for each service you want to monitor.
4
Get Your IDs
Go to Settings to find your Organization ID and Project ID. You’ll need these to configure the SDK.
Step 3: Install the SDK
Choose your language and install the Heimdall SDK:Step 4: Instrument Your Code
Add tracing to your MCP server with just a few lines of code:Step 5: View Your Traces
- Go to the Heimdall dashboard at http://localhost:5173
- Navigate to Settings → Link SDK Project
- Click Link next to your SDK project to view its traces
- Go to Tracing to see all your traces
Congratulations! You’ve successfully set up Heimdall observability for your MCP server.