wispfnDocs
MCP

Every tool of the Wisp MCP server at https://wispfn.com/api/mcp, with its arguments and required scope.

Endpoint: https://wispfn.com/api/mcp (Streamable HTTP, JSON responses). Authenticate with Authorization: Bearer wisp_sk_.... Setup: Wisp MCP server.

project arguments accept a project id (p...) or address (my-api). endpoint arguments accept a name (orders) or id (e...).

#list_projects

No arguments. Scope projects:read.

#create_project

ArgumentType
namestring, 1–60 characters
languagejavascript | python | null

Scope projects:write.

#get_project

project. Returns its functions (with their HTTP, MCP and schedule settings), URLs and variable/secret names. Scope projects:read.

#get_function

project, function. Returns the code and settings. Scope functions:read.

#create_function

ArgumentTypeDefault
projectstring—
namestring— (before/after create the special functions)
codestring—
httpbooleantrue
methodGET | POST | PUT | PATCH | DELETE | nullGET (POST without HTTP)
languagejavascript | python | nullproject's
descriptionstring""
input_schemaobject | nullnull
output_schemaobject | nullnull
visibilitypublic | private | internalpublic
mcpboolean | nullpublic HTTP functions

Returns the new draft version, functionId and, for HTTP functions, a testUrl. Scope functions:write.

#update_function

ArgumentTypeDescription
project, functionstring—
codestring | nullComplete new code
edits[{ old_text, new_text }]Targeted replacements
name, method, description, visibility| nullNew values
http, mcp, before_afterboolean | nullExpose over HTTP, offer as an MCP tool, run before/after
input_schema, output_schemaobject | nullNew schemas
scheduleobject | null{ cron, timezone, description, enabled }; remove_schedule: true removes it
cache_secondsnumber | nullEdge caching for GET functions (0 turns it off)

Scope functions:write.

#delete_function

project, function. Scope functions:write.

#set_config

ArgumentType
projectstring
nameUPPER_SNAKE_CASE
kindvariable | secret
valuestring
descriptionstring

Scope config:write.

#delete_config

project, name. Scope config:write.

#set_mcp_server

project, enabled (boolean). Scope projects:write.

#publish

project, version (number or null for the draft). Scope projects:deploy.

#invoke_function

ArgumentTypeDefault
project, functionstring—
modetest | livetest
methodstring | nullthe function's
subpathstring""
query, headersobject{}
bodystring | nullraw body

Runs any function — private ones and those without HTTP too (their input is the body). Scope functions:invoke. Uses Run credits.

#get_logs

ArgumentTypeDefault
projectstring—
functionstring | nullall
status2xx | 4xx | 5xx | errors | nullall
searchstring | null—
limit1–5010

Scope logs:read.

#ask_wisp

project, message. Runs a full assistant turn and returns its reply, the changes and the new draft version. Scope assistant:chat. Uses AI credits.