Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HSNIFF_ROOTNoTells the server where `schema.sql`, `scripts/` and `config.json` live when it is not started from the checkout.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

HotspotSniffer records iPhone app traffic through a Windows hotspot and stores service-level records in SQLite. It is Windows-only and must be used only with devices and accounts you are authorized to inspect.

Prerequisites:

  • Windows 11 with Wireshark + Npcap installed.

  • The hotspot, passive capture and mitmproxy started once with hsniff up.

  • iPhone connected to the hotspot, HTTP proxy set to 192.168.137.1:8080, and the HotspotSniffer CA installed and fully trusted in Certificate Trust Settings.

Recommended workflow:

  1. get_status to verify the hotspot/capture/proxy.

  2. Ask the user for the app name, call set_app, and echo the confirmation.

  3. When the user reports a service or submenu, call start_service, then tell them to operate it and wait for it to finish.

  4. After the user says it is done, call stop_service. This waits for a pcap rotation (10-20s), parses, generates a Markdown report and saves a summary.

  5. Report the record id, counts, key endpoints and report path, then wait for the next service.

  6. Use list_services, get_service_summary, get_events and read_report for review. Use analyze_service to regenerate a report.

Never invent app/service names. Never change a payment password, report a card lost, or upload biometric data just to capture traffic unless the user explicitly asks and understands the real-world effect.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_statusB

Get hotspot, passive capture, mitmproxy, current app and recording status.

set_appA

Confirm and remember the target app name before recording any service.

Call this when the user reports an app name, then echo the returned message back to the user and ask for the first service name.

start_serviceA

Start one service/submenu record.

Args: name: Service or submenu name reported by the user. app: Optional app name; defaults to the remembered app. parent: Optional parent service for a second-level menu. focus: Optional comma-separated domain suffixes for the focused report, e.g. "example.edu.cn,example.org". note: Optional note stored with the record.

The user must click the service only after this returns. Tell them to wait until the service finishes, then reply "已操作" (or equivalent) before calling stop_service.

stop_serviceA

Stop the open service record, parse the pcap, generate a report and save a summary.

This call can take 10-20 seconds because it waits for the capture file to rotate. Report the returned counts, focus endpoints and report path to the user, then wait for the next service.

list_servicesB

List service records, optionally filtered by app name.

get_service_summaryB

Read the stored summary for one service record.

analyze_serviceB

Regenerate a report for a session id or a relative time window such as "10m".

get_eventsC

Read event metadata for a record. Query strings are stripped from URLs.

parse_captureB

Incrementally parse new pcap files into SQLite.

start_proxyB

Start mitmproxy and the local CA download page (no admin required).

stop_proxyA

Stop mitmproxy and the local CA download page.

get_proxy_statusB

Get mitmproxy and certificate-page status.

list_appsB

List apps that have service records.

Prompts

Interactive templates invoked by user choice

NameDescription
capture_service_workflowGuide an agent through the app -> service -> record workflow.
analyze_captureGuide an agent through reviewing a stored service record.

Resources

Contextual data attached and managed by the client

NameDescription
status_resourceCurrent hotspot, capture, proxy and recording status.
services_resourceAll service records.
schema_resourceSQLite schema used by HotspotSniffer.

TDQS

A3.6/5.0

Scored across 13 tools

Disambiguation4/5

Most tools map to a distinct action on a distinct resource (service lifecycle, proxy lifecycle, capture parsing, queries). Two mild overlaps exist: get_status already includes mitmproxy status while get_proxy_status reports it again, and analyze_service vs get_service_summary both concern a service's report output. Descriptions mostly clarify these boundaries, so misselection risk is low but not zero.

Naming Consistency5/5

Every tool follows a consistent snake_case verb_noun pattern (get_, set_, start_, stop_, list_, parse_, analyze_). Resource names are reused predictably (service, proxy, app, events), making the naming scheme fully predictable.

Tool Count5/5

13 tools sits comfortably in the well-scoped range and each one earns its place: capture lifecycle, proxy control, and reporting/query each need their own operations. No filler or redundant tools that could be collapsed without losing function.

Completeness4/5

The session lifecycle (set app -> start -> stop -> list/summary/analyze/events) plus proxy control and capture parsing covers the core workflow end to end. Minor gaps remain: no delete/prune of old service records, no tool to read the full generated report body (only its path and summary), and no way to inspect raw pcap file inventory.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues