kifas.secrets.list
kifas.secrets.list
Section titled “kifas.secrets.list”List secret names + metadata for the calling org. Plaintext is never returned. Use scope to filter: workflow (requires workflow_id), org, or all.
Required scopes: secrets:read
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
scope |
"workflow"` | `"org"` | `"all" |
no | "all" |
|
workflow_id |
string |
no | — |
Returns
Section titled “Returns”{ "type": "object", "properties": { "secrets": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "scope": { "type": "string", "enum": [ "workflow", "org" ] }, "workflow_id": { "anyOf": [ { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }, { "type": "null" } ] }, "key_prefix": { "type": "string" }, "hint": { "type": [ "string", "null" ] }, "last_used_at": { "type": [ "string", "null" ] }, "created_at": { "type": "string" } }, "required": [ "name", "scope", "workflow_id", "key_prefix", "hint", "last_used_at", "created_at" ], "additionalProperties": false } } }, "required": [ "secrets" ], "additionalProperties": false}Code samples
Section titled “Code samples”TypeScript (Anthropic MCP SDK)
import { Client } from '@modelcontextprotocol/sdk/client/index.js'import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamable-http.js'
const transport = new StreamableHTTPClientTransport( new URL('https://mcp.kifas.io/'), { requestInit: { headers: { Authorization: `Bearer ${process.env.KIFAS_API_KEY}` }, }, },)const client = new Client({ name: 'demo', version: '0.1.0' })await client.connect(transport)
const result = await client.callTool({ name: 'kifas.secrets.list', arguments: { "scope": "all" },})console.log(result)Python (httpx, raw JSON-RPC)
import osimport httpx
resp = httpx.post( "https://mcp.kifas.io/", headers={ "Authorization": f"Bearer {os.environ['KIFAS_API_KEY']}", "Content-Type": "application/json", }, json={ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "kifas.secrets.list", "arguments": { "scope": "all" }, }, },)print(resp.json())curl
curl https://mcp.kifas.io/ \ -H "Authorization: Bearer $KIFAS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "kifas.secrets.list", "arguments": { "scope": "all" } }}'Raw JSON-RPC body
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "kifas.secrets.list", "arguments": { "scope": "all" } }}Try it
Section titled “Try it”Want to try kifas.secrets.list? Sign in to the dashboard and run it against a real session.