Skip to main content
Glama

proxy_search_traffic

Search captured HTTP/HTTPS traffic across URLs, headers, and body content to analyze network activity and identify specific requests.

Instructions

Full-text search across URLs, headers, and body previews of captured traffic.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch string
limitNoMax results (default: 20)

Implementation Reference

  • The implementation of the `proxy_search_traffic` MCP tool, which utilizes `proxyManager.searchTraffic` to perform a search and returns summarized results.
    server.tool(
      "proxy_search_traffic",
      "Full-text search across URLs, headers, and body previews of captured traffic.",
      {
        query: z.string().describe("Search string"),
        limit: z.number().optional().default(20).describe("Max results (default: 20)"),
      },
      async ({ query, limit }) => {
        const results = proxyManager.searchTraffic(query).slice(0, limit);
        const summaries = results.map((t) => ({
          id: t.id,
          timestamp: t.timestamp,
          method: t.request.method,
          url: t.request.url,
          status: t.response?.statusCode ?? null,
          duration: t.duration ?? null,
        }));
    
        return {
          content: [{
            type: "text",
            text: truncateResult({
              status: "success",
              query,
              matches: summaries.length,
              results: summaries,
            }),
          }],
        };
      },
    );
Install Server

Other Tools

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/yfe404/proxy-mcp'

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