Логотип Last9 MCP Server

Last9 MCP Server

Организация
last9

Last9 MCP Server

Издательlast9
Репозиторийlast9-mcp-server
ЯзыкGo
Форки
11
Звёзды
62
Доступные инструменты
0
Тип транспортаstdio
Категории
ЛицензияApache-2.0
Ссылки
  • Подключайте инструменты к рабочим процессам с ИИ

    Last9 MCP Server предоставляет возможности MCP, доступные совместимым ИИ-клиентам и агентам.

  • Доступные инструменты: 0

    Ниже представлены доступные для вызова действия с названиями и описаниями, если сервер их предоставляет.

  • Готовая конфигурация для копирования

    Используйте примеры конфигурации, чтобы настроить этот сервер в MCP-клиенте на ваш выбор.

  • Показатели интереса к открытому проекту

    В указанном репозитории: звёзды — 62, форки — 11.

Last9 MCP Server

last9 mcp demo

Your AI agent doesn't know what's broken in production. This fixes that.

Last9 MCP Server connects Claude, Cursor, Windsurf, and any other MCP-capable AI assistant directly to your production observability data — logs, metrics, traces, exceptions, database queries, alerts, and deployments. The agent stops guessing and starts reading the actual signal.


Start in 30 seconds (Hosted)

No binary to install. No tokens to manage. One URL, OAuth in your browser, done.

Find your org slug in your Last9 URL: app.last9.io/<org_slug>/...

Claude Code

bash
claude mcp add --transport http last9 https://app.last9.io/api/v4/organizations/<org_slug>/mcp

Type /mcp, select last9, authenticate. That's it.

Cursor

Settings > MCP > Add New MCP Server:

json
{
  "mcpServers": {
    "last9": {
      "type": "http",
      "url": "https://app.last9.io/api/v4/organizations/<org_slug>/mcp"
    }
  }
}

Click Connect, complete OAuth.

VS Code

Requires v1.99+. Open Command Palette → MCP: Add Server, paste the URL, authenticate.

Or directly in settings.json:

json
{
  "mcp": {
    "servers": {
      "last9": {
        "type": "http",
        "url": "https://app.last9.io/api/v4/organizations/<org_slug>/mcp"
      }
    }
  }
}

Windsurf

Settings > Cascade > Open MCP Marketplace > gear icon (mcp_config.json):

json
{
  "mcpServers": {
    "last9": {
      "serverUrl": "https://app.last9.io/api/v4/organizations/<org_slug>/mcp"
    }
  }
}

Claude Web/Desktop

Settings > Connectors > Add custom connector. Name it last9, paste the URL, authenticate.

Requires admin access to your Claude organization.


Self-Hosted (STDIO)

Use this when your MCP client doesn't support HTTP transport, or when you need the server running locally.

Install

Homebrew:

bash
brew install last9/tap/last9-mcp

NPM:

bash
npm install -g @last9/mcp-server@latest
# or directly:
npx -y @last9/mcp-server@latest

Binary releases (Windows / manual):

Download from GitHub Releases:

PlatformArchive
Windows (x64)last9-mcp-server_Windows_x86_64.zip
Windows (ARM64)last9-mcp-server_Windows_arm64.zip
Linux (x64)last9-mcp-server_Linux_x86_64.tar.gz
Linux (ARM64)last9-mcp-server_Linux_arm64.tar.gz
macOS (x64)last9-mcp-server_Darwin_x86_64.tar.gz
macOS (ARM64)last9-mcp-server_Darwin_arm64.tar.gz

Get a Refresh Token

Only admins can create tokens.

  1. Go to API Access
  2. Click Generate Token with Write permissions
  3. Copy it

Client Configuration

Homebrew:

json
{
  "mcpServers": {
    "last9": {
      "command": "/opt/homebrew/bin/last9-mcp",
      "env": {
        "LAST9_REFRESH_TOKEN": "<your_refresh_token>"
      }
    }
  }
}

NPM:

json
{
  "mcpServers": {
    "last9": {
      "command": "npx",
      "args": ["-y", "@last9/mcp-server@latest"],
      "env": {
        "LAST9_REFRESH_TOKEN": "<your_refresh_token>"
      }
    }
  }
}

Where to paste this:

ClientLocation
Claude Web/DesktopSettings > Developer > Edit Config (claude_desktop_config.json)
CursorSettings > Cursor Settings > MCP > Add New Global MCP Server
WindsurfSettings > Cascade > MCP Marketplace > gear icon (mcp_config.json)
VS CodeWrap in { "mcp": { "servers": { ... } } } in settings.json — details
json
{
  "mcp": {
    "servers": {
      "last9": {
        "type": "stdio",
        "command": "/opt/homebrew/bin/last9-mcp",
        "env": {
          "LAST9_REFRESH_TOKEN": "<your_refresh_token>"
        }
      }
    }
  }
}

For NPM: use "command": "npx" and add "args": ["-y", "@last9/mcp-server@latest"].

After downloading from GitHub Releases, extract and point to the full path:

json
{
  "mcpServers": {
    "last9": {
      "command": "C:\\Users\\<user>\\AppData\\Local\\Programs\\last9-mcp-server.exe",
      "env": {
        "LAST9_REFRESH_TOKEN": "<your_refresh_token>"
      }
    }
  }
}

The NPM route is easier on Windows — no path management.

Environment Variables

VariableDefaultDescription
LAST9_REFRESH_TOKEN(required)Refresh token from API Access
LAST9_DATASOURCEorg defaultDatasource/cluster name — useful when you have multiple Levitate clusters
LAST9_API_HOSTapp.last9.ioOverride the API host
LAST9_TOOLSETSall toolsComma-separated toolsets to expose (logs, traces, metrics, alerts, dashboards, profiles, grafana, investigate, all). Alias: LAST9_MCP_TOOLSETS
LAST9_MAX_GET_LOGS_ENTRIES5000Max entries for chunked get_logs requests
LAST9_USE_LOG_SEARCH_APIfalseSet true to answer get_logs and get_service_logs with one server-side search call instead of client-side chunking
LAST9_DEBUG_CHUNKINGfalseSet true to log chunk-planning details for get_logs, get_service_logs, get_traces
LAST9_DISABLE_TELEMETRYtrueSet false to enable internal OTel tracing
OTEL_SDK_DISABLED—Standard OTel env var. Overrides LAST9_DISABLE_TELEMETRY
OTEL_EXPORTER_OTLP_ENDPOINT—OTLP collector endpoint (only when telemetry is enabled)
OTEL_EXPORTER_OTLP_HEADERS—OTLP auth headers (only when telemetry is enabled)

What It Can Do

Service Health

  • get_service_summary — Ranked fleet (service, env) rows: interval request_count, throughput_rpm, HTTP 4xx/5xx counts, and gRPC error counts
  • get_service_environments — Available environments for your services. Run this first — other APM tools need env from here
  • get_service_performance_details — Full breakdown: throughput, error rate, p50/p90/p95/avg/max, apdex, availability
  • get_service_operations_summary — Operations grouped by HTTP endpoints, DB calls, messaging, HTTP clients
  • get_service_dependency_graph — Dependency map with throughput, latency, and error rates for upstream/downstream/infra
  • get_apm_service_deviations — Compare a current window against an equal-duration baseline: regressions/improvements, Apdex reconciliation, and a terminal outcome (fleet or single service)
  • get_exceptions — Server-side exceptions with service and span filters

Database Observability

Four tools that go directly at your database performance, derived from OpenTelemetry trace spans and, where traces are absent, infrastructure metrics such as CloudWatch. No extra instrumentation needed if you're already using OTel.

  • get_databases — Discover all databases across your infrastructure: DB type, host, throughput (queries/min), p95 latency, error rate, number of dependent services. Also discovers databases from infrastructure metrics such as CloudWatch, with no trace instrumentation needed — those rows carry an activity value instead of trace metrics
  • get_database_slow_queries — The actual slowest query executions, ordered by duration, with trace IDs for drilling into full traces
  • get_database_queries — Query patterns and aggregates: how often a query runs, average/p95 duration, error rate
  • get_database_server_metrics — Server-side metrics from the DB host itself (CPU, connections, buffer hit rates — depends on your DB system)

Supports PostgreSQL, MySQL, MongoDB, Redis, Aerospike, and anything else OTel traces with a db_system attribute — plus databases discovered from infrastructure metrics such as CloudWatch, whose rows carry an activity value instead of trace metrics.

Prometheus / PromQL

  • prometheus_range_query — PromQL range queries over any metric
  • prometheus_instant_query — Instant queries; use rollup functions like avg_over_time, sum_over_time
  • prometheus_label_values — Label values for a given series
  • prometheus_labels — All labels available for a series

Point these at a different datasource/cluster than the default by setting LAST9_DATASOURCE.

Logs

  • get_logs — Full JSON pipeline log queries (aggregations, filters, field extraction)
  • get_service_logs — Raw log lines for a service, filterable by severity and body content
  • get_log_attributes — Global catalog of attributes in the log schema for a time window
  • get_log_attributes_for_pipeline — Log fields actually present for an in-progress pipeline (scoped discovery), each with its exact filter_field
  • get_drop_rules — Log drop rules from Last9 Control Plane
  • add_drop_rule — Create a new drop rule to cut log volume at the source

Traces

  • get_traces — JSON pipeline trace queries for broad searches and aggregations
  • get_service_traces — Traces by exact trace ID or service name. Use this when you have a trace ID — it's faster
  • get_trace_attributes — Global catalog of attributes in the trace schema
  • get_trace_attributes_for_pipeline — Attributes actually present for an in-progress pipeline (scoped discovery), each with its exact filter_field
  • get_trace_attribute_values — Distinct values for a trace attribute, optionally scoped to a pipeline
  • get_trace_attribute_deviations — Ranks attribute values that differ between two bounded span cohorts (slow vs fast, error vs non-error, or two time windows). Correlation, not cause
  • get_trace_waterfall — One exact trace as a parent/child waterfall with interval-union self-time, slowest spans, and graph warnings

Change Events & Alerts

  • get_change_events — Deployments, config changes, rollbacks. Correlate incidents with what changed
  • get_alert_groups — Configured Compass alert groups with metadata labels, team, tier, and rule counts — including groups with zero rules and groups that are not firing
  • get_alert_config — Alert rule configurations — searchable by name, severity, type, tags
  • get_alerts — Currently firing alerts within a time window
  • get_alert_rule_state — Historical firing state (1/0) per alert rule over a time range, grouped by rule_id. Filterable by alert group, rule name, label filters, and state.
  • get_notification_channels — Configured notification channels (Slack, PagerDuty, email, etc.)

Custom Dashboards

  • list_dashboards — All custom dashboards in your org: IDs, names, and metadata
  • get_dashboard — Full dashboard definition by ID, including panels and queries
  • validate_dashboard — Read-only lint + execute + classify for a saved dashboard id or an inline dashboard_definition over a ≤24h window. Never creates or updates dashboards
  • create_dashboard — Create a net-new custom dashboard once (panels, queries, metadata). After the id is returned, refine with update_dashboard.
  • update_dashboard — Refine an existing dashboard by ID (full replacement; readonly system dashboards return an error)
  • delete_dashboard — Delete a custom dashboard by ID
  • list_dashboard_snapshots — Frozen point-in-time snapshots for a dashboard (metadata only)
  • get_dashboard_snapshot — Full frozen snapshot including panel data for RCA / shareable views
  • delete_dashboard_snapshot — Delete a frozen snapshot by ID

Continuous Profiling

Requires continuous profiling enabled for the org. Discover services first with get_profile_services, then pull a flamegraph or ranked functions.

  • get_profile_services — Services that have profiling data in the window (index before querying)
  • get_flamegraph — Nested flamegraph tree for one service (cpu default; also alloc, wall)
  • get_top_functions — Self-sample ranking of hottest functions for one service
  • get_profile_summary — Short natural-language triage of the profile for one service

Grafana Dashboards

Read-only tools against the org's Grafana instance (via Last9's Grafana proxy). Credential fields are never returned to the model. Enable with LAST9_TOOLSETS=grafana (or leave toolsets unset for all tools).

  • grafana_search_dashboards — Search dashboards by title substring (paginated; truncated: true when the cap is hit)
  • grafana_get_dashboard — Dashboard summary by uid (panels, variables, PromQL targets); full_json=true for raw Grafana JSON
  • grafana_list_folders — Folder tree
  • grafana_list_folder_dashboards — Dashboards in one folder (paginated)
  • grafana_list_datasources — Datasource inventory without credentials

Fuzzy Name Resolution

  • did_you_mean — When the agent isn't sure about an entity name, this returns the closest matches from your catalog (services, environments, hosts, databases, K8s deployments/namespaces, jobs). Up to 3 suggestions with similarity scores. The server calls this automatically before most tools when a name lookup returns empty.

Service Profile

  • get_service_profile — What a service's telemetry actually looks like, before you query it: which signals exist, language and runtime, deployment environments, the shape of its logs, and a recommended ingest fix where one applies. Lets the agent skip trace tools when a service has no traces, and parse severity from the log body when SeverityText is empty instead of filtering on it and finding nothing.

How It Works

Deep links on every response. Every tool returns a deep_link field — a direct URL into the Last9 dashboard for that exact query and time range. The agent can hand you the link; you click it; you're there.

Toolsets. By default the server exposes every tool. Automation hosts that only need investigation (logs/traces/metrics/profiles) can set LAST9_TOOLSETS=investigate (or pass --toolsets=investigate) so tools/list stays small without client-side mass-disable. Named packs: logs, traces, metrics, alerts, dashboards, profiles, grafana, investigate, all. Unknown names fail fast. The metrics pack alone does not include list_datasources or did_you_mean — use investigate (or combine toolsets) when you need those discovery helpers.

Tool reference resources. Long logjson/tracejson/service-logs/metrics manuals are MCP resources (last9://reference/logjson, last9://reference/tracejson, last9://reference/service_logs, last9://reference/metrics, last9://reference/investigation), not always-on tool description text. Critical query rules stay on the tool description so agents that never call resources/read still get correct construction guidance. Discover org-specific fields with get_log_attributes / get_log_attributes_for_pipeline (and the trace equivalents)—they are not injected into descriptions.

Chunked large results. get_logs and get_traces handle large result sets through chunking rather than truncating. The default limit is 5000 entries for logs; configurable via LAST9_MAX_GET_LOGS_ENTRIES.


Development

Run in HTTP Mode

bash
export LAST9_REFRESH_TOKEN="your_refresh_token"
export LAST9_HTTP=true
export LAST9_PORT=8080
./last9-mcp-server

Server starts at http://localhost:8080/mcp.

Test with curl

The Streamable HTTP handler runs in stateless mode, so any request is served independently. An initialize handshake and an Mcp-Session-Id header are optional — clients that send them still work (the header is accepted and ignored), and clients can also skip straight to tools/list / tools/call. Every tool is an independent request/response query; the server issues no server→client notifications, so GET /mcp (the SSE stream) returns 405.

bash
# List tools — a session handshake is optional in stateless mode
curl -s -X POST http://localhost:8080/mcp \
    -H "Content-Type: application/json" \
    -H "Accept: application/json, text/event-stream" \
    -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}'

# Call a tool
curl -s -X POST http://localhost:8080/mcp \
    -H "Content-Type: application/json" \
    -H "Accept: application/json, text/event-stream" \
    -d '{
      "jsonrpc": "2.0",
      "id": 2,
      "method": "tools/call",
      "params": {
        "name": "get_service_logs",
        "arguments": {
          "service_name": "your-service-name",
          "lookback_minutes": 30,
          "limit": 10
        }
      }
    }'

Build from Source

bash
git clone https://github.com/last9/last9-mcp-server.git
cd last9-mcp-server
go build -o last9-mcp-server
LAST9_HTTP=true ./last9-mcp-server

LAST9_HTTP=true is for local development. For actual usage, the hosted HTTP endpoint is easier.


Tool Reference

Time Input

  • Absolute times (start_time_iso/end_time_iso, or time_iso) take precedence over lookback_minutes.
  • For relative windows: use lookback_minutes.
  • For absolute windows: use RFC3339/ISO8601 — 2026-02-09T15:04:05Z.
  • Legacy YYYY-MM-DD HH:MM:SS is accepted for compatibility only.

get_exceptions

  • limit (integer, optional): Max exceptions. Default: 20.
  • lookback_minutes (integer, optional): Default: 60.
  • start_time_iso / end_time_iso (string, optional): Absolute time range.
  • service_name (string, optional): Filter by service.
  • span_name (string, optional): Filter by span name.
  • env (string, optional): Filter by environment.

get_service_summary

  • start_time_iso / end_time_iso (string, optional)
  • env (string, optional): PromQL regex. Defaults to .*. Exact match needs anchors (e.g. ^prod$).
  • sort_by (string, optional): request_count (default), throughput_rpm, http_4xx_count, http_5xx_count, or grpc_error_count.
  • limit (integer, optional): Max ranked rows. Omit or 0 means 10; values above 100 clamp to 100.

get_service_environments

  • start_time_iso / end_time_iso (string, optional)

All other APM tools require an env value. Use "" if this returns empty.

get_service_performance_details

  • service_name (string, required)
  • lookback_minutes (integer, optional): Default: 60.
  • start_time_iso / end_time_iso (string, optional)
  • env (string, optional): Defaults to prod.

get_service_operations_summary

  • service_name (string, required)
  • lookback_minutes (integer, optional): Default: 60.
  • start_time_iso / end_time_iso (string, optional)
  • env (string, optional): Defaults to prod.

get_service_dependency_graph

  • service_name (string, optional)
  • lookback_minutes (integer, optional): Default: 60.
  • start_time_iso / end_time_iso (string, optional)
  • env (string, optional): Defaults to prod.

get_apm_service_deviations

  • service_name (string, optional): Omit for fleet scope; provide for one service and its operation correlations.
  • lookback_minutes (integer, optional): Current window. Default: 60.
  • start_time_iso / end_time_iso (string, optional): Explicit current window.
  • baseline_start_time_iso / baseline_end_time_iso (string, optional): Explicit baseline. Defaults to the immediately preceding equal-duration window.
  • datasource (string, optional): Restrict the comparison to one datasource.
  • env (string, optional): Defaults to prod.
  • max_services / max_operations (integer, optional): Default 10, max 10 each.

get_databases

  • env (string, optional): Filter by environment. Accepts a regular expression. Default: all.
  • lookback_minutes (integer, optional): Default: 60. Window may not exceed 7 days.
  • start_time_iso / end_time_iso (string, optional)

get_database_slow_queries

  • db_system (string, optional): e.g. postgresql, mysql, mongodb, redis.
  • host (string, optional): Database host (net_peer_name).
  • service_name (string, optional): Calling service name.
  • env (string, optional)
  • min_duration_ms (float, optional): Minimum query duration in ms.
  • lookback_minutes (integer, optional): Default: 60.
  • start_time_iso / end_time_iso (string, optional)
  • limit (integer, optional): Default: 20.

get_database_queries

  • db_system (string, optional)
  • host (string, optional)
  • service_name (string, optional)
  • env (string, optional)
  • lookback_minutes (integer, optional): Default: 60.
  • start_time_iso / end_time_iso (string, optional)
  • limit (integer, optional): Default: 20.

get_database_server_metrics

  • db_system (string, required): e.g. postgresql, mysql, mongodb, redis, aerospike.
  • host (string, optional)
  • lookback_minutes (integer, optional): Default: 60.
  • start_time_iso / end_time_iso (string, optional)

prometheus_range_query

  • query (string, required): The PromQL query.
  • start_time_iso / end_time_iso (string, optional): Defaults to last 60 min.
  • lookback_minutes (float, optional): Default: 60.

prometheus_instant_query

  • query (string, required)
  • time_iso (string, optional): Defaults to now.
  • lookback_minutes (float, optional)

prometheus_label_values

  • match_query (string, optional): PromQL filter.
  • label (string, required): Label name.
  • start_time_iso / end_time_iso (string, optional)

prometheus_labels

  • match_query (string, optional): PromQL filter.
  • start_time_iso / end_time_iso (string, optional)

get_logs

  • logjson_query (array, required): JSON pipeline query.
  • lookback_minutes (integer, optional): Default: 5.
  • start_time_iso / end_time_iso (string, optional)
  • limit (integer, optional): Server default: 5000.
  • index (string, optional): physical_index:<name> or rehydration_index:<block_name>.

For log-based service inventory, query physical_index_service_count first:

promql
sum by (name, service_name, env) (physical_index_service_count{destination="logs"})

Use service_name as ServiceName, env as the environment when present, and name as the physical index name. If name="default", omit index; for a non-default physical index selected by the user, pass index: "physical_index:<name>". If the backend rejects explicit physical index filtering, retry without index and report that explicit physical index filtering is unavailable for that backend.

get_service_logs

  • service_name (string, required)
  • lookback_minutes (integer, optional): Default: 60.
  • limit (integer, optional): Default: 20.
  • env (string, optional)
  • severity_filters (array, optional): e.g. ["error", "warn"]. OR logic.
  • body_filters (array, optional): e.g. ["timeout", "failed"]. OR logic.
  • start_time_iso / end_time_iso (string, optional)
  • index (string, optional)

Multiple filter types combine with AND. Each array uses OR internally. Use get_logs for broad aggregate counts first; use get_service_logs only after narrowing to a service/env/index and a small sample set.

get_log_attributes

  • lookback_minutes (integer, optional): Default: 15.
  • start_time_iso / end_time_iso (string, optional)
  • region (string, optional)
  • index (string, optional)

get_log_attributes_for_pipeline

  • pipeline (array, required): Prior filter stages to scope discovery, e.g. [{"type":"filter","query":{"$eq":["ServiceName","<service>"]}}].
  • lookback_minutes (integer, optional): Default: 15.
  • start_time_iso / end_time_iso (string, optional)
  • region (string, optional)
  • index (string, optional)

get_drop_rules

No parameters. Lists drop rules via GET /otel_settings/drop?region=....

add_drop_rule

  • name (string, required)
  • filters (array, required): Each filter: key, value, operator (equals/not_equals), conjunction (and).
  • Filter keys must use attributes["key_name"] or resource.attributes["key_name"] (required by the Last9 API).
  • Creates the rule via POST /otel_settings/drop?region=...&cluster_id=....

get_traces

Use for broad searches and aggregations. For exact trace ID lookup, use get_service_traces.

  • tracejson_query (array, required)
  • start_time_iso / end_time_iso (string, optional)
  • lookback_minutes (integer, optional): Default: 60.
  • limit (integer, optional): Default: 5000.

get_service_traces

Exactly one of trace_id or service_name is required.

  • trace_id (string, optional): Default lookback: 72 hours.
  • service_name (string, optional): Default lookback: 60 min.
  • lookback_minutes (integer, optional)
  • start_time_iso / end_time_iso (string, optional)
  • limit (integer, optional): Default: 10.
  • env (string, optional)

get_trace_attributes

  • lookback_minutes (integer, optional): Default: 15.
  • start_time_iso / end_time_iso (string, optional)
  • region (string, optional)

get_trace_attributes_for_pipeline

  • pipeline (array, required): Prior filter stages to scope discovery, e.g. [{"type":"filter","query":{"$eq":["ServiceName","<service>"]}}].
  • lookback_minutes (integer, optional): Default: 15.
  • start_time_iso / end_time_iso (string, optional)
  • region (string, optional)

get_trace_attribute_values

  • tag_name (string, required): Attribute name from get_trace_attributes (e.g. resource_department or attributes['http.method']).
  • pipeline (array, optional): Prior filter stages to scope the values; omit for global values.
  • region (string, optional)

get_trace_attribute_deviations

  • comparison_mode (string, required): latency, errors, or time.
  • service_name (string, required)
  • environment (string, required): Exact deployment.environment value.
  • operation (string, optional)
  • filters (array, optional): Trace JSON filter conditions.
  • candidate_attributes (array, optional): Maximum 8; omit for bounded discovery.
  • latency_threshold_ms (number, optional): Required for latency mode; rejected for other modes.
  • start_time_iso / end_time_iso (string, optional)
  • lookback_minutes (integer, optional): Default: 15. Maximum: 15.
  • baseline_start_time_iso / baseline_end_time_iso (string, optional): Required for time mode; non-overlapping and equal in duration to the target window.
  • minimum_cohort_size (integer, optional): Default: 100. Minimum: 20.
  • minimum_value_support (integer, optional): Default: 20. Minimum: 10.
  • limit (integer, optional): Default: 10. Maximum: 10.

Requires the companion backend capability to be enabled.

get_trace_waterfall

  • trace_id (string, required)
  • environment (string, optional)
  • start_time_iso / end_time_iso (string, optional)
  • lookback_minutes (integer, optional): Default: 4320 (72 hours).
  • selected_span_id (string, optional): Returns attributes, events, and links for that span only.
  • max_spans (integer, optional): Default: 500. Maximum: 1000.

Returns an investigation-evidence/v1 envelope; the waterfall is under data.

get_change_events

  • start_time_iso / end_time_iso (string, optional)
  • lookback_minutes (integer, optional): Default: 60.
  • service_name (string, optional)
  • env (string, optional)
  • event_name (string, optional): Call without this first to get available_event_names.

get_alert_groups

Configured Compass alert-group inventory for changeboard / label-coverage audits. Includes groups with zero rules and groups that are not firing. Does not return PromQL.

  • alert_group_name / alert_group_type / data_source_name (string, optional): Case-insensitive substring match.
  • team / tier (string, optional): Exact case-insensitive match on configured metadata.
  • label_key + label_value (string, optional): Must be set together. Exact case-insensitive match on one metadata.labels pair — both key and value.

Returns compact JSON {"count":N,"groups":[...]} with id, name, type, entity_class, team, tier, metadata.labels, and rule counts. Empty team / labels means unset.

get_alert_config

  • search_term (string, optional): Free-text search across name, group, data source, tags.
  • rule_name (string, optional)
  • severity (string, optional)
  • rule_type (string, optional): static or anomaly.
  • alert_group_name / alert_group_type / data_source_name (string, optional)
  • tags (array, optional): All must match (AND logic).

get_alerts

  • time_iso (string, optional): Evaluation time in RFC3339.
  • window (integer, optional): Lookback in seconds. Default: 900. Range: 60–86400.
  • lookback_minutes (integer, optional): Range: 1–1440.

get_alert_rule_state

  • start_time (integer, required): Unix epoch start of the range (inclusive).
  • end_time (integer, required): Unix epoch end of the range (inclusive).
  • step (integer, required): Resolution in seconds between samples. The number of samples ((end_time - start_time) / step + 1) is capped at 100.
  • alert_group_id (string, optional): Filter by alert group ID.
  • rule_name (string, optional): Regex filter on rule name.
  • alert_group_name (string, optional): Regex filter on alert group name.
  • label_filters (string, optional): Comma-separated key=value label filters.
  • state (string, optional): Filter by state (e.g. firing).

Returns a JSON map of rule_id -> [{timestamp, is_firing}]. A timestamp at which a rule is absent from the upstream response is reported as is_firing=0 — this means "not observed as firing", not a confirmed normal state.

get_notification_channels

No parameters. Returns all configured notification channels (Slack, PagerDuty, email, webhooks, etc.).

did_you_mean

  • query (string, required): The name to search for — partial, misspelled, or abbreviated.
  • type (string, optional): Restrict to entity type: service, environment, host, database, k8s_deployment, k8s_namespace, job.

Returns up to 3 closest matches with similarity scores. Use this before any tool call where the entity name is uncertain. If a previous call returned empty results, try this before retrying.

get_service_profile

  • service_name (string, required): Service to derive a telemetry profile for.
  • datasource (string, optional): Datasource name. Omit for the default.

Returns a short investigation brief followed by the full profile as raw JSON: signal presence (logs/traces/metrics as present, absent, or unknown), language and runtime, deployment environments, log signal_shape (log_format, severity_set, level_field), and a recommended ingest fix where one applies. Derived upstream and cached with a ~15 minute TTL.

Call it before any service-scoped investigation so tool selection matches the service's actual telemetry — skip trace tools when traces is absent, and when severity_set is none or partial parse severity from level_field in the log body rather than using severity_filters. metrics is always unknown and dependencies is unpopulated in v1. When logs and traces are both absent, confirm the name with did_you_mean before concluding the service is unmonitored.

list_dashboards

No parameters. Returns all custom dashboards in the org as a JSON array with id, name, and metadata.

get_dashboard

  • id (string, required): Dashboard UUID.
  • region (string, optional): Region for panel query population. Defaults to configured datasource region.

validate_dashboard

Read-only. Never creates or updates dashboards. Accept exactly one of dashboard_id or dashboard_definition.

  • dashboard_id (string, optional): Saved dashboard UUID to validate.
  • dashboard_definition (object, optional): Inline unsaved dashboard body (true dry run).
  • start_time_iso / end_time_iso (string, optional): Validation window (RFC3339). Must be ≤ 24h.
  • region (string, optional): Region for panel query execution.

Returns dashboard_validation/v1: per-panel lint + execute classification (data / no_data / invalid / error). Day-1 empty results classify as valid_no_data without diagnose probes.

create_dashboard

Net-new only. After this call returns dashboard.id, refine with update_dashboard — do not create again to add, trim, or fix panels.

  • dashboard (object, required): Dashboard definition with name and panels[]. Each panel requires name, version, layout (x, y, w, h), visualization.type, and queries[].
  • metadata (object, optional): Dashboard metadata — _category and _type fields (e.g. {"_category":"custom","_type":"metrics"}).

update_dashboard

Prefer this after create. Full replacement by id (same body as create).

  • id (string, required): Dashboard UUID to update.
  • dashboard (object, required): Full replacement dashboard body (same shape as create).
  • metadata (object, optional): Replacement metadata. Readonly system dashboards return a 403 error.

delete_dashboard

  • id (string, required): Dashboard UUID to delete. Readonly system dashboards cannot be deleted.

list_dashboard_snapshots

  • dashboard_id (string, required): Dashboard UUID whose snapshots to list.

Returns metadata only (id, name, expires_at, etc.). Use get_dashboard_snapshot for frozen panel data.

get_dashboard_snapshot

  • id (string, required): Snapshot UUID.

Returns the full frozen snapshot including dashboard_definition, panel_data, time_range, and variables.

delete_dashboard_snapshot

  • id (string, required): Snapshot UUID to delete.

get_profile_services

  • lookback_minutes / start_time_iso / end_time_iso (optional): Window; prefer lookback or explicit ISO bounds (default 60m).
  • region (string, optional): Region override.

Returns services that have profiling data in the window. Call this before get_flamegraph / get_top_functions / get_profile_summary.

get_flamegraph

  • service (string, required): Service name from get_profile_services.
  • profile_type (string, optional): cpu (default), alloc, or wall. Pin a type when comparing windows.
  • env / cluster / namespace / runtime (string, optional): Scope filters.
  • limit (number, optional): Max aggregated stack rows (default 1000, max 10000).
  • lookback_minutes / start_time_iso / end_time_iso / region (optional).

Returns a nested flamegraph tree (name / value / self / children). truncated: true means the API row limit was hit.

get_top_functions

Same filters as get_flamegraph. Returns self-sample ranking of hottest functions. May be truncated; check truncated.

get_profile_summary

Same filters as get_flamegraph. Returns a short natural-language triage of the profile for the service.

grafana_search_dashboards

  • query (string, optional): Title substring. Empty lists broadly (subject to the 5,000-row cap).

Returns {"dashboards":[…], "truncated":bool} with uid, title, uri, url, type, tags. Use uid with grafana_get_dashboard.

grafana_get_dashboard

  • uid (string, required): Grafana dashboard uid.
  • full_json (boolean, optional): When true, return raw Grafana JSON instead of the filtered summary.

Default summary: version, tags, templating variables, and each panel's type/datasource/gridPos/promQL targets. Unknown plugin panel types appear in unsupportedPanelTypes.

grafana_list_folders

No parameters. Returns the folder tree.

grafana_list_folder_dashboards

  • folder_uid (string, required): Grafana folder uid.

Returns {"dashboards":[…], "truncated":bool} for dashboards in that folder (paginated up to 5,000).

grafana_list_datasources

No parameters. Returns a safe projection of datasources (no credential fields).


Testing

See TESTING.md for integration test setup and instructions.


MseeP.ai Security Assessment Badge

Установка

TypingMind
Требования:

Node.js 18+

{
  "mcpServers": {
    "last9-last9-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@last9/mcp-server"
      ]
    }
  }
}

Используйте Last9 MCP Server MCP с разными моделями ИИ

TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому после подключения Last9 MCP Server вы можете использовать их с разными моделями ИИ в TypingMind, не настраивая подключение отдельно для каждой модели. Эта интеграция MCP работает локально на вашем устройстве через коннектор MCP TypingMind.

Руководство по настройке локального коннектора

Выберите этот способ, если серверу MCP нужен доступ к локальным файлам, приложениям или закрытым ресурсам на вашем компьютере.

1

Откройте настройки MCP

В TypingMind откройте «Настройки», затем «Расширенные настройки», перейдите в раздел «Протокол контекста модели» и выберите «Настроить коннектор».

  1. Откройте TypingMind в браузере.
  2. Нажмите значок настроек.
  3. Перейдите в «Расширенные настройки».
  4. Откройте раздел «Протокол контекста модели».
  5. Нажмите «Настроить коннектор» и выберите «Это устройство».
Экран настройки коннектора MCP в TypingMind с выбранным вариантом «Это устройство»
2

Выполните команду запуска коннектора

Выберите «Это устройство», скопируйте команду из TypingMind и выполните её в терминале. Не останавливайте процесс, пока используете MCP.

  1. Скопируйте команду настройки, показанную в TypingMind.
  2. Откройте «Терминал» в macOS или Windows Terminal в Windows.
  3. Вставьте и выполните команду.
  4. Если в терминале появится запрос на подтверждение, подтвердите установку пакета.
  5. Не закрывайте окно терминала и не останавливайте процесс, пока используете инструменты MCP.
3

Добавьте сервер Last9 MCP Server

Когда статус коннектора сменится на «Готов», нажмите «Изменить серверы» и вставьте конфигурацию сервера MCP.

  1. Дождитесь, пока статус коннектора сменится на «Готов».
  2. Нажмите «Изменить серверы».
  3. Вставьте конфигурацию сервера MCP Last9 MCP Server.
  4. Сохраните список серверов.
  5. Обновите статус, если хотите убедиться, что коннектор по-прежнему готов к работе.
Настройки MCP в TypingMind с активным сервером и кнопкой «Изменить серверы»
{
  "mcpServers": {
    "last9-last9-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@last9/mcp-server"
      ]
    }
  }
}
4

Используйте подключение с разными моделями

Сохраните список серверов, откройте раздел «Плагины», включите инструменты MCP для Last9 MCP Server, затем выберите любую поддерживаемую модель ИИ в TypingMind и используйте инструменты в чате или назначьте их ИИ-агенту.

  1. Откройте страницу «Плагины» в TypingMind.
  2. Включите инструменты MCP для Last9 MCP Server.
  3. Начните чат и выберите модель ИИ, которую хотите использовать.
  4. Используйте инструменты MCP в чате или назначьте их ИИ-агенту.
  5. При необходимости переключайтесь на другую модель ИИ без повторного подключения MCP.
Чат TypingMind с включёнными инструментами MCP и выбранной ИИ-моделью
Можете использовать Last9 MCP Server, чтобы помочь мне с этой задачей?
Last9 MCP Server
Конечно. Я всё прочитал.
Вот что я нашёл с помощью Last9 MCP Server.

Часто задаваемые вопросы

Для чего используется сервер MCP Last9 MCP Server?

Last9 MCP Server — это сервер MCP, который позволяет совместимым ИИ-клиентам подключаться к внешним инструментам и получать контекст. В TypingMind достаточно один раз добавить этот сервер MCP, чтобы его инструменты стали доступны в вашем рабочем пространстве с ИИ.

Можно ли использовать сервер MCP Last9 MCP Server с несколькими ИИ-моделями в TypingMind?

Да. TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому вы можете использовать Last9 MCP Server с разными ИИ-моделями, например Claude, ChatGPT, Gemini или другими моделями, настроенными в TypingMind, без отдельной настройки сервера MCP для каждой модели.

Зачем использовать сервер MCP Last9 MCP Server с TypingMind?

TypingMind — один из лучших интерфейсов для чата с LLM: он объединяет разные ИИ-модели, промпты, плагины, ИИ-агентов, ключи API и инструменты MCP в одном рабочем пространстве. Подключив Last9 MCP Server, вы сможете использовать его инструменты MCP с моделями, которые предпочитаете, и поддерживать порядок в чатах TypingMind.

Как подключить сервер MCP Last9 MCP Server к TypingMind?

Last9 MCP Server работает через локальный коннектор MCP TypingMind. Этот вариант лучше всего подходит, когда серверу MCP нужен доступ к локальным файлам, настольным приложениям, инструментам командной строки или закрытым ресурсам на вашем компьютере.

Какие инструменты предоставляет сервер MCP Last9 MCP Server в TypingMind?

Last9 MCP Server предоставляет возможности MCP, которые можно включить на странице «Плагины» в TypingMind и использовать в чате или назначить ИИ-агентам.

Нужно ли передавать TypingMind свои ключи API для использования сервера MCP Last9 MCP Server?

Нет. TypingMind ориентирован прежде всего на локальную работу и позволяет вам контролировать выбор провайдеров моделей, ключи API, промпты и конфигурацию MCP. Если Last9 MCP Server требует аутентификации, при создании подключения добавьте необходимые заголовки, настройки OAuth или локальную конфигурацию для этого сервера MCP.

Похожие MCP-серверы

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇