File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ if __name__ == "__main__":
215215 "servers": {
216216 "openapi.com": {
217217 "type": "http",
218- "url": "http://INDIRIZZO_IP_DEL_TUO_SERVER:8000/mcp/ ",
218+ "url": "http://INDIRIZZO_IP_DEL_TUO_SERVER:8000",
219219 "headers": {
220220 "Authorization": "Bearer IL_TUO_BEARER_TOKEN_DI_PRODUZIONE"
221221 }
Original file line number Diff line number Diff line change 88 "servers" : {
99 "openapi.com" : {
1010 "type" : " http" ,
11- "url" : " http://127.0.0.1:8000/mcp/ " ,
11+ "url" : " http://127.0.0.1:8000" ,
1212 "headers" : {
1313 "Authorization" : " Bearer ${input:OpenapiToken}"
1414 }
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ ngrok http 8080
112112# Terminal 3 — run tests
113113export OPENAI_API_KEY=sk-...
114114export OPENAPI_SANDBOX_TOKEN=your_sandbox_token
115- MCP_URL=https://abcd1234.ngrok-free.app/mcp/ SANDBOX=1 make test-openai-sandbox
115+ MCP_URL=https://abcd1234.ngrok-free.app SANDBOX=1 make test-openai-sandbox
116116```
117117
118118---
Original file line number Diff line number Diff line change 5959
6060codex mcp remove " $MCP_SERVER_NAME " 2> /dev/null || true
6161codex mcp add " $MCP_SERVER_NAME " \
62- --url " http://localhost:8080/mcp/ " \
62+ --url " http://localhost:8080" \
6363 --bearer-token-env-var " OPENAPI_MCP_TOKEN"
6464
6565# --- start MCP server in background ---
Original file line number Diff line number Diff line change 2222# MCP_URL: the URL OpenAI will use to reach the MCP server.
2323# OpenAI cloud CANNOT reach localhost — expose the server first:
2424# ngrok http 8080
25- # MCP_URL=https://xxxx.ngrok-free.app/mcp/ make test-openai
26- MCP_URL=" ${MCP_URL:- http:// localhost: 8080/ mcp / } "
25+ # MCP_URL=https://xxxx.ngrok-free.app make test-openai
26+ MCP_URL=" ${MCP_URL:- http:// localhost: 8080} "
2727
2828cleanup () {
2929 [ -n " $SERVER_PID " ] && kill " $SERVER_PID " 2> /dev/null || true
@@ -53,7 +53,7 @@ if echo "$MCP_URL" | grep -qE "localhost|127\.0\.0\.1"; then
5353 echo " WARNING: MCP_URL='$MCP_URL ' — OpenAI cloud cannot reach localhost."
5454 echo " Expose the server with ngrok and set MCP_URL to the public URL:"
5555 echo " ngrok http 8080"
56- echo " MCP_URL=https://xxxx.ngrok-free.app/mcp/ make test-openai"
56+ echo " MCP_URL=https://xxxx.ngrok-free.app make test-openai"
5757 echo " "
5858fi
5959
You can’t perform that action at this time.
0 commit comments