Skip to main content

USB Workday Agent - MCP integration for Workday automation with employee time tracking, PTO balances, and holiday calendar tools

Project description

USB Workday Agent

MCP integration for Workday automation.

Overview

This project provides an MCP (Model Context Protocol) server for automating Workday operations. It leverages the FastMCP framework to expose tools and resources for Workday integration.

Prerequisites

  • Python 3.10 or higher
  • a virtual environment
  • MCP-compatible client (e.g., Claude Desktop, Bob)

Installation

Create a new virtual environment:

# Create virtual environment
python -m venv venv

# Activate virtual environment
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -e .

Development

Install Development Dependencies

pip install -e ".[dev]"

Code Formatting

# Format code with black
black .

# Lint with ruff
ruff check .

Testing

pytest

Project Structure

usb-workday-agent/
├── README.md
├── pyproject.toml
├── setup.py
└── (source files to be added)

Dependencies

  • mcp (>=0.9.0): Model Context Protocol core library
  • fastmcp (>=3.0.0): FastMCP framework for building MCP servers

Running the MCP Server

Start the Server

# Activate the wxO-nit virtual environment
source ../wxO-nit/bin/activate

# Run the server directly
python3 server.py

# Or use the installed command (after pip install -e .)
usb-workday-agent

MCP Client Configuration

Add to your MCP client configuration (e.g., Claude Desktop):

{
  "mcpServers": {
    "usb-workday-agent": {
      "command": "python3",
      "args": [".../usb-workday-agent/server.py"],
      "env": {
        "PYTHONPATH": ".../lib/python3.10/site-packages"
      }
    }
  }
}

Available Tools

The server provides the following tools for watsonx Orchestrate:

  • get_employee_daily_hours: Get an employee's office wifi and VPN hours for a specific date
  • get_employee_session_details: Get detailed session information for an employee
  • get_employee_weekly_summary: Get an employee's weekly attendance summary
  • get_team_attendance_stats: Get attendance statistics for a manager's team
  • query_individual_time: Query data from individual employee office time logs

Available Resources

  • workday://config: Get Workday configuration details
  • workday://status: Check connection status to Workday

Configuration

Workday API credentials and configuration should be set via environment variables:

export WORKDAY_TENANT="your-tenant"
export WORKDAY_USERNAME="your-username"
export WORKDAY_PASSWORD="your-password"
export WORKDAY_API_VERSION="v1"

License

MIT License

Author

Amanda Winkles

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

usb_workday_agent-1.1.4.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

usb_workday_agent-1.1.4-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file usb_workday_agent-1.1.4.tar.gz.

File metadata

  • Download URL: usb_workday_agent-1.1.4.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for usb_workday_agent-1.1.4.tar.gz
Algorithm Hash digest
SHA256 1f6b2545e4e3a12f3e8d17405d565c68031a72d73bab9db0d6cdf98dd4d706d9
MD5 82eea2e51355c4a5aebeae3ea51f15b6
BLAKE2b-256 01d0302cbd652f4326f3ffa3bebc24c56d4d6edcc293d4c8468a46090fd8d8ee

See more details on using hashes here.

File details

Details for the file usb_workday_agent-1.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for usb_workday_agent-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bd42d0609710cbc2067def83d65688d37eba054380c54f4386cb6256fdf3f794
MD5 d618942051e5f9fe6e126519b46e5f88
BLAKE2b-256 45f37e69553a2931d01667ae13580c822e4d8546f4de60497508ea763260de55

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