Skip to content

Commit dff1b10

Browse files
authored
SWI-8923 Switch to TN Lookup V2 (#4)
* SWI-8923 Switch to TN Lookup V2 * format * update test * update tests * add new python version to test matrix * make snyk happy
1 parent cf5343b commit dff1b10

File tree

9 files changed

+744
-436
lines changed

9 files changed

+744
-436
lines changed

.github/workflows/test-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ jobs:
1616
strategy:
1717
matrix:
1818
os: [windows-2025, ubuntu-24.04]
19-
python-version: ['3.10', '3.11', '3.12', '3.13']
19+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
2020
fail-fast: false
2121
env:
2222
PYTHON_VERSION: ${{ matrix.python-version }}
2323
OPERATING_SYSTEM: ${{ matrix.os }}
2424

2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v5
2828

2929
- name: Set up Python
30-
uses: actions/setup-python@v5
30+
uses: actions/setup-python@v6
3131
with:
3232
python-version: ${{ matrix.python-version }}
3333

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ readme = "README.md"
99
requires-python = ">=3.10"
1010
dependencies = [
1111
"httpx~=0.28.0",
12-
"fastmcp~=2.11.0",
12+
"fastmcp~=2.13.0",
13+
"mcp~=1.23.0",
1314
"pyyaml~=6.0.0",
15+
"werkzeug>=3.1.4"
1416
]
1517

1618
[project.scripts]

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
httpx~=0.28.0
2-
fastmcp~=2.11.0
2+
fastmcp~=2.13.0
3+
mcp~=1.23.0
34
pyyaml~=6.0.0
5+
werkzeug>=3.1.4 # not directly required, pinned by Snyk to avoid a vulnerability

src/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
import asyncio
2+
import os
3+
4+
os.environ["FASTMCP_EXPERIMENTAL_ENABLE_NEW_OPENAPI_PARSER"] = "true"
5+
26
from fastmcp import FastMCP
37
from servers import create_bandwidth_mcp
48
from config import load_config, get_enabled_tools, get_excluded_tools

src/servers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"url": "https://dev.bandwidth.com/spec/multi-factor-auth.yml"
1717
},
1818
"phone-number-lookup": {
19-
"url": "https://dev.bandwidth.com/spec/phone-number-lookup.yml"
19+
"url": "https://dev.bandwidth.com/spec/phone-number-lookup-v2.yml"
2020
},
2121
"insights": {"url": "https://dev.bandwidth.com/spec/insights.yml"},
2222
"end-user-management": {

0 commit comments

Comments
 (0)