updatePet
Update an existing pet. - Update an existing pet by Id.
updatePetBody必填x-hapi-auth-state
ai.com.mcp由 mcp.com.ai 發布官方發布者v0.6.0更新於 Oct 24, 2026
Swagger Petstore API (v1.0.27) as MCP for testing and prototyping powered by the HAPI MCP server
遠端 MCP 端點,包裝 Swagger Petstore 範例 API,讓助理管理寵物、訂單、庫存與使用者,用於測試與原型開發。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/ai.com.mcp%2Fpetstore/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"petstore": {
"type": "http",
"url": "https://petstore.run.mcp.com.ai/mcp"
}
}
}Stop rewriting systems for AI. Instantly turn your APIs into MCP servers.
HAPI MCP lifts your OpenAPI catalog into MCP tools automatically, keeping design (OAS/Arazzo) and runtime (agents/LLMs) cleanly separated. Your existing APIs become AI-ready tools—no new business logic, no sidecar servers, no rework.
Pick your API spec
Run a single command
Use instantly
Do we need to rewrite our services?
No. HAPI MCP lifts your existing OpenAPI specs directly into MCP tools. Your auth, validation, and business rules remain unchanged.
Is this just another MCP server?
It’s the Headless API model: your API becomes the runtime. HAPI Server reflects it as MCP; runMCP scales it; OrcA orchestrates it. No duplicate logic.
Which clients can consume the tools?
Any MCP client: ChatGPT, Claude, QBot, chatMCP, bespoke orchestrators—vendor-neutral by design.
How do we keep control and compliance?
Your API remains the single source of truth. Policies, RBAC, rate limits, and audit logs flow through automatically; no shadow logic.
What about security and privacy?
Scoped credentials, per-tool permissions, and auditable calls are inherited from your API layer. HAPI adds guardrails and observability for regulated environments.
How fast can we get started?
You can transform your first API into an MCP tool in less than five minutes. The HAPI CLI makes it quick and painless.
Install HAPI CLI from latest release: https://github.com/la-rebelion/hapimcp/releases
Transform your OpenAPI spec into an MCP server with a single command:
Start using your MCP tools with any compatible client!
Explore the documentation for advanced usage and best practices.
Contributions are welcome! Open a discussion or submit a pull request on GitHub: https://github.com/la-rebelion/hapimcp
HAPI MCP is licensed under the MIT License. See LICENSE for details.
來源:README.md,提交 1873ff7
Update an existing pet. - Update an existing pet by Id.
updatePetBody必填x-hapi-auth-stateAdd a new pet to the store. - Add a new pet to the store.
addPetBody必填x-hapi-auth-stateFinds Pets by status. - Multiple status values can be provided with comma separated strings.
status必填x-hapi-auth-stateFinds Pets by tags. - Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
tags必填x-hapi-auth-stateFind pet by ID. - Returns a single pet.
petId必填x-hapi-auth-stateUpdates a pet in the store with form data. - Updates a pet resource based on the form data.
namepetId必填statusx-hapi-auth-stateDeletes a pet. - Delete a pet.
petId必填api_keyx-hapi-auth-stateUploads an image. - Upload image of the pet.
petId必填uploadFileBodyx-hapi-auth-stateadditionalMetadataReturns pet inventories by status. - Returns a map of status codes to quantities.
x-hapi-auth-statePlace an order for a pet. - Place a new order in the store.
placeOrderBodyx-hapi-auth-stateFind purchase order by ID. - For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.
orderId必填x-hapi-auth-stateDelete purchase order by identifier. - For valid response try integer IDs with value < 1000. Anything above 1000 or non-integers will generate API errors.
orderId必填x-hapi-auth-stateCreate user. - This can only be done by the logged in user.
createUserBodyx-hapi-auth-stateCreates list of users with given input array. - Creates list of users with given input array.
x-hapi-auth-statecreateUsersWithListInputBodyLogs user into the system. - Log into the system.
passwordusernamex-hapi-auth-stateLogs out current logged in user session. - Log user out of the system.
x-hapi-auth-stateGet user by user name. - Get user detail based on username.
username必填x-hapi-auth-stateUpdate user resource. - This can only be done by the logged in user.
username必填updateUserBodyx-hapi-auth-stateDelete user resource. - This can only be done by the logged in user.
username必填x-hapi-auth-state已滿足適用檢查項的 100%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
API Spec (swagger.json) → HAPI CLI → Usable Tool (AI-ready) ← MCP Clients[ OpenAPI / Swagger ] [ HAPI CLI ] [ MCP Server ] (Your API) → (Transform) → (Usable Tool) ↑ ↑ | | [ ChatGPT ] [ runMCP ] [ Claude ] [ OrcA ] [ QBot ] [ chatMCP] [ Agents ]hapi serve path/to/your/swagger.json --headless