Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
JLAB_MCP_DIRNoBase working directory~/.jlab-mcp
JLAB_MCP_LOG_DIRNoSLURM job logs~/.jlab-mcp/logs
JLAB_MCP_PORT_MAXNoPort range upper bound19000
JLAB_MCP_PORT_MINNoPort range lower bound18000
JLAB_MCP_SLURM_MEMNoMemory in MB32000
JLAB_MCP_SLURM_CPUSNoCPUs per task4
JLAB_MCP_SLURM_GRESNoSLURM generic resourcegpu:1
JLAB_MCP_SLURM_TIMENoWall clock time limit4:00:00
JLAB_MCP_NOTEBOOK_DIRNoNotebook storage~/.jlab-mcp/notebooks
JLAB_MCP_SLURM_MODULESNoSpace-separated modules to load (e.g. cuda/12.6)
JLAB_MCP_CONNECTION_DIRNoConnection info files~/.jlab-mcp/connections
JLAB_MCP_SLURM_PARTITIONNoSLURM partitiongpu

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tasks
{
  "list": {},
  "cancel": {},
  "requests": {
    "tools": {
      "call": {}
    },
    "prompts": {
      "get": {}
    },
    "resources": {
      "read": {}
    }
  }
}
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
start_new_session

Start a new session: submit SLURM job, start kernel, create notebook.

Args: experiment_name: Name for the experiment/notebook.

Returns: Dict with session_id, notebook_path, job_id, hostname.

start_session_resume_notebook

Resume a notebook: re-execute all cells to restore kernel state.

Args: experiment_name: Name for this session. notebook_path: Path to existing notebook to resume.

Returns: Dict with session_id, notebook_path, job_id, hostname, errors.

start_session_continue_notebook

Continue a notebook: fork it with fresh kernel (no re-execution).

Args: experiment_name: Name for this session. notebook_path: Path to existing notebook to fork.

Returns: Dict with session_id, notebook_path (forked), job_id, hostname.

execute_code

Execute code in the kernel and add cell to notebook.

Args: session_id: Session identifier. code: Python code to execute.

Returns: Formatted output string.

edit_cell

Edit an existing cell, re-execute it, and update outputs.

Args: session_id: Session identifier. cell_index: Cell index (supports negative indexing). code: New code for the cell.

Returns: Formatted output string.

add_markdown

Add a markdown cell to the notebook.

Args: session_id: Session identifier. markdown: Markdown content.

Returns: Confirmation with cell index.

shutdown_session

Shutdown session: stop kernel and cancel SLURM job.

Args: session_id: Session identifier.

Returns: Confirmation message.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
server_statusGet server status: active sessions, job states.

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/kdkyum/jlab-mcp'

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