Spaces:
Sleeping
Sleeping
Commit
·
1a0d97d
1
Parent(s):
8cec195
feat: Add NPI API base URL configuration and Pydantic schemas for request arguments and response models.
Browse files
src/npi_mcp_server/config.py
CHANGED
|
@@ -2,4 +2,4 @@ import os
|
|
| 2 |
|
| 3 |
# Base URL for the Modal NPI API service
|
| 4 |
# Default to localhost for testing if not set, but in prod it should be set.
|
| 5 |
-
NPI_API_BASE_URL = os.environ.get("NPI_API_BASE_URL", "
|
|
|
|
| 2 |
|
| 3 |
# Base URL for the Modal NPI API service
|
| 4 |
# Default to localhost for testing if not set, but in prod it should be set.
|
| 5 |
+
NPI_API_BASE_URL = os.environ.get("NPI_API_BASE_URL", "https://humandotlearning--credentialwatch-backend-fastapi-app.modal.run/npi")
|
src/npi_mcp_server/schemas.py
CHANGED
|
@@ -15,12 +15,13 @@ class GetProviderArgs(BaseModel):
|
|
| 15 |
# These mirror the structure returned by the Modal NPI_API.
|
| 16 |
|
| 17 |
class Address(BaseModel):
|
| 18 |
-
|
| 19 |
-
|
| 20 |
city: str
|
| 21 |
state: str
|
| 22 |
postal_code: str
|
| 23 |
-
|
|
|
|
| 24 |
|
| 25 |
class ProviderSummary(BaseModel):
|
| 26 |
npi: str
|
|
|
|
| 15 |
# These mirror the structure returned by the Modal NPI_API.
|
| 16 |
|
| 17 |
class Address(BaseModel):
|
| 18 |
+
address_1: str
|
| 19 |
+
address_2: Optional[str] = None
|
| 20 |
city: str
|
| 21 |
state: str
|
| 22 |
postal_code: str
|
| 23 |
+
country_code: str
|
| 24 |
+
telephone_number: Optional[str] = None
|
| 25 |
|
| 26 |
class ProviderSummary(BaseModel):
|
| 27 |
npi: str
|