read_project_oas_f7zfy0
Read the project's OpenAPI Spec file.
Give the assistant your project's current OpenAPI Spec — including the files behind every $ref — so generated code matches the API you actually ship.
LABSCO SUMMARY
The spec is pulled from the Apifox project on demand and refreshed on request, so an assistant writing a request body is reading the definition your team edits rather than a file committed months ago. $ref targets resolve through their own call, which keeps a spec that has been split across files fully readable.
Three tools over one Apifox project's OpenAPI Spec: read the spec, read the files its $ref entries point at, and re-download the latest copy from the server.
An Apifox access token in APIFOX_ACCESS_TOKEN and the id of the project to read. npx on your PATH.
Add the configuration to your client
USE CASES
The spec is read from the Apifox project rather than from a copy in the repository, and $ref targets resolve through their own call so a split spec stays fully readable.
Refresh pulls the current spec down from the server, so the next read reflects an edit made minutes ago rather than the copy fetched at startup.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
read_project_oas_f7zfy0Read the project's OpenAPI Spec file.
read_project_oas_ref_resources_f7zfy0Read the files referenced by $ref inside the project's OpenAPI Spec; several can be fetched in one call.
refresh_project_oas_f7zfy0Download the project's latest OpenAPI Spec from the server.
BEFORE YOU INSTALL
3 tools when we connected. Tool names carry a per-instance suffix, so yours will end differently. Two tools read a project's OpenAPI spec and one refreshes the local cache; each configured project ID adds its own set of three.
APIFOX_ACCESS_TOKEN in your environment
All 4 documented setups run the server on your machine.
CONTEXT COST
Rated by the size of the 3 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
{
"mcpServers": {
"API docs": {
"command": "npx",
"args": [
"-y",
"apifox-mcp-server@latest",
"--project-id=<YOUR_PROJECT_ID>"
],
"env": {
"APIFOX_ACCESS_TOKEN": "<YOUR_APIFOX_ACCESS_TOKEN>"
}
}
}
}{
"mcpServers": {
"API docs": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"apifox-mcp-server@latest",
"--project-id=<YOUR_PROJECT_ID>"
],
"env": {
"APIFOX_ACCESS_TOKEN": "<YOUR_APIFOX_ACCESS_TOKEN>"
}
}
}
}