Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NAI_TOKENYesNovelAI 令牌(必需)。NovelAI 持久令牌(`pst-` 开头,账户设置 → API 令牌创建),或短期用户访问令牌。
NAI_TAG_DBNotag 词库路径。server 通过 env `NAI_TAG_DB` 指词库(默认项目根 `tag_vectors.db`)。tag_vectors.db
NAI_EMBEDDING_URLNoembeddings 端点(server 与填充脚本共用)。配置 embeddings 后自动启用余弦语义检索。
NAI_EMBEDDING_MODELNoembeddings 模型名(server 与填充脚本共用)。
NAI_MCP_WORKFLOW_DIRNo工作流目录。工作流存储为 `nai_mcp/workflows/<name>.json`(env `NAI_MCP_WORKFLOW_DIR` 可改目录)。nai_mcp/workflows/
NAI_EMBEDDING_API_KEYNoembeddings 端点的可选 API key(server 与填充脚本共用)。
NAI_EMBED_CONCURRENCYNo填充性能调优:并发数。4
NAI_EMBED_BATCH_TOKENSNo填充性能调优:请求打满模型 token 上限的批大小(默认 32k 输入模型 24000)。24000
NAI_EMBED_CHARS_PER_TOKENNo填充性能调优:每 token 字符数估算。1.0

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