Skip to content

MCP Tools and Clients

balakrishnagatla edited this page Nov 30, 2026 · 2 revisions

MCP Tools and Clients

Tools

Tool Purpose
scan All discoveries, plus what's new or resolved since the last scan
find_cost_savings Cost savings opportunities with totals by team
find_incidents Reliability alerts, each with suspected changes
what_changed Deploys and write events in the last N hours
search_logs Log search, secrets masked
list_findings Tracked findings, filter by status or category
acknowledge_finding Mark a finding as seen (infralens' own state, never the cloud)
suppress_finding Hide a finding with a reason, e.g. a legal-hold backup
savings_report Cost savings captured and still available
list_providers Installed and enabled providers

Prompts: morning_check (daily walkthrough) and investigate(service) (incident deep dive).

Claude Desktop

claude_desktop_config.json:

{ "mcpServers": { "infralens": { "command": "infralens", "args": ["serve"],
    "env": { "INFRALENS_PROVIDERS": "aws", "AWS_PROFILE": "readonly" } } } }

Claude Code

claude mcp add infralens -- infralens serve                                  # local, stdio
claude mcp add --transport http infralens https://<your-host>/mcp \
  --header "Authorization: Bearer $INFRALENS_KEY"                           # hosted, a named key

ChatGPT

Host the server (Deploying), then add https://<your-host>/mcp as a custom connector in Developer Mode.

Local models

Ollama isn't an MCP client itself. Put one in front of it, such as ollmcp, Goose or Open WebUI, and pick a model that supports tool calling.

HTTP server

infralens keys create claude-desktop        # one key per agent or team; shown once (scope: read)
infralens keys create sre-team --scope state   # can also acknowledge/suppress findings
infralens serve --http --port 8080          # binds 127.0.0.1 unless --host is given
curl localhost:8080/healthz                 # no key needed

Every request to /mcp needs Authorization: Bearer <key>. The server refuses to start without a key. The audit log records which key made each call; a client can add X-Infralens-On-Behalf-Of: <person> to name the human it acts for. The shared INFRALENS_API_TOKEN still works, as a key named default with the state scope.

Things to ask

  • "Where can we save money? Group it by team."
  • "Why is payment-api failing? What changed right before it started?"
  • "Search the payment-api logs for 'pool exhausted' in the last 30 minutes."
  • "Suppress the snapshot finding; it's our legal-hold backup."
  • "How much have we saved since we started using infralens?"

Clone this wiki locally