Skip to main content

Gateway + MCP Server for TerryAnn V2 - Medicare Journey Intelligence Platform

Project description

TerryAnn Core

Gateway + MCP Server for TerryAnn V2 - Medicare Journey Intelligence Platform.

Overview

TerryAnn Core provides:

  • Gateway API: Conversation endpoint that handles user messages and orchestrates responses
  • MCP Server: Tool definitions for cohort generation, journey simulation, and campaign execution
  • Session Management: Conversation state and context tracking

Quick Start

# Install dependencies
pip install -e .

# Copy environment file
cp .env.example .env
# Edit .env with your settings

# Run locally
uvicorn app.main:app --reload --port 8080

API Endpoints

Gateway

  • POST /gateway/message - Send a message and get a response
  • GET /gateway/session/{session_id} - Get session details
  • GET /gateway/tools - List available MCP tools

Health

  • GET / - Service info
  • GET /health - Health check

MCP Tools

Tool Description
generate_cohort Generate a cohort based on targeting criteria
get_cohort Retrieve an existing cohort
simulate_journey Run Monte Carlo simulation on a journey
compare_scenarios Compare multiple journey variations
create_journey Create a new journey blueprint
modify_journey Modify an existing journey
optimize_journey Auto-optimize a journey for a goal
push_to_crm Push data to CRM (Salesforce/HubSpot)
schedule_campaign Schedule campaign execution

Project Structure

terryann-core/
├── app/
│   ├── main.py              # FastAPI entry point
│   ├── config.py            # Settings
│   ├── gateway/             # Conversation handling
│   │   ├── router.py        # Endpoints
│   │   ├── session.py       # Session management
│   │   └── auth.py          # Auth middleware
│   ├── mcp/                 # MCP Server
│   │   ├── server.py        # Tool registration
│   │   └── tools/           # Tool implementations
│   └── models/              # Pydantic schemas
├── tests/
├── Dockerfile
├── railway.toml
└── pyproject.toml

Development

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Lint
ruff check .

Deployment

Configured for Railway deployment via railway.toml.

railway up

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

terryann_core-0.1.0.tar.gz (38.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

terryann_core-0.1.0-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file terryann_core-0.1.0.tar.gz.

File metadata

  • Download URL: terryann_core-0.1.0.tar.gz
  • Upload date:
  • Size: 38.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for terryann_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 620a6bd21c33dd04541a9778a2607582347e494e50952df39b6cf6bd830244d5
MD5 ecab7af42c202a754f7ab2d4cab2e866
BLAKE2b-256 f9a669f6fecb727c886af804670610ef5d10b26a814a50724f0be77dbadcf9aa

See more details on using hashes here.

File details

Details for the file terryann_core-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: terryann_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 39.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for terryann_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de2c7a37c73687e85f9cafa0bdf803f0b425db66332eafce8a8bd8ad09c5196a
MD5 87eeeba14b482fc55dc3ba66b4413a56
BLAKE2b-256 45ae336a72757ef4bd24ca05ad9e8ecd019a58963330fc212ca64d1cf2983f35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page