request-mcp
v0.6.1MCP server for Punica Request: look up the exact API of its packages, read the rules and check code that uses them.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_guide How to use Punica Request
The rules of Punica Request 3: the packages and what each exports, how a client is created and a request sent, what it resolves and rejects with, the middlewares and their order, how to write a middleware or an adapter, with working examples.
get_migration_guide From Punica Request 2.x to 3.0
How to change code written for Punica Request 2.x (new RequestAPI, APIFetch, middleware classes, requestMiddlewares / responseMiddlewares, response.payload) to 3.0: every renamed or removed name with its replacement, before and after examples, and the behaviour that changed.
search_api Find Punica Request exports
Finds exports of the Punica Request packages (@punica/request, @punica/request-fetch, @punica/request-http, @punica/request-middleware) by name or by words in their documentation ("cache", "cookie", "timeout"). Without a query: every export.
| Parameter | Type | Description |
|---|---|---|
query | string | Words to look for |
get_api The declaration of an export
The exact TypeScript declaration and documentation of one or more exports, such as createClient, ClientConfig, RequestOptions, RequestContext, cache or refreshToken, read from the installed packages. A function or middleware comes with the Options or Config types it takes; a guard such as isRequestError with the class it checks for.
| Parameter | Type | Description |
|---|---|---|
names * | array | Export names |
validate_code Check code that uses Punica Request
Checks TypeScript or JavaScript that uses Punica Request: imports the packages do not export, the API of 2.x with its replacement in 3.x, middlewares in the wrong order, and bodies that are set twice. Returns each problem with its line and a fix.
| Parameter | Type | Description |
|---|---|---|
code * | string | The code to check |