oracle.oci-pricing-mcp-server 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,38 @@
1
+ # VCS / OS
2
+ .git
3
+ .gitignore
4
+ .DS_Store
5
+
6
+ # Python
7
+ __pycache__/
8
+ *.py[cod]
9
+ *.pyo
10
+ *.pyd
11
+ *.egg-info/
12
+ .eggs/
13
+ .venv/
14
+ venv/
15
+ env/
16
+ pip-wheel-metadata/
17
+
18
+ # Tool caches
19
+ .mypy_cache/
20
+ .ruff_cache/
21
+ .pytest_cache/
22
+ .cache/
23
+
24
+ # Build artifacts
25
+ build/
26
+ dist/
27
+
28
+ # IDE
29
+ .vscode/
30
+ .idea/
31
+
32
+ # Secrets & local env
33
+ .env
34
+ .env.*
35
+
36
+ # Validation artifacts
37
+ htmlcov/
38
+ .coverage*
@@ -0,0 +1,68 @@
1
+ # OS / VCS
2
+ .DS_Store
3
+ Thumbs.db
4
+ .git/
5
+ .git-*
6
+ *.orig
7
+
8
+ # Python bytecode
9
+ __pycache__/
10
+ *.py[cod]
11
+ *$py.class
12
+
13
+ # Virtual env
14
+ .venv/
15
+ venv/
16
+ env/
17
+ ENV/
18
+ .conda/
19
+ .mamba/
20
+
21
+ # Packaging / build
22
+ build/
23
+ dist/
24
+ *.egg-info/
25
+ .eggs/
26
+ pip-wheel-metadata/
27
+ wheels/
28
+ *.egg
29
+ MANIFEST
30
+
31
+ # Test / coverage
32
+ .pytest_cache/
33
+ .coverage
34
+ .coverage.*
35
+ htmlcov/
36
+ .cache/
37
+ .nox/
38
+ .tox/
39
+
40
+ # Type checking / linters
41
+ .mypy_cache/
42
+ .ruff_cache/
43
+ .pyre/
44
+
45
+ # Logs / temp
46
+ *.log
47
+ logs/
48
+ *.pid
49
+ *.tmp
50
+ *.swp
51
+
52
+ # Notebooks
53
+ .ipynb_checkpoints/
54
+
55
+ # IDE
56
+ .vscode/
57
+ .idea/
58
+ *.code-workspace
59
+
60
+ # Secrets / local env
61
+ .env
62
+ .env.*
63
+ *.pem
64
+ *.key
65
+ *.crt
66
+
67
+ # Docker (repo 内で不要なローカル生成物)
68
+ docker-compose.override.yml
@@ -0,0 +1,45 @@
1
+ # OCI Pricing engineering context
2
+
3
+ ## Scope and ownership
4
+
5
+ This package owns credential-free public OCI Price List API lookup, fuzzy name search and currency-aware result shaping. Apply [root instructions](../../AGENTS.md) and [shared engineering context](../../docs/agent-development.md#start-here). The local [README](README.md) owns user-facing setup and service guidance; this guide routes engineering sources and local limitations.
6
+
7
+ ## Entry points
8
+
9
+ - [Server](oracle/oci_pricing_mcp_server/server.py): MCP registration, tool handlers and runtime entry point.
10
+ - [Manifest](pyproject.toml): dependencies, Python requirement and available packaging/check configuration.
11
+ - [Unit tests](oracle/oci_pricing_mcp_server/tests/): deterministic package-local checks. [Live probes](tests/integration/test_public_api.py) are explicitly enabled separately.
12
+
13
+ ## Setup / build / run
14
+
15
+ This package uses inherited Moon Python tasks. [README](README.md#development-and-testing) owns setup and validation commands; [pyproject.toml](pyproject.toml) requires Python >=3.11 and configures Hatchling. Install with `uv sync --locked --all-extras --dev` from this directory, then run `uv run --locked oracle.oci-pricing-mcp-server`. Package metadata requires installation before import. See the [README migration notes](README.md#usage) for clients that launch the old script by path.
16
+
17
+ ## Tests and validation
18
+
19
+ From the repository root, run `moon run oci-pricing-mcp-server:test`, `oci-pricing-mcp-server:lock-check`, `oci-pricing-mcp-server:build` and `oci-pricing-mcp-server:install-check`, plus root lint and aggregate coverage as required by the shared validation map. From this directory, `uv run --locked pytest` selects package-local offline tests and enforces the manifest's 90% threshold with branch coverage. Unit fixtures block real HTTP sends and retry delays. Live probes are outside default discovery and require the explicit README command with `OCI_PRICING_LIVE_TESTS=1`; their data-dependent skips do not establish deterministic unit coverage.
20
+
21
+ ## Architecture and dependencies
22
+
23
+ The canonical server module uses httpx against Oracle’s public cetools API. `_safe_next_url()` bounds API continuation URLs; fetch/retry/page limits, SKU/name lookup and optional currency validation are local. Returned list prices are not negotiated account prices or currency conversions.
24
+
25
+ ## Security and secrets handling
26
+
27
+ No OCI credential/signing path is needed for this public API. Preserve allowed-host/HTTPS continuation checks and request/page bounds. Opt-in integration probes use the public network and may skip on empty results or network errors. Follow [shared quality/credential constraints](../../AGENTS.md#mcp-server-quality-validation) and [security reporting](../../SECURITY.md); keep credentials and real customer data out of committed examples and diagnostics.
28
+
29
+ ## Change impact
30
+
31
+ Price-block normalization, currency choices, fuzzy matching, retry bounds and result fields affect caller interpretation. Review both mocked cases and live functional prerequisites. Review [CONTRIBUTING](../../CONTRIBUTING.md), the local README and the existing [CHANGELOG](CHANGELOG.md) under [root changelog rules](../../AGENTS.md#changelog-guidance).
32
+
33
+ ## Known gaps
34
+
35
+ - Source definitions and available tests do not establish passing validation or live security/transport behavior. Record actual checks separately through the [shared evidence routes](../../docs/agent-development.md#evidence-and-context-routes).
36
+
37
+ ## Workflow and context routing
38
+
39
+ | Read when | Context | Depends on | Evidence |
40
+ | --- | --- | --- | --- |
41
+ | **Know:** Investigating a tool or response change | [Server](oracle/oci_pricing_mcp_server/server.py), local model/helper entry points above | Root quality requirements and the relevant service inputs/contract | [Unit test definitions](oracle/oci_pricing_mcp_server/tests/); actual run results recorded separately |
42
+ | **Know:** Investigating configuration, credentials or service boundaries | Local README and architecture/security entry points above | [Root instructions](../../AGENTS.md), applicable shared contracts and explicit local gaps | Current client/configuration sources and relevant tests |
43
+ | **Do:** Preparing or validating a change | [Validation map](../../docs/agent-development.md#validation-map) and local command sources above | Native toolchain, working directory, change scope and live prerequisites | Actual scoped reports; [evidence routes](../../docs/agent-development.md#evidence-and-context-routes) |
44
+
45
+ This context adoption’s Now/Proof record is the [adoption summary](../../docs/plans/adopt-monorepo-agent-context/adoption-summary.md). Keep unrelated engineering work in its own scoped change record.
@@ -0,0 +1,39 @@
1
+ # Changelog
2
+
3
+ ## Unreleased
4
+
5
+ ## 0.3.0
6
+
7
+ ### Breaking Changes
8
+
9
+ - Install the server as `oracle.oci-pricing-mcp-server` and migrate MCP clients that launch the old Python script to the installed command of the same name. The `oci-pricing-mcp` command remains an alias for one release.
10
+
11
+ ### Changed
12
+
13
+ - Upgrade the stdio runtime to FastMCP 4.2.2. Tool discovery now includes FastMCP-generated display titles.
14
+ - Replace `Dockerfile` with an Oracle Linux 9 / Python 3.13 `Containerfile`. The image installs Pricing as a non-editable package and starts it offline as `oracle` with UID `10001`, matching the previous image. The package continues to support Python 3.11.
15
+ - Add Pricing to Moon validation with offline unit tests and enforced branch coverage; move live public API probes to an explicitly enabled integration suite.
16
+
17
+ ### Fixed
18
+
19
+ - Correct the missing package layout and console entry point so wheel and source distributions include the server implementation and can be installed outside the checkout.
20
+
21
+ ### Security
22
+
23
+ - Require dnspython 2.9.2 or later and lock it to 2.9.2.
24
+
25
+ ## 0.1.6
26
+
27
+ ### Fixed
28
+
29
+ - Resolve Price List pagination `next` hrefs against the current page URL so query-relative and path-relative links stay on the API path. Off-host destinations are still rejected.
30
+
31
+ ### Security
32
+
33
+ - Updated locked PyJWT to 2.15.1; updated `cryptography` to 50.0.2 to prevent PKCS#7 EnvelopedData decryption from exposing a Bleichenbacher oracle through distinguishable errors and timing (CVE-2026-69247); updated the FastMCP dependency and lockfile to 3.4.10; updated locked AnyIO to 4.15.1.
34
+
35
+ ## 0.1.5
36
+
37
+ ### Changed
38
+
39
+ - Updated dependency locks for FastMCP 3.4.4 and refreshed transitive packages.
@@ -0,0 +1,35 @@
1
+ Copyright (c) 2025 Oracle and/or its affiliates.
2
+
3
+ The Universal Permissive License (UPL), Version 1.0
4
+
5
+ Subject to the condition set forth below, permission is hereby granted to any
6
+ person obtaining a copy of this software, associated documentation and/or data
7
+ (collectively the "Software"), free of charge and under any and all copyright
8
+ rights in the Software, and any and all patent rights owned or freely
9
+ licensable by each licensor hereunder covering either (i) the unmodified
10
+ Software as contributed to or provided by such licensor, or (ii) the Larger
11
+ Works (as defined below), to deal in both
12
+
13
+ (a) the Software, and
14
+ (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
15
+ one is included with the Software (each a "Larger Work" to which the Software
16
+ is contributed by such licensors),
17
+
18
+ without restriction, including without limitation the rights to copy, create
19
+ derivative works of, display, perform, and distribute the Software and make,
20
+ use, sell, offer for sale, import, export, have made, and have sold the
21
+ Software and the Larger Work(s), and to sublicense the foregoing rights on
22
+ either these or other terms.
23
+
24
+ This license is subject to the following condition:
25
+ The above copyright notice and either this complete permission notice or at
26
+ a minimum a reference to the UPL must be included in all copies or
27
+ substantial portions of the Software.
28
+
29
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
+ SOFTWARE.
@@ -0,0 +1,293 @@
1
+ Metadata-Version: 2.5
2
+ Name: oracle.oci-pricing-mcp-server
3
+ Version: 0.3.0
4
+ Summary: OCI Pricing MCP Server
5
+ Project-URL: Changelog, https://github.com/oracle/mcp/blob/main/src/oci-pricing-mcp-server/CHANGELOG.md
6
+ Author-email: Oracle MCP <237432095+oracle-mcp@users.noreply.github.com>
7
+ License-Expression: UPL-1.0
8
+ License-File: LICENSE.txt
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Programming Language :: Python
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Requires-Python: >=3.11
15
+ Requires-Dist: babel>=2.10
16
+ Requires-Dist: dnspython>=2.9.2
17
+ Requires-Dist: fastmcp==4.2.2
18
+ Requires-Dist: httpx>=0.27.0
19
+ Requires-Dist: pycountry>=22.3.5
20
+ Description-Content-Type: text/markdown
21
+
22
+ # OCI Pricing MCP Server
23
+
24
+ A Python-based MCP (Model Context Protocol) server that fetches **Oracle Cloud Infrastructure (OCI)** service pricing from Oracle’s public **Price List API (cetools)**.
25
+ This project is a **proof of concept** for MCP integrations. While not production-hardened, it is **stateless, credential-free, and suitable for day-to-day internal use** in MCP clients.
26
+
27
+ ### ⚠️ Important pricing disclaimer
28
+
29
+ * **Informational only** — responses are **not quotes or invoices**. Pricing can change and may vary by **region**, **commitment/discounts**, and **tenancy-specific terms**. Taxes and surcharges are not included.
30
+ * The Oracle **Price List API** is a **public subset**. Some items may return **`0.00`** (e.g., free-tier-only or missing localization). The server attempts to flag such cases with `note: "zero-price-or-free-tier-only"` when detected, but **always verify** in the OCI Console or official materials before making decisions.
31
+ * This server **does not** know your account’s negotiated pricing and **does not** perform currency conversion; it requests the currency you specify (or the configured default) and surfaces what the API returns.
32
+
33
+ **Oracle Price List API reference:**
34
+ [https://docs.oracle.com/en-us/iaas/Content/GSG/Tasks/signingup\_topic-Estimating\_Costs.htm#accessing\_list\_pricing](https://docs.oracle.com/en-us/iaas/Content/GSG/Tasks/signingup_topic-Estimating_Costs.htm#accessing_list_pricing)
35
+
36
+ ## Overview
37
+
38
+ `oracle.oci-pricing-mcp-server` (FastMCP-based) exposes tools to:
39
+
40
+ * Look up pricing by **SKU (part number)**
41
+ * **Fuzzy-search** pricing by **product name or alias**
42
+ * Return **consistent JSON** suitable for MCP clients
43
+
44
+ If you omit the currency when asking (e.g., “List Object Storage prices”), the server uses a **default currency**, configurable via environment variables (see **Environment Variables**).
45
+
46
+ ## Features
47
+
48
+ * **SKU Pricing**
49
+ Fetch pricing for a specific part number (e.g., `B93113`).
50
+
51
+ **Example prompts**
52
+
53
+ * “Price for **SKU B93113** in **JPY**.”
54
+ * “Look up **part number B93113** (USD).”
55
+
56
+ * **Fuzzy Product Search**
57
+ Search by product name or common alias (e.g., `ADB → Autonomous Database`, `OSS → Object Storage`, `OKE → Kubernetes`). Each hit is re-fetched by SKU to enrich pricing in the requested currency.
58
+
59
+ **Example prompts**
60
+
61
+ * “**Object Storage** pricing in **JPY**.”
62
+ * “**Compute** pricing in **USD**, **priced items only**.”
63
+
64
+ * **Structured Responses**
65
+ Responses include `currencyCode` (falls back to the requested/default currency) and a `kind` field: `"sku"`, `"search"`, or `"error"`.
66
+ Items that appear **free-tier-only / zero-priced** may include `note: "zero-price-or-free-tier-only"`.
67
+
68
+ **Example prompts**
69
+
70
+ * “List **Object Storage** prices in **JPY**; ensure each item has **currencyCode**.”
71
+ * “Show **Compute** pricing in **USD** and include the **kind** field.”
72
+
73
+ * **Health Check**
74
+ `ping` returns `"ok"`.
75
+
76
+ **Example prompts**
77
+
78
+ * “Ping the pricing server.”
79
+ * “Check if the server is alive.”
80
+
81
+ **Operational notes**
82
+
83
+ * **No credentials required** (uses a public API over HTTPS).
84
+ * **Stateless** and side-effect-free.
85
+ * **Network robustness**: light retry with exponential backoff and request timeout.
86
+ * **Currency handling**: normalizes ISO codes and ensures `currencyCode` is present (falls back to the requested or default currency).
87
+
88
+ ## Prerequisites
89
+
90
+ * Python **3.11+**
91
+ * Internet access (calls Oracle public API)
92
+ * Dependencies via `pyproject.toml` / `uv.lock` or `pip`
93
+
94
+ ## Installation
95
+
96
+ ### Install from this checkout
97
+
98
+ From `src/oci-pricing-mcp-server`:
99
+
100
+ ```bash
101
+ # Installs the project and all declared runtime dependencies
102
+ python3 -m pip install .
103
+
104
+ # Or use the committed dependency lock, including development dependencies
105
+ uv sync --locked --all-extras --dev
106
+ ```
107
+
108
+ The distribution is now named `oracle.oci-pricing-mcp-server` (previously
109
+ `oci-pricing-mcp-server`). When migrating an environment that has the old
110
+ distribution installed, uninstall that distribution before installing this one.
111
+ Python **3.11+** remains supported. OCI credentials are not required.
112
+
113
+ ## Usage
114
+
115
+ Run the installed stdio command:
116
+
117
+ ```bash
118
+ oracle.oci-pricing-mcp-server
119
+
120
+ # From the development checkout
121
+ uv run --locked oracle.oci-pricing-mcp-server
122
+ ```
123
+
124
+ For one release, `oci-pricing-mcp` remains an alias for the canonical command.
125
+ If your MCP client launches the old Python script by path, update it to use
126
+ the installed command shown below.
127
+
128
+ ## MCP Server Configuration
129
+
130
+ After installing the project into an environment available on your client's
131
+ `PATH`, use this portable stdio configuration:
132
+
133
+ ```json
134
+ {
135
+ "mcpServers": {
136
+ "oci-pricing": {
137
+ "command": "oracle.oci-pricing-mcp-server",
138
+ "args": []
139
+ }
140
+ }
141
+ }
142
+ ```
143
+
144
+ ## Environment Variables
145
+
146
+ These variables control **runtime defaults and behavior** (they are **optional**):
147
+
148
+ * `OCI_PRICING_DEFAULT_CCY` – default currency code (e.g., `JPY`; default: `USD`)
149
+ * `OCI_PRICING_MAX_PAGES` – page-follow upper bound for listing (default: `6`, clamped to `1–10`)
150
+ * `OCI_PRICING_HTTP_TIMEOUT` – HTTP timeout in seconds (default: `25`)
151
+ * `OCI_PRICING_RETRIES` – transient retry count (default: `2`; total tries = `1 + retries`)
152
+ * `OCI_PRICING_BACKOFF` – exponential backoff base in seconds (default: `0.5`)
153
+ * `OCI_PRICING_ALT_CCY` – optional alternate currency for a reference price when the requested price is zero or missing; no conversion is performed
154
+
155
+ Test-only helpers (used by functional tests; **not needed** for normal use):
156
+
157
+ * `PROBE_SKU_OK` – known-good SKU (default: `B93113`)
158
+ * `PROBE_SKU_MISSING` – likely missing SKU (default: `B88298`)
159
+ * `PROBE_CCY` – currency used by live probes (default: `JPY`); does not change the server default
160
+ * `PROBE_QUERY` – search term used by live probes (default: `Compute`)
161
+
162
+ **Example client configuration to default to JPY:**
163
+
164
+ ```json
165
+ {
166
+ "mcpServers": {
167
+ "oci-pricing": {
168
+ "command": "oracle.oci-pricing-mcp-server",
169
+ "args": [],
170
+ "env": {
171
+ "OCI_PRICING_DEFAULT_CCY": "JPY"
172
+ }
173
+ }
174
+ }
175
+ }
176
+ ```
177
+
178
+ ## API Tools
179
+
180
+ 1. **`pricing_get_sku(part_number, currency=None, max_pages=None)`**
181
+ Look up pricing for a specific part number.
182
+ If `currency`/`max_pages` are omitted, the server applies env defaults (`OCI_PRICING_DEFAULT_CCY`, `OCI_PRICING_MAX_PAGES`).
183
+
184
+ * **Hit:** `{"kind":"sku", ...}` with `model`, `value`, `currencyCode`
185
+ * **Fallback / not found:** `{"kind":"search","note":"matched-by-name"|"not-found", ...}`
186
+ * **Error:** `{"kind":"error", ...}`
187
+
188
+ 2. **`pricing_search_name(query, currency=None, limit=12, max_pages=None, require_priced=False)`**
189
+ Fuzzy-search by product name/alias, then re-fetch each result by SKU to enrich pricing in the requested currency.
190
+ If `currency`/`max_pages` are omitted, env defaults apply.
191
+
192
+ * 3–4 chars → **word-boundary** match
193
+ * ≥5 chars → **space-insensitive substring** + **similarity**
194
+ * Aliases (e.g., `adb→autonomous database`, `oss→object storage`, `oke→kubernetes engine`)
195
+ * `limit` **clamped to ≤20**; `max_pages` **clamped to 1–10**
196
+ * `require_priced=True` → keep only items with `model` + `value`
197
+ * Items with `value == 0` may include `note: "zero-price-or-free-tier-only"` if detected.
198
+
199
+ 3. **`ping()`**
200
+ Health check; returns `"ok"`.
201
+
202
+ ## Natural Language Examples
203
+
204
+ > Many MCP clients map user text to tool calls. Examples:
205
+
206
+ **SKU lookup**
207
+
208
+ * “Show the price for **SKU B93113** in **JPY**.”
209
+ * “Look up **part number B93113** (USD).”
210
+
211
+ **Product search (fuzzy)**
212
+
213
+ * “**Object Storage** pricing in **JPY**.”
214
+ * “**OKE** (Kubernetes) pricing.”
215
+
216
+ **Filters & options**
217
+
218
+ * “**Compute** pricing in **JPY**, **priced items only**.”
219
+ * “**ADB**-related SKUs in **USD**.”
220
+
221
+ ## Development and testing
222
+
223
+ Implementation lives in `oracle/oci_pricing_mcp_server/server.py`; package
224
+ metadata reads the installed distribution version. Install the project before
225
+ importing it. Default unit tests live alongside the package, mock public HTTP
226
+ and retry delays, and fail if they attempt a real HTTP send. They collect branch
227
+ coverage and enforce the configured **90%** minimum.
228
+
229
+ From the repository root, use the pinned toolchain and inherited Moon targets:
230
+
231
+ ```bash
232
+ proto install moon --immutable-lockfile
233
+ moon setup
234
+ moon run oci-pricing-mcp-server:test
235
+ moon run oci-pricing-mcp-server:lock-check oci-pricing-mcp-server:build oci-pricing-mcp-server:install-check
236
+ moon run root:lint
237
+ moon run root:combine-coverage
238
+ ```
239
+
240
+ The test target writes `.coverage.oci-pricing-mcp-server` at the repository root.
241
+ Aggregation combines the reports present from that run; a Pricing-only report
242
+ does not establish coverage for other servers. See the repository validation
243
+ map for full-workspace checks.
244
+
245
+ From this package directory, the native equivalent for unit tests is:
246
+
247
+ ```bash
248
+ uv run --locked pytest
249
+ uv build --clear
250
+ ```
251
+
252
+ ### Optional public API probes
253
+
254
+ Live probes are outside default discovery in `tests/integration/`. They require
255
+ internet access to Oracle's public Price List API and current public pricing
256
+ data. The dataset can legitimately produce empty or zero-priced results, and
257
+ some probes skip those cases. Enable them explicitly from this package:
258
+
259
+ ```bash
260
+ OCI_PRICING_LIVE_TESTS=1 uv run --locked pytest tests/integration -m integration --no-cov -v
261
+ ```
262
+
263
+ Without `OCI_PRICING_LIVE_TESTS=1`, explicit integration-suite invocation skips
264
+ these probes. They are separate from deterministic unit coverage.
265
+
266
+ ### Container
267
+
268
+ Build using the committed `Containerfile` (Docker and Podman accept `-f`):
269
+
270
+ ```bash
271
+ docker build -f Containerfile -t oci-pricing-mcp:dev .
272
+ docker run --rm -i --network=none oci-pricing-mcp:dev
273
+ ```
274
+
275
+ The Oracle Linux 9 image uses Python 3.13. At build time,
276
+ `uv sync --locked --all-extras --no-editable` installs the Pricing package into
277
+ the virtual environment along with its locked runtime and development dependencies.
278
+ The image starts the server with `uv run --no-sync oracle.oci-pricing-mcp-server`
279
+ as the non-root `oracle` user with UID `10001`, the same UID as the previous
280
+ image.
281
+
282
+ Initialization, tool discovery and `ping` work offline. Pricing lookups
283
+ require outbound HTTPS, so omit `--network=none` for normal pricing use. Use
284
+ `-i` without allocating a TTY for MCP stdio clients.
285
+
286
+ The protocol smoke helper runs initialization, discovers all three tools, and
287
+ calls `ping` against a command, without making a pricing lookup:
288
+
289
+ ```bash
290
+ uv run --locked python3 tests/stdio_smoke.py oracle.oci-pricing-mcp-server
291
+ uv run --locked python3 tests/stdio_smoke.py docker run --rm -i --network=none oci-pricing-mcp:dev
292
+ uv run --locked python3 tests/stdio_smoke.py docker run --rm -i --network=none --user 10001 oci-pricing-mcp:dev
293
+ ```