VS Code (.vscode/mcp.json)
{
"servers": {
"postman-mcp-server-code": {| # This is fully refered by https://qiita.com/inoue_d/items/e38940fff7a31b8fc7c7 | |
| # リージョンは us-east-1 を指定する。As of 2025-09-07 US East (N. Virginia), US West (Oregon), Europe (Frankfurt), Asia Pacific (Sydney) are avaiable | |
| set -e -x | |
| export AWS_REGION=us-east-1 | |
| # アカウントIDの取得 | |
| export AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text) | |
| # 信頼関係 |
Postman CLIでは、コレクション(or フォルダ)配下のテスト実行時に次のように--env-barオプションで環境変数の情報を指定できる
postman login --with-api-key <postman-api-key>
postman collection run <Collection ID> -i <Folder ID> --env-var key=valueこの機能を利用すれば、もしあるAPIリクエスト設定で秘匿情報を扱う必要がある場合、その秘匿情報(ここではAPIキー)を次のように変数化({{api-key}})しておけば、実行時に秘匿情報を外部から注入が可能となる
| #!/bin/sh | |
| # 指定ディレクトリまたは現在のディレクトリを使用 | |
| [ -d "$1" ] && DIR=$1 && shift || DIR=. | |
| # ディレクトリを絶対パスに変換 | |
| (cd ${DIR}; pwd) | |
| # ディレクトリ内のファイルとサブディレクトリをツリー表示 | |
| find "${DIR}" | \ | |
| awk -v dir="${DIR}" ' | |
| function is_dir(path, cmd, result) { | |
| cmd = "test -d \"" dir path "\" && echo 1 || echo 0" |
| name: Update Postman Collection | |
| on: | |
| pull_request: | |
| branches: [main] | |
| types: [opened, synchronize] | |
| env: | |
| # OpenAPI file path | |
| OPENAPI_FILE: oas/openapi.yaml |
| openapi: 3.0.3 | |
| info: | |
| title: Sample API | |
| version: 1.0.0 | |
| servers: | |
| - url: https://api.example.com | |
| paths: | |
| /users: | |
| get: | |
| summary: Get all users |
Project URL: https://github.com/openai/openai-realtime-agents
# Get project
git clone https://github.com/openai/openai-realtime-agents.git
# Get API KEY
open https://platform.openai.com/api-keys
# Set env OPENAI_API_KEY