Back to MCP directory
publicPublicdnsLocal runtime

openapi-typescript

`openapi-typescript` 是一个用于在 TypeScript 中集成 OpenAPI 模式的工具。它提供了两个主要功能:1) 从静态 OpenAPI 模式生成 TypeScript 类型,帮助开发者更高效地定义和管理 API 类型;2) 提供基于 OpenAPI 模式的自动生成的 TypeScript 超快速获取工具,简化 API 请求的编写。该项目由多个赞助商支持,并鼓励开发者通过贡献代码或文档来参与项目。此外,项目还依赖 Vitepress、Cloudflare Pages 和 Algolia 等技术来提供文档站点的构建、托管和搜索功能。

article

README

openapi-typescript

Tools for consuming OpenAPI schemas in TypeScript.

📦 Packages

openapi-typescript
Generate TypeScript types from static OpenAPI schemas

openapi-fetch
Ultra-fast fetching for TypeScript generated automatically from your OpenAPI schema.

⭐ Sponsors

🥇 Gold Sponsors

Zuplo

🥈 Silver Sponsors

nanabit

Backers

@customerio on GitHub @shaunpersad on GitHub @yoshi2no on GitHub @siketyan on GitHub

Become a sponsor by supporting this project on OpenCollective!

🤝 Contributing

Contributions are appreciated and welcome! See the appropriate guide for each package:

♥️ Thanks

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client