Refactored to resolve type-hints from Pylance

This commit is contained in:
nathan 2026-04-03 10:28:30 -04:00
parent b35499e195
commit 7e00f3026c

View File

@ -1,10 +1,11 @@
from mcp.server.fastmcp import FastMCP from mcp.server.fastmcp import FastMCP
from typing import Any
# This stays the same - it's your server's identity # This stays the same - it's your server's identity
mcp = FastMCP("Workday-Sync") mcp = FastMCP("Workday-Sync")
@mcp.tool() @mcp.tool()
def get_worker_status(employee_id: str) -> dict: def get_worker_status(employee_id: str) -> dict[str, Any]:
""" """
WIS-009: Fetch structured worker status. WIS-009: Fetch structured worker status.
This replaces the previous string-based version. This replaces the previous string-based version.