Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GH_TOKENNoAlternative GitHub token environment variable used if GITHUB_TOKEN is not set.
GITHUB_TOKENNoGitHub token used to access the GitHub API. Default token environment variable name is GITHUB_TOKEN; can also come from GH_TOKEN or `gh auth token`.
GHSTARS_INDEXNoPath to the SQLite index. Empty uses the default index.db in the config directory. Equivalent to [store] index.
GHSTARS_STORENoDirectory where ghstars stores the generated Markdown files. Equivalent to [store] dir in config.toml.
GHSTARS_CONFIGNoPath to the ghstars config.toml file. Overrides the default config location.
OPENAI_API_KEYNoOptional API key read by the default [llm] api_key_env setting when using an OpenAI-compatible LLM endpoint.
GHSTARS_LLM_KEYNoAPI key for the optional LLM endpoint. Equivalent to an API key set for [llm].
GHSTARS_LLM_BASENoBase URL of the optional LLM API used for Chinese scene tags and descriptions. Equivalent to [llm] base.
GHSTARS_LLM_MODELNoModel name for the optional LLM endpoint. Equivalent to [llm] model.
GHSTARS_GITHUB_USERNAMENoGitHub username whose starred repositories should be synced. Equivalent to [github] username.

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

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
stars_searchA

检索本地已收藏的 GitHub 星标项目。

这是查「我 star 过什么」的首选工具:支持中文场景词(如「视频制作」「简历」)、 项目名、技术标签。返回项目名、分类、中文标签、描述、star 数、本地文件路径。

Args: query: 检索词,中英文均可。 limit: 返回条数上限。 category: 只在该分类内检索(如 ai-agents)。 include_archived: 是否包含已取消 star 的历史项目。

stars_getA

按仓库名查看单个已收藏项目的完整信息(owner/name,大小写不敏感)。

Args: repo: 仓库全名,如 owner/name;也接受部分匹配。

stars_statsA

查看星标库概况:总数、已归档数、各分类计数、索引位置。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 3 tools

Disambiguation5/5

The three tools target clearly distinct operations: fetch one starred repo's details, search the local star index, and show library statistics. Search returns summaries while get returns full per-repo information, so overlap is minimal and the roles are easy to distinguish.

Naming Consistency5/5

All tool names use the same stars_ prefix with snake_case suffixes, giving a predictable resource/action pattern. Although stats is a noun rather than a verb, it is still consistent with the namespaced convention.

Tool Count5/5

Three tools is a focused, well-scoped read-only surface for browsing a local starred-project index. Each tool earns its place: one for lookup, one for search, and one for overview statistics.

Completeness4/5

The core read operations are covered: search, single-repo detail, and aggregate stats. Minor gaps remain, such as explicitly listing all stars or categories and refreshing the local index from GitHub, but agents can work around most of these via search and stats.

Maintenance

ActivityMaintained
ResponsivenessNo issues