MCP-spec-upgrade-README.md•1.48 kB
Comprehensive Implementation Plan: Okta MCP Server Modernization
Branch Strategy
# Create feature branch from main
git checkout main
git pull origin main
git checkout -b feature/mcp-2025-06-18-modernization
Comprehensive Implementation Plan: Okta MCP Server Modernization
Branch Strategy
Phase 1: Protocol Compliance & Modernization
1.1 Protocol Version Update
Files to Modify:
src/index.ts or main server file
pyproject.toml / requirements.txt
README.md
Tasks:
1.1.1 Update Protocol Version Declaration
````
from mcp.server.fastmcp import FastMCP
from contextlib import asynccontextmanager
from collections.abc import AsyncIterator
from dataclasses import dataclass
import os
# Update to latest protocol version
PROTOCOL_VERSION = "2025-06-18"
@dataclass
class AppContext:
okta_client: any # Will be properly typed later
logger: any
@asynccontextmanager
async def app_lifespan(server: FastMCP) -> AsyncIterator[AppContext]:
"""Manage application lifecycle with type-safe context"""
# Initialize Okta client on startup
okta_client = await initialize_okta_client()
logger = setup_structured_logging()
try:
yield AppContext(okta_client=okta_client, logger=logger)
finally:
# Cleanup on shutdown
await cleanup_okta_client(okta_client)
# Create server with enhanced capabilities
mcp = FastMCP(
name="okta-mcp-server",
version="2.0.0", # Bump version for MCP 2025-06-18
lifespan=app_lifespan
)
```