Skip to main content
Glama
harveyzhang

zhiyan-detective

by harveyzhang

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DETECTIVE_HOMENoDefault directory for the usage ledger and cache. Defaults to ~/.zhiyan-detective.
DETECTIVE_LEDGERNoPath to the JSON usage ledger. Every real search is recorded before the request; requests stop when the cap is exceeded. Point multiple entry points to the same file to share one ledger.
DETECTIVE_DAY_CAPNoDaily search cap. Can only be lowered. Default is 1200.
DETECTIVE_CACHE_DIRNoDirectory for cached search results. The same query is reused within 24 hours without spending quota. Defaults to $DETECTIVE_HOME/cache.
DETECTIVE_CASES_DIRNoOptional directory where closed case files are stored as JSON, up to 500, so report links remain available after restart. Text recognized from screenshots is not stored.
DETECTIVE_MONTH_CAPNoMonthly search cap. Can only be lowered. Default is 5000.
DETECTIVE_WSA_KEY_FILENoPath to a private file containing a line like TENCENTCLOUD_WSA_APIKEY=<your key>; alternative to setting TENCENTCLOUD_WSA_APIKEY directly.
TENCENTCLOUD_WSA_APIKEYNoTencent Yuanbao Search API key used by the MCP server.
DETECTIVE_MCP_DAILY_CASESNoMaximum number of cases per process per day for the MCP server. Can only be lowered. Default is 60.

Instructions

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

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources