Skip to content

MCP ​

Lumberjack has an MCP server. AI agents such as Claude Code, Codex, Cursor, VS Code or Claude Desktop can read issues and telemetry through it and help triage them.

Tokens ​

Team owners and admins create tokens under API and MCP tokens on the team page. Members see the list. The same tokens read the metrics API, in the projects where they read telemetry.

FieldValues
NameUp to 100 characters. Shown on everything the token does.
ProjectsAll projects, which includes projects created later, or Selected projects, at least one.
PermissionsA level per area, single tools added or taken away, and per-project changes. See Permissions.
Expiry30, 90 or 365 days, or never.

The token, lj_mcp_..., is shown once. The list shows who created each token, how many tools it reaches and when it was last used. Edit changes its name, projects and permissions without changing the token itself, and makes it act as the editor; Revoke ends it.

  • A token acts as the person who created it, or who last edited it. It sees and changes only what that person may see and change, within its projects and its team. Its permissions only narrow that, never widen it.
  • A token works only while its creator is an owner or admin of the team. When they leave the team, become a member, are suspended or are deleted, the token stops and shows as Stopped; a current admin has to create a new one.
  • A token makes at most 120 calls a minute.

Permissions ​

Each area gets a level: None, Read, Write or Manage. A level includes the ones before it. Some areas offer fewer: telemetry and team are read only, scheduled tasks skip Write.

AreaKeyCovers
IssuesissuesTriage, status, labels, assignees, notes, GitHub issues.
TelemetrytelemetryTraces, requests, queries, jobs, logs, releases and metrics.
Health checkshealthChecks Lumberjack runs, those the app reports, maintenance.
Scheduled tasksscheduleTasks the app reports.
AlertsalertsAlert rules, topics, queue thresholds. Team-wide.
Data sourcesdata_sourcesPulled sources and app connections.
ScreensscreensScreens, versions, displays and sharing. Team-wide.
AI usageaiAI tokens and cost, keys, budgets and prices.
Project settingsprojectName, environments, log channels, retention, public stats.
TeamteamThe members, for assigning and mentions. Team-wide.
  • Presets set every area at once: Read only (the default), Triage, Monitoring setup, Screen designer and Everything.
  • Tools under an area turn single tools on or off beyond its level. A tool taken away stays away when that tab's level is raised.
  • Per project: the Default tab applies to every project the token covers. A project's tab can give that project another level, or turn single tools on or off, for project areas. Team-wide areas are only set under Default.
  • For a tool in a project, the first of these that says something decides: the project's change to that tool, the project's level, Default's change to that tool, Default's level. So a project with its own level for an area ignores Default's single-tool changes there; turn the tool off on the project's tab too.
  • Screens show telemetry and issues, so a token sees a screen only when it reads both in every project the screen shows (get_metric_series and list_issues), and health checks, data sources, alerts and scheduled tasks where its widgets show those. Single tools turned off among the other telemetry lists do not hide screen widgets. search_project and get_release leave out issues where the token may not read them.
  • An agent only sees the tools its token may use in at least one project. list_my_permissions tells it what it may use where; a refused call names the tool and the project.

Tokens made before permissions existed became: read Read in every area, write also Write on issues, and Can design screens Write on screens. Read in every area also reaches the read tools added since, such as project settings and alert rules.

Never through MCP, whatever the permissions: creating or deleting projects, rotating server tokens, public keys, stats keys and pull tokens, notification channels, repository links, members, invitations, roles and MCP tokens.

Connecting ​

The server is at https://your-lumberjack/mcp. It uses streamable HTTP and takes the token as a bearer token in the Authorization header. Connect a client under the tokens on the team page, and the dialog shown when a token is created, show these snippets with your address filled in.

Keep the token out of version control

A token opens your team's data like a password. Never put the token itself in a file you commit, such as .mcp.json, .cursor/mcp.json or .vscode/mcp.json. Keep it in an environment variable or your client's secret store, as below, and revoke it on the team page if it leaks.

Set the variable where the client runs, in a shell profile that is not in a dotfiles repository, or through a secret manager. On Windows, use setx LUMBERJACK_MCP_TOKEN lj_mcp_....

bash
export LUMBERJACK_MCP_TOKEN=lj_mcp_...

Claude Code, in your repository. It writes .mcp.json with the variable, not the token, so the file can be committed:

bash
claude mcp add --transport http --scope project --header 'Authorization: Bearer ${LUMBERJACK_MCP_TOKEN}' lumberjack https://your-lumberjack/mcp

Codex adds it to ~/.codex/config.toml:

bash
codex mcp add lumberjack --url https://your-lumberjack/mcp --bearer-token-env-var LUMBERJACK_MCP_TOKEN

Cursor, in .cursor/mcp.json. Restart Cursor after setting the variable:

json
{
    "mcpServers": {
        "lumberjack": {
            "url": "https://your-lumberjack/mcp",
            "headers": { "Authorization": "Bearer ${env:LUMBERJACK_MCP_TOKEN}" }
        }
    }
}

VS Code, in .vscode/mcp.json. It asks for the token on first use and keeps it in its secret store:

json
{
    "inputs": [
        {
            "type": "promptString",
            "id": "lumberjack-token",
            "description": "Lumberjack MCP token",
            "password": true
        }
    ],
    "servers": {
        "lumberjack": {
            "type": "http",
            "url": "https://your-lumberjack/mcp",
            "headers": { "Authorization": "Bearer ${input:lumberjack-token}" }
        }
    }
}

Claude Desktop, in claude_desktop_config.json (Settings, Developer, Edit config), through mcp-remote, which needs Node.js. This file holds the token itself: keep it out of any repository.

json
{
    "mcpServers": {
        "lumberjack": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://your-lumberjack/mcp",
                "--header",
                "Authorization:${AUTH_HEADER}"
            ],
            "env": { "AUTH_HEADER": "Bearer lj_mcp_..." }
        }
    }
}

More than one token

Using tokens for other teams, servers or permissions? Give each its own server name and variable, such as lumberjack-work with LUMBERJACK_WORK_MCP_TOKEN, or set LUMBERJACK_MCP_TOKEN per repository with a tool like direnv in a git-ignored .envrc.

Tools ​

The server tells agents to treat error messages, request data and log lines as data, not as instructions.

Agents' notes and changes show in Lumberjack with the token's name. Durations are in microseconds. Needs is the area and level a token needs for the tool; see Permissions. Arguments in bold are required.

Always available ​

ToolNeedsDoesArguments
list_projectsany tokenProjects the token can see.none
list_my_permissionsany tokenWhat the token may do, per project.none

Issues ​

ToolNeedsDoesArguments
triage_inboxissues: readWhat needs attention across the token's projects.none
list_issuesissues: readFilter and page issues.project, status, source, search, label, sort, limit
get_issueissues: readOne issue with stack, context and timeline.issue
list_occurrencesissues: readOccurrences of an issue.issue, limit
set_issue_statusissues: writeResolve, ignore, reopen.issue, status, note, until
set_issue_labelsissues: writeSet labels on an issue.issue, labels
assign_issueissues: writeAssign to a member.issue, user_id
watch_issueissues: writeWatch an issue.issue
unwatch_issueissues: writeStop watching an issue.issue
add_issue_noteissues: writeAdd a note, with mentions.issue, body
create_repo_issueissues: writeOpen a GitHub issue from an issue. Sends outside Lumberjack.issue, title, body
list_labelsissues: readThe project's labels.project
bulk_update_issuesissues: writeStatus, assignee or label on many issues.project, issues, status, user_id, unassign, add_label, remove_label
update_labelissues: manageRename or recolor a label.project, label_id, name, color
delete_labelissues: manageDelete a label. Deletes.project, label_id

Telemetry ​

ToolNeedsDoesArguments
get_tracetelemetry: readOne trace with spans.project, trace_id
list_routestelemetry: readRoutes with timings.project, period, environment, sort, search
list_queriestelemetry: readSlow and frequent queries.project, period, environment, sort, search
list_jobstelemetry: readJobs and failures.project, period, environment, queue, sort
get_jobtelemetry: readOne job run.project, name, uuid, status
list_commandstelemetry: readArtisan command runs.project, period, environment
get_commandtelemetry: readOne command run.project, name, status
search_logstelemetry: readSearch log lines.project, channel, level, search, trace_id, period, limit
list_browser_errorstelemetry: readFrontend errors.project, period, environment, limit
list_releasestelemetry: readReleases with health.project, period, environment, limit
get_releasetelemetry: readOne release with its issues.project, release, period, environment
get_metric_seriestelemetry: readA metric over time.project, metric, from, to, interval, environment, route, domain, queue, job, host, release, check, group_by, top
list_queuestelemetry: readQueue depth and wait.project, period, environment
list_hoststelemetry: readHosts and their load.project
search_projecttelemetry: readSearch a project.project, q

Health checks ​

ToolNeedsDoesArguments
list_health_checkshealth: readChecks with state and uptime.project, period, environment, attention
get_health_checkhealth: readOne check with settings and results.project, check
create_health_checkhealth: writeAdd a check Lumberjack runs.project, type, name, description, environment, interval_minutes, degrade_after, down_after, recover_after, muted, config
update_health_checkhealth: writeChange a check.project, check, name, description, environment, interval_minutes, degrade_after, down_after, recover_after, muted, config
run_health_checkhealth: writeRun a check now.project, check
archive_health_checkhealth: writeArchive or unarchive a check.project, check, archived
delete_health_checkhealth: manageDelete a check and its history. Deletes.project, check

Maintenance windows ​

ToolNeedsDoesArguments
list_maintenance_windowshealth: readMaintenance windows with state.project, environment, state
create_maintenance_windowhealth: writePlan a maintenance window.project, environment, starts_at, ends_at, message
update_maintenance_windowhealth: writeChange a maintenance window.project, window, environment, starts_at, ends_at, message
end_maintenance_windowhealth: writeEnd a maintenance window now.project, window

A window covers one environment, or every environment when environment is left out. starts_at and ends_at are ISO 8601; ends_at is the expected end, and past it the maintenance overrun alert fires until the window is ended. state is open (including overrun), planned, ended or all, where ended and all return the newest 50; by default the windows not ended yet and the last 5 that ended. How long a window the app reports is expected to take, and how often the overrun alert repeats, are set with update_project.

Scheduled tasks ​

ToolNeedsDoesArguments
list_scheduled_tasksschedule: readTasks with last run and state.project, environment, attention
get_scheduled_taskschedule: readOne task with its runs.project, name, environment
delete_scheduled_taskschedule: manageForget a task and its runs. Deletes.project, name, environment

Alerts ​

ToolNeedsDoesArguments
list_alert_rulesalerts: readTeam rules and a project's overrides.project
list_notification_channelsalerts: readChannels and what sends to them.project
list_alert_topicsalerts: readCustom alert topics.none
update_alert_rulealerts: writeCustomize a rule for a project.project, type, topic, enabled, channels, environments, settings
reset_alert_rulealerts: writeBack to the team's rule.project, type, topic
set_alert_rule_add_onsalerts: writeAdd channels to a team rule.project, type, topic, channels
set_queue_alert_thresholdalerts: writeThresholds for one queue.project, connection, queue, size, oldest_minutes, sustained_minutes, muted
create_alert_topicalerts: writeNew custom alert topic.name
send_project_alertalerts: writeSend a custom alert. Sends outside Lumberjack.project, title, message, level, topic, environment, url, fields, links, dedupe_key, dedupe_minutes
send_test_alertalerts: writeTest a channel. Sends outside Lumberjack.channel
update_team_alert_rulealerts: manageChange a team rule.type, topic, enabled, channels, environments, settings
delete_alert_topicalerts: manageDelete a custom alert topic. Deletes.topic

For weekly_summary, settings is {day, time}: day 1 to 7 (1 is Monday) and time as HH:MM. For ai_budget it is {thresholds, projected}: the percents to tell at, of 50, 80 and 100, and whether to warn when a budget is on course to go over. For ai_error_rate it is {minutes, rate, min_calls}: the window, the percent of calls failing and the fewest calls that count.

Data sources ​

ToolNeedsDoesArguments
list_data_sourcesdata_sources: readSources with group and last fetch.none
preview_data_sourcedata_sources: readLatest answer and readable paths.project, data_source, type, path, label_path, value_path
list_data_source_connectionsdata_sources: readConnected apps and their status.project
create_data_sourcedata_sources: writeAdd a fetched source.project, name, url, format, interval_minutes, timeout_s, headers
update_data_sourcedata_sources: writeChange a fetched source.project, data_source, name, url, format, interval_minutes, timeout_s, headers
fetch_data_sourcedata_sources: writeFetch a source now.project, data_source
create_data_source_connectiondata_sources: manageConnect an app.project, environment, url, timezone
update_data_source_connectiondata_sources: manageChange an app's address or time zone.project, connection, url, timezone
delete_data_sourcedata_sources: manageDelete a source. Deletes.project, data_source
delete_data_source_connectiondata_sources: manageDisconnect an app. Deletes.project, connection

Screens ​

ToolNeedsDoesArguments
list_screensscreens: readScreens in the team.none
get_screenscreens: readLayout and widgets.screen
list_widget_typesscreens: readWidgets and their options.type
get_screen_datascreens: readWidget data as shown; AI widgets need ai: read too, else null.screen, widget
list_screen_versionsscreens: readSaved versions.screen
preview_screenscreens: readSigned preview link.screen
get_screen_design_guidescreens: readDesign guide for agents.none
create_screenscreens: writeNew screen.name, template
update_screenscreens: writeName, theme, settings.screen, revision, name, theme, aspect, orientation, fit, margin, gap, show_header, show_clock, clock_format, header, light_from, light_to, timezone, scope
update_screen_layoutscreens: writeGrid layout.screen, revision, cols, rows, widgets
update_screen_widgetscreens: writeOne widget.screen, revision, id, widget
restore_screen_versionscreens: writeRestore a version.screen, revision, version
export_screenscreens: readScreen as a file.screen
list_displaysscreens: readPaired displays.none
list_screen_viewersscreens: readWho has it open.screen
duplicate_screenscreens: writeCopy a screen.screen
reload_screenscreens: writeReload its TVs.screen
import_screenscreens: manageScreen from a file.json
assign_displayscreens: manageWhat a display shows.display, screen
set_screen_sharescreens: managePublic share link. Can make data public.screen, enabled, include_titles
delete_screenscreens: manageDelete a screen. Deletes.screen

AI usage ​

ToolNeedsDoesArguments
get_ai_usageai: readTokens and cost to us and to customers, per model, against the period before. Warns of unpriced tokens.project, period (default 30d), environment
list_ai_spendersai: readThe costliest keys, key owners or actors, 10 a page.project, kind (keys by default, owners, actors), period, environment, search, page
get_ai_keyai: readOne key: usage, prices, payer, budgets and latest calls.project, key (uuid or short id), period, environment, only_failed, limit (1 to 100, default 20)
list_ai_budgetsai: readBudgets with status, used, amount and projection.project
list_ai_pricesai: readThe prices that apply to the project, its own and its team's, with scope, model, valid from and prices, and the default payer.project
save_ai_budgetai: writeAdd a budget, or change one.project, budget (to change), name, scope, keys, owners, actors, period, basis, payer, amount
save_ai_priceai: writeAdd a price, or change one.project, price (to change), scope, team_wide, owner_type, owner_id, key, provider, model_pattern, valid_from, input, output, cache_read, cache_write, reasoning
update_ai_keyai: writeName a key or set who pays for it.project, key, name, payer
set_ai_default_payerai: writeWho pays for the project's keys that do not say: us or the customer.project, payer
delete_ai_budgetai: manageDelete a budget. Deletes.project, budget
delete_ai_priceai: manageDelete a price. Deletes.project, price

Keys are named by their uuid or short id; their fingerprints never leave Lumberjack. When changing a budget or a price, pass only what changes.

Project settings ​

ToolNeedsDoesArguments
get_project_overviewproject: readHealth of the project at a glance.project, period, environment
get_project_settingsproject: readSettings without secrets.project
update_projectproject: writeName, slug, prefix, maintenance.project, name, slug, issue_prefix, maintenance_expected_minutes, maintenance_repeat_minutes
create_log_channelproject: writeAdd a log channel.project, name
delete_log_channelproject: manageDelete a log channel and its lines. Deletes.project, channel_id
set_project_retentionproject: manageDays kept per data type. Deletes.project, days, forever, channels
set_public_statsproject: managePublic stats link on or off. Can make data public.project, enabled, include_titles

Team ​

ToolNeedsDoesArguments
list_membersteam: readMembers and roles.project

About screens ​

An agent reads get_screen_design_guide first. It sees only screens that show projects the token covers, and a change may not make a screen show projects outside the token. A screen with a Wi-Fi password or a media widget needs a token covering every project of the team. Changes need the revision they were based on, and are refused if the screen changed in the meantime. A preview stops working when its token does, or no longer covers the screen.

Argument details ​

project is a project slug from list_projects. It is required only when the token covers more than one project. issue is an issue's number, such as DEMO-42, or its id. period is 1h, 24h, 7d or 30d (default 24h). Arguments in bold are required. Every tool also describes its arguments to the agent itself.

ToolArguments
list_projectsnone
get_project_overviewproject, period, environment
triage_inboxnone
list_issuesproject, status (open by default, which includes in_progress, or resolved, ignored), source (server, browser, log), search (title or message), label, sort (last_seen by default, occurrences, users, first_seen), limit (1 to 100, default 25)
get_issueissue
list_occurrencesissue, limit (1 to 100, default 20)
set_issue_statusissue, status (open, in_progress, resolved, ignored), note (added as a note), until for ignored: escalation (default), 1h, 24h, 7d, count:10, count:100, count:1000 or forever
assign_issueissue, user_id from list_members. Leave it out to unassign.
set_issue_labelsissue, labels: a list of names. An empty list removes all. New names create labels. Up to 10 labels of at most 32 characters.
watch_issueissue
unwatch_issueissue
add_issue_noteissue, body: Markdown. The first line is the summary shown in alerts. <@id> tags a member.
create_repo_issueissue, title (defaults to the exception and message), body (Markdown)
list_membersproject
list_routesproject, period, environment, sort (p95 by default, count, errors, total), search
list_queriesproject, period, environment, sort (total by default, p95, count), search (SQL text)
list_jobsproject, period, environment, queue, sort (errors by default, count, duration, wait)
list_commandsproject, period, environment
list_scheduled_tasksproject, environment, attention (only tasks whose last run failed or was missed)
get_jobproject, name (the full job class), uuid (one job's attempts), status (queued, processing, processed, released, failed, stuck)
get_commandproject, name (such as reports:send), status (running, finished, failed)
get_scheduled_taskproject, name as list_scheduled_tasks shows it, environment
list_health_checksproject, period (for uptime), environment, attention (only degraded, down or stale checks)
get_traceproject, trace_id
search_logsproject, channel, level (minimum: debug to emergency), search, trace_id, period, limit (1 to 200, default 50)

Automatic triage ​

The project settings have a ready-made GitHub Actions workflow that runs Claude Code in your repository. Through the MCP tools, it triages new and regressed issues and answers notes that tag it, without resolving them.

The Automatic triage section of a project's settings

When it is sure of the cause and the fix is small, or a comment asks for one, it opens a draft pull request from a lumberjack/<issue number> branch with "Fixes #N" in its body, and links it in its note or comment. It never pushes to the default branch or merges. CI does not start on these pull requests by itself: push to the branch or re-run CI.

  1. Create a token with the Triage preset (issues: Write) that covers the project.
  2. Add the secrets to the GitHub repository: LUMBERJACK_MCP_TOKEN (the token) and CLAUDE_CODE_OAUTH_TOKEN (from claude setup-token, using your Claude subscription). To pay per use instead, swap the commented lines for ANTHROPIC_API_KEY.
  3. Commit the workflow shown in the settings as .github/workflows/lumberjack-triage.yml.

It runs:

WhenDoes
Every 15 minutes, or by hand (Run workflow)Works through the triage inbox and notes in Lumberjack that tag it.
A GitHub issue labeled lumberjack is opened or labeled, or gets a commentAnswers on the GitHub issue. Comments by bots are left alone.

Lumberjack puts the lumberjack label on the GitHub issues it creates. A run can take up to 20 minutes. Only one run per issue, or for the inbox, runs at a time.

Your Lumberjack must be on a public URL that GitHub can reach. The settings also show how to run the same triage once in a local Claude Code session.

The workflow shows as "Lumberjack Triage" in the Actions tab and commits as "Lumberjack", from lumberjack@noreply.invalid. To show the Lumberjack logo on those commits, create a GitHub App or account with the logo as its avatar and set the repository variable LUMBERJACK_GIT_EMAIL to its email. For an app, that is <bot user id>+<app slug>[bot]@users.noreply.github.com. Get the bot user id with gh api /users/<app slug>[bot] --jq .id.