mcp-server
v1.0.2Model Context Protocol server for Hoppscotch API testing platform
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
reauth
Force a fresh Hoppscotch sign-in: clears the cached token and starts a new browser device-login flow, instead of waiting for the current token to expire. Use when the session is wrong/expired or to switch accounts. Returns the new session on success, or — if the browser login is still pending — tells you to finish sign-in and then retry the original operation or invoke a regular Hoppscotch tool; do not call reauth again while that login is active. When a static access token is configured (HOPPSCOTCH_ACCESS_TOKEN, or an embedder-supplied accessToken), the cached browser session is still cle…
list_user_collections
List all user collections (personal collections). Returns root-level collections of the specified type (REST or GraphQL).
| Parameter | Type | Description |
|---|---|---|
cursor | string | Pagination cursor for loading more results |
limit | number | Number of results to return (default: 25, max: 100) |
type | string | Type of collections to list (REST or GQL for GraphQL). Optional — defaults to REST when omitted. |
get_user_collection
Get the envelope of a specific user collection — id, title, parent id, and the opaque data JSON string. Does NOT include nested requests or child collections in the response; use list_user_requests or list_user_collections (with a cursor) to read those explicitly. Self-hosted only: Cloud fails to serialize the data field.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | ID of the collection to retrieve |
create_user_collection
Create a new user collection (folder or request). Can be created at root level or as a child of another collection.
| Parameter | Type | Description |
|---|---|---|
title * | string | Name of the collection |
data | string | JSON string of request data (for request collections, not folders) |
parentCollectionId | string | ID of parent collection (omit for root-level collection) |
type | string | Type of collection (REST, or GQL for GraphQL). Optional — defaults to REST when omitted. |
update_user_collection
Update a user collection (rename, modify request data, etc.)
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | ID of the collection to update |
data | string | Updated JSON request data |
title | string | New title for the collection |
type | string | Accepted for compatibility and ignored: the collection ID alone determines the target. |
delete_user_collection
Delete a user collection and all its children. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | ID of the collection to delete |
type | string | Accepted for compatibility and ignored: the collection ID alone determines the target. |
export_user_collection
Export user collection(s) as JSON. Can export a specific collection or all collections of a type.
| Parameter | Type | Description |
|---|---|---|
collectionId | string | ID of specific collection to export (omit to export all collections) |
type | string | Type of collections to export. Optional — defaults to REST when omitted. |
import_user_collection
Import collection(s) from JSON string. The JSON should be in Hoppscotch export format.
| Parameter | Type | Description |
|---|---|---|
jsonString * | string | JSON string of the collection to import (Hoppscotch format) |
parentCollectionId | string | ID of parent collection (omit to import at root level) |
type | string | Type of collection being imported. Optional — defaults to REST when omitted. |
list_user_environments
List all user environments with their variables.
create_user_environment
Create a new user environment with variables.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the environment (e.g., "Development", "Staging", "Production") |
variables * | array | Array of environment variables |
update_user_environment
Update an existing user environment (rename or modify variables). Providing variables REPLACES the entire list (not a per-variable merge) — include every variable you want to keep; an omitted field is left unchanged.
| Parameter | Type | Description |
|---|---|---|
environmentId * | string | ID of the environment to update |
name | string | New name for the environment |
variables | array | Updated array of environment variables |
delete_user_environment
Delete a user environment. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
environmentId * | string | ID of the environment to delete |
list_team_collections
List root-level collections in a team workspace. Returns only top-level collections; use get_team_collection to browse into sub-collections. The backend GQL field accepts cursor-only pagination — there is no per-call limit knob.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Pagination cursor |
teamId | string | ID of the team (optional if default team is configured) |
get_team_collection
Get a team collection by ID, including its direct children (sub-collections). Works at any nesting depth. Use to browse the collection hierarchy one level at a time, or jump directly to any collection by ID. Note: the backend caps direct children at about 10 per response, so a collection with more sub-collections is truncated here.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | ID of the team collection |
create_team_collection
Create a new team collection.
| Parameter | Type | Description |
|---|---|---|
title * | string | Name of the collection |
data | string | JSON request data |
parentCollectionId | string | ID of parent collection (omit for root) |
teamId | string | ID of the team (optional if default team is configured) |
update_team_collection
Update a team collection (rename or modify data).
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | ID of the team collection to update |
data | string | Updated JSON request data |
title | string | New title for the collection |
export_team_collection
Export a team collection as a complete JSON tree with all nested sub-collections and requests. Use for full data export; prefer get_team_collection for browsing. Omit collectionId to export the entire team workspace.
| Parameter | Type | Description |
|---|---|---|
collectionId | string | ID of specific collection (omit to export all) |
teamId | string | ID of the team (optional if default team is configured) |
delete_team_collection
Delete a team collection and all its children. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | ID of the collection to delete |
list_team_environments
List all environments in a team workspace.
| Parameter | Type | Description |
|---|---|---|
teamId | string | ID of the team (optional if default team is configured) |
create_team_environment
Create a new team environment.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the environment |
variables * | array | Array of environment variables |
teamId | string | ID of the team (optional if default team is configured) |
update_team_environment
Update an existing team environment (rename or modify variables). Providing variables REPLACES the entire list (not a per-variable merge) — include every variable you want to keep; an omitted field is left unchanged.
| Parameter | Type | Description |
|---|---|---|
environmentId * | string | ID of the environment to update |
name | string | New name for the environment |
variables | array | Updated array of environment variables |
delete_team_environment
Delete a team environment. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
environmentId * | string | ID of the environment to delete |
list_teams
List all teams the user has access to. Each team includes its members with their email address and role.
get_team_info
Get detailed information about a specific team, including its members with their email address and role.
| Parameter | Type | Description |
|---|---|---|
teamId * | string | ID of the team |
execute_request
Execute an HTTP request with the specified method, URL, headers, and body. Supports authentication and environment variable substitution. Built-in auth types are bearer, basic, and api-key — for OAuth2 / AWS-Signature / Digest / HAWK, set the Authorization header directly.
| Parameter | Type | Description |
|---|---|---|
method * | string | HTTP method |
url * | string | Target URL for the request |
auth | object | Authentication configuration |
body | string | Request body (for POST, PUT, PATCH) |
environmentId | string | Environment ID for variable substitution |
headers | object | Request headers (key-value pairs) |
timeout | number | Request timeout in milliseconds (1000-120000) |
validate_response
Execute an HTTP request and validate the response against expected criteria (status code, headers, body content, response time, etc.). Body and header checks run against the returned view — after secret redaction, so placeholders like <redacted> are part of the searched text. On an incomplete (truncated) body, a substring already found in the returned content still passes; an absent substring or the JSON-shape check is reported as indeterminate rather than failed, while status/header/time checks stay definitive.
| Parameter | Type | Description |
|---|---|---|
criteria * | object | Validation criteria |
method * | string | HTTP method |
url * | string | Target URL for the request |
auth | object | Authentication configuration |
body | string | Request body |
environmentId | string | Environment ID for variable substitution |
headers | object | Request headers |
timeout | number | Per-request network timeout in milliseconds (1000–120000). Falls back to the server default when omitted. |
generate_code
Generate a code snippet for an HTTP request in various programming languages (curl, JavaScript, Python, Go, Rust). Returns a runnable snippet with live credentials by default; set redactCredentials=true to mask them when sharing the snippet. Takes the request as given: collection-level auth and headers are NOT resolved, so pass them explicitly for a request whose auth type is "inherit".
| Parameter | Type | Description |
|---|---|---|
language * | string | Target programming language |
method * | string | HTTP method |
url * | string | Target URL |
auth | object | Authentication configuration |
body | string | Request body |
headers | object | Request headers |
redactCredentials | boolean | Mask bearer/basic/api-key values, sensitive headers, and secret URL query/body fields in the generated snippet (default false). Set true to produce a shareable snippet with credentials masked. |
generate_documentation
Generate markdown documentation for an HTTP request, including examples in cURL, JavaScript and Python. Credential values in the examples are masked by default (set redactCredentials=false for runnable snippets with live secrets). Takes the request as given: collection-level auth and headers are NOT resolved, so pass them explicitly for a request whose auth type is "inherit".
| Parameter | Type | Description |
|---|---|---|
method * | string | HTTP method |
url * | string | Target URL |
auth | object | Authentication configuration |
body | string | Request body |
description | string | Request description |
headers | object | Request headers |
includeExamples | boolean | Include code examples. Emits cURL, JavaScript and Python only. |
redactCredentials | boolean | Mask bearer/basic/api-key credential values in the generated examples (default true). Docs are share-oriented; set false only when you want copy-paste-runnable snippets with live credentials. |
title | string | Documentation title |
list_team_requests
List requests in a team collection (id, title, full request JSON). Paginated — returns up to ~10 per call; pass the cursor to page through the rest.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | ID of the team collection |
cursor | string | Pagination cursor for loading more results |
get_team_request
Get a specific team request by ID, including its full request JSON.
| Parameter | Type | Description |
|---|---|---|
requestId * | string | ID of the request to retrieve |
create_team_request
Create a new request in a team collection. The request field is a JSON string following the Hoppscotch request schema.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | ID of the team collection to add the request to |
request * | string | JSON string of the Hoppscotch request object. Use the Hoppscotch request schema: "endpoint" (the URL — NOT "url"), "method", "headers" (array of {key,value,active}), "body" ({contentType, body}), "a… |
title * | string | Name of the request |
teamId | string | ID of the team (uses default team if omitted) |
update_team_request
Update a team request's title and/or request data.
| Parameter | Type | Description |
|---|---|---|
requestId * | string | ID of the request to update |
request | string | Updated JSON string of the Hoppscotch request object (use "endpoint" for the URL, not "url"). |
title | string | New title for the request |
delete_team_request
Delete a team request. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
requestId * | string | ID of the request to delete |
move_team_request
Move a team request to a different collection.
| Parameter | Type | Description |
|---|---|---|
destCollectionId * | string | ID of the destination collection |
requestId * | string | ID of the request to move |
list_user_requests
List all requests in a personal (user) collection.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | ID of the user collection |
create_user_request
Create a new request in a personal (user) collection.
| Parameter | Type | Description |
|---|---|---|
collectionId * | string | ID of the user collection |
request * | string | JSON string of the Hoppscotch request object (use "endpoint" for the URL, not "url"). |
title * | string | Name of the request |
type | string | Request type (REST or GQL) |
update_user_request
Update a personal (user) request's title and/or request data.
| Parameter | Type | Description |
|---|---|---|
requestId * | string | ID of the request to update |
request | string | Updated JSON string of the Hoppscotch request object (use "endpoint" for the URL, not "url"). |
title | string | New title for the request |
type | string | Request type (REST or GQL) |
delete_user_request
Delete a personal (user) request. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
requestId * | string | ID of the request to delete |
move_user_request
Move a personal (user) request to a different collection.
| Parameter | Type | Description |
|---|---|---|
destCollectionId * | string | ID of the destination collection |
requestId * | string | ID of the request to move |
sourceCollectionId * | string | ID of the source collection |