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_id | string | はい | Vault の一意識別子 |
ヘッダー
| ヘッダー | 必須 | 説明 |
|---|
| Authorization | はい | Bearer $QODER_PAT |
| Content-Type | はい | application/json |
リクエストボディ
| フィールド | 型 | 必須 | 説明 |
|---|
mcp_server_url | string | はい | MCP サーバーの完全な URL |
protocol | string | はい | 通信プロトコル、値:sse、streamable_http |
type | string | はい | 認証情報タイプ、現在は static_bearer のみサポート |
access_token | string | はい | アクセストークン(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"
}
レスポンスフィールド
| フィールド | 型 | 説明 |
|---|
id | string | 認証情報一意識別子、形式 vcred_* |
vault_id | string | 所属する Vault の ID |
mcp_server_url | string | MCP サーバー URL |
protocol | string | プロトコルタイプ:sse または streamable_http |
type | string | 認証情報タイプ |
status | string | 状態:active |
created_at | string | 作成時刻(ISO 8601) |
updated_at | string | 最終更新時刻(ISO 8601) |
エラーレスポンス
| HTTP | type | 説明 |
|---|
| 400 | invalid_request_error | 必須フィールド欠落: "Field 'access_token' is required for static_bearer type." |
| 401 | TOKEN_INVALID | 認証トークンが欠落または無効 |
| 404 | not_found_error | Vault が存在しないまたは削除済み |
注意事項
- レスポンスには
access_token の値は返されません(セキュリティのため)
- 1 つの Vault に複数の認証情報を含めることができます
- 認証情報作成後は直ちに
active 状態となります