Skip to main content
Glama
hizml
by hizml

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DEBUGNoSet to 1 to emit logs to stderr
YAPI_TOKENYesFormat projectId:tokenValue, from the YApi project Settings → token
YAPI_BASE_URLYesYApi host, e.g. http://yapi.example.com

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
yapi_list_projectsA

列出当前 token 配置的 YApi 项目信息(项目 ID、名称、描述)。无参数。

yapi_get_categoriesB

获取指定项目的接口分类列表(分类 ID、名称,以及每个分类下的接口概要)。

yapi_search_apisA

在项目内按关键词搜索接口(匹配 title/path,可选按 method 过滤),返回接口列表。

yapi_get_api_detailsA

获取接口详细信息(请求参数、请求头、请求体类型与结构、响应体等)。

yapi_save_apiA

创建或更新 YApi 接口。带 api_id 走更新(/api/interface/up),不带走创建(/api/interface/add)。至少需提供 project_id 与 catid。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/hizml/yapi-mcp'

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