Skip to content

Commit 5b804c6

Browse files
chore: update code
1 parent efd7a82 commit 5b804c6

6 files changed

Lines changed: 10 additions & 39 deletions

File tree

README.md

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ start the server — defaults are suitable for local use.
3737
|---|---|------------------------------------------------------------------------------------------|
3838
| `MCP_PORT` | `8080` | HTTP port the server listens on |
3939
| `MCP_ENV` | `production` | Runtime environment: `dev` \| `staging` \| `production` |
40-
| `MCP_BASE_URL` | `https://mcp.openapi.com` | Public URL of this server (used to build callback and file download URLs) |
40+
| `MCP_BASE_URL` | `http://localhost:8080` | Public URL of this server (used to build callback and file download URLs) |
4141
| `MCP_CALLBACK_URL` | `$MCP_BASE_URL/callbacks` | Explicit callback URL sent to async APIs |
4242
| `MCP_OPENAPI_ENV` | _(empty)_ | Openapi environment: `dev`, `test`, `sandbox` (alias of `test`), or empty for production |
4343

@@ -110,33 +110,6 @@ Commands:
110110

111111

112112

113-
## Local launcher script
114-
115-
Copy the block below, paste it into your terminal, and press Enter. It will
116-
create a `mcp-server.sh` file in the current directory and launch the server:
117-
118-
```bash
119-
cat > mcp-server.sh << 'EOF'
120-
#!/bin/bash
121-
# ============================================================
122-
# Openapi.com MCP Server — local launcher
123-
# Edit the variables below, then run: bash mcp-server.sh
124-
# ============================================================
125-
126-
export MCP_PORT="${MCP_PORT:-8080}"
127-
uvx openapi-mcp-sdk server
128-
EOF
129-
bash mcp-server.sh
130-
```
131-
132-
Next time, just run:
133-
134-
```bash
135-
bash mcp-server.sh
136-
```
137-
138-
139-
140113
## Running with Docker
141114

142115
The project ships a single [`compose.yml`](compose.yml) with the `mcp` service.
@@ -172,7 +145,7 @@ server listens on `http://0.0.0.0:8080`.
172145
To test endpoints manually:
173146

174147
```bash
175-
curl -H "Authorization: Bearer YOUR_TOKEN" http://localhost:8080/mcp/
148+
curl -H "Authorization: Bearer YOUR_TOKEN" http://localhost:8080
176149
```
177150

178151
The server prints request headers and parameters to stdout — no extra
@@ -329,7 +302,7 @@ uvx openapi-mcp-sdk server
329302

330303
> The directory is created automatically on first use. For the download links to
331304
> work correctly, `MCP_BASE_URL` must point to the public address of the server
332-
> (default: `https://mcp.openapi.com`).
305+
> (default: `http://localhost:8080`).
333306
334307
### Cloud storage backends
335308

docs/env/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cache backend, and any platform-specific notes.
1414
|---|---|------------------------------------------------------------------------------------------|
1515
| `MCP_PORT` | `8080` | HTTP port the server listens on |
1616
| `MCP_ENV` | `production` | Runtime environment: `dev` \| `staging` \| `production` |
17-
| `MCP_BASE_URL` | `https://mcp.openapi.com` | Public URL of this server (used in callback URLs) |
17+
| `MCP_BASE_URL` | `http://localhost:8080` | Public URL of this server (used in callback URLs) |
1818
| `MCP_CALLBACK_URL` | `$MCP_BASE_URL/callbacks` | Full callback URL sent to async APIs |
1919
| `MCP_OPENAPI_ENV` | _(empty)_ | Openapi environment: `dev`, `test`, `sandbox` (alias of `test`), or empty for production |
2020
| `MCP_STORAGE_BACKEND` | `local` | Storage backend: `local` \| `gcs` \| `s3` |

docs/env/gcp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Internet → Cloud Run (openapi-mcp-sdk server)
2626
# Core
2727
MCP_PORT=8080
2828
MCP_ENV=production
29-
MCP_BASE_URL=https://mcp.openapi.com
30-
MCP_CALLBACK_URL=https://mcp.openapi.com/callbacks
29+
MCP_BASE_URL=https://mcp.example.com
30+
MCP_CALLBACK_URL=https://mcp.example.com/callbacks
3131
MCP_OPENAPI_ENV= # dev, test, sandbox (alias of test), or empty for production
3232

3333
# Storage
@@ -81,7 +81,7 @@ spec:
8181
- name: MCP_PORT
8282
value: "8080"
8383
- name: MCP_BASE_URL
84-
value: "https://mcp.openapi.com"
84+
value: "https://mcp.example.com"
8585
- name: MCP_STORAGE_BACKEND
8686
value: "gcs"
8787
- name: MCP_STORAGE_BUCKET

docs/env/local.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Options:
7575
export MCP_BASE_URL=https://abc123.ngrok.io
7676
```
7777

78-
If `MCP_BASE_URL` is not set the server defaults to `https://mcp.openapi.com`, which
78+
If `MCP_BASE_URL` is not set the server defaults to `http://localhost:8080`, which
7979
will not work for local callbacks.
8080

8181
---
@@ -103,7 +103,7 @@ source local.env && openapi-mcp-sdk server
103103
cat > mcp-server.sh << 'EOF'
104104
#!/bin/bash
105105
export MCP_PORT="${MCP_PORT:-8080}"
106-
export MCP_BASE_URL="${MCP_BASE_URL:-https://mcp.openapi.com}"
106+
export MCP_BASE_URL="${MCP_BASE_URL:-http://localhost:8080}"
107107
export MCP_STORAGE_BACKEND="${MCP_STORAGE_BACKEND:-local}"
108108
export MCP_STORAGE_PATH="${MCP_STORAGE_PATH:-./openapi_storage}"
109109

docs/settings/claude_desktop_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"command": "npx",
55
"args": [
66
"mcp-remote",
7-
"http://127.0.0.1:8000/mcp/",
7+
"http://127.0.0.1:8000",
88
"--header",
99
"Authorization: Bearer 68614e09843b57c48308abc5"
1010
]

src/openapi_mcp_sdk/memory_store.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
OPENAPI_HOST_PREFIX = f"{MCP_OPENAPI_ENV}." if MCP_OPENAPI_ENV else ""
4040

4141
MCP_BASE_URL = os.getenv("MCP_BASE_URL", "http://localhost:8080")
42-
if MCP_STORAGE_BUCKET and "MCP_BASE_URL" not in os.environ:
43-
MCP_BASE_URL = "https://" + MCP_STORAGE_BUCKET.replace("-", ".")
4442

4543
callbackUrl = os.getenv("MCP_CALLBACK_URL")
4644
if not callbackUrl:

0 commit comments

Comments
 (0)