Agents
Discover Mcp Tools
Changed onDiscover available tools from an MCP server.
Three callable shapes - see DiscoverMcpToolsRequest for full details:
- Saved-id: {savedConnectionId} -> Streamkap reads the saved connection and composes its headers server-side; the token never leaves the server. savedConnectionName is accepted as a deprecated alias for one release cycle.
- Inline with masked secret: {serverUrl, headers: {...: "********"}} -> Streamkap matches serverUrl against saved connections and substitutes the stored secret for every masked header value.
- Inline plaintext: {serverUrl, headers} - for testing a connection before it is saved.
The URL is validated (SSRF guard) on every path. Per-tenant rate limit: 30 req/min -> 429 with Retry-After. Results are cached for 300s per (serverUrl, headers); X-MCP-Cache: hit|miss is set on every response. Cache hits still count against the rate limit.
post/agents/mcp/tools
Request
- Base URLhttps://api.streamkap.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
object required
Changes
- info
endpoint added
- info