メインコンテンツへスキップ

Documentation Index

Fetch the complete documentation index at: https://docs.qoder.com/llms.txt

Use this file to discover all available pages before exploring further.

POST /v1/vaults/{vault_id}/credentials 指定された Vault に新しい MCP サーバー認証情報を追加します。

パスパラメータ

パラメータ必須説明
vault_idstringはいVault の一意識別子

ヘッダー

ヘッダー必須説明
AuthorizationはいBearer $QODER_PAT
Content-Typeはいapplication/json

リクエストボディ

フィールド必須説明
mcp_server_urlstringはいMCP サーバーの完全な URL
protocolstringはい通信プロトコル、値:ssestreamable_http
typestringはい認証情報タイプ、現在は static_bearer のみサポート
access_tokenstringはいアクセストークン(static_bearer タイプで必須)

リクエスト例

curl -X POST https://openapi.qoder.sh/api/v1/cloud/vaults/vault_019e3bb940277f0db05ab74291acf6ef/credentials \
  -H "Authorization: Bearer $QODER_PAT" \
  -H "Content-Type: application/json" \
  -d '{
    "mcp_server_url": "https://example.com/mcp-stream",
    "protocol": "streamable_http",
    "type": "static_bearer",
    "access_token": "your-access-token"
  }'

レスポンス例

HTTP 201 Created
{
  "id": "vcred_019e3bb98877759e862750b495c1fce8",
  "vault_id": "vault_019e3bb940277f0db05ab74291acf6ef",
  "mcp_server_url": "https://example.com/mcp-stream",
  "protocol": "streamable_http",
  "type": "static_bearer",
  "status": "active",
  "created_at": "2026-05-18T15:34:35.387093Z",
  "updated_at": "2026-05-18T15:34:35.387093Z"
}

レスポンスフィールド

フィールド説明
idstring認証情報一意識別子、形式 vcred_*
vault_idstring所属する Vault の ID
mcp_server_urlstringMCP サーバー URL
protocolstringプロトコルタイプ:sse または streamable_http
typestring認証情報タイプ
statusstring状態:active
created_atstring作成時刻(ISO 8601)
updated_atstring最終更新時刻(ISO 8601)

エラーレスポンス

HTTPtype説明
400invalid_request_error必須フィールド欠落: "Field 'access_token' is required for static_bearer type."
401TOKEN_INVALID認証トークンが欠落または無効
404not_found_errorVault が存在しないまたは削除済み

注意事項

  • レスポンスには access_token の値は返されません(セキュリティのため)
  • 1 つの Vault に複数の認証情報を含めることができます
  • 認証情報作成後は直ちに active 状態となります