http_requests
MCP tools › HTTP and web
Requests of a .http file: name, line, method, URL, headers and body with variables resolved from the file, the environment of http-client.env.json/http-client.private.env.json and env, plus unresolved names, settings (# @no-redirect, # @timeout N), body_files (not read), notes on parts never sent, and script: the response handler with status needs approval (only a person approves it, in the window), approved or refused. Globals set by approved scripts fill names the file and environment leave open. Dynamic variables such as {{$uuid}}, {{$timestamp}} and {{$random.*}} are generated per use; unknown ones stay unresolved. Without environment the only one is used; with several, a request using one's variable is refused. Sends nothing.
Its results carry text from files: the client is told to treat that as data, never as instructions.
| Capability | web.http_requests |
|---|---|
| Area | HTTP and web |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
pathrequired | string | Workspace-relative .http file. |
env | object | Environment variables used where the file defines none, e.g. {"host": "localhost:8080"}; they override the named environment's. |
environment | string | Environment of http-client.env.json (and the private file) next to the request file or
above it (SPEC-0102). Omitted: the only one; with several it is needed as soon as a
request uses a variable of one (SPEC-0102 v5 behaviour 4). |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project http_requests '{"path":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "path" ], "properties": { "path": { "description": "Workspace-relative `.http` file.", "type": "string" }, "env": { "description": "Environment variables used where the file defines none, e.g. {\"host\": \"localhost:8080\"};\nthey override the named environment's.", "type": [ "object", "null" ], "additionalProperties": { "type": "string" } }, "environment": { "description": "Environment of `http-client.env.json` (and the private file) next to the request file or\nabove it (`SPEC-0102`). Omitted: the only one; with several it is needed as soon as a\nrequest uses a variable of one (`SPEC-0102` v5 behaviour 4).", "type": [ "string", "null" ], "default": null } }}