npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

timesheet-assistant-mcp

v1.1.10

Published

MCP server for generating timesheets and submitting to PSI Project Server

Downloads

2,176

Readme

Timesheet Assistant MCP

An MCP (Model Context Protocol) server for generating timesheets and submitting them to PSI Project Server (SharePoint-based timesheet systems).

Features

  • Timesheet Generation: Generate daily, weekly, monthly, or custom date range timesheets
  • PSI Integration: Automated submission to PSI Project Server
  • Activity Data Integration: Works with Activity Collector MCP for data fetching
  • Smart Summarization: Automatically summarizes work descriptions to 255 characters
  • Browser Automation: Uses Puppeteer for SharePoint authentication and form filling
  • Task Management: Hierarchical task tree navigation for PSI

Prerequisites

⚠️ Important: This MCP requires Activity Collector MCP to fetch activity data from GitLab, GitHub, and Calendar services.

Installation

Via npx (Recommended)

npx timesheet-assistant-mcp

Via npm

npm install -g timesheet-assistant-mcp

From Source

git clone https://github.com/sharadmathuratthepsi/timesheet-mcp.git
cd timesheet-mcp
npm install
npm run build

Configuration

For Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "activity-collector": {
      "command": "npx",
      "args": ["activity-collector-mcp"]
    },
    "timesheet-assistant": {
      "command": "npx",
      "args": ["timesheet-assistant-mcp"]
    }
  }
}

For Claude Code (VS Code)

Add to ~/Library/Application Support/Code/User/mcp.json:

{
  "servers": {
    "activity-collector": {
      "type": "stdio",
      "command": "npx",
      "args": ["activity-collector-mcp"]
    },
    "timesheet-assistant": {
      "type": "stdio",
      "command": "npx",
      "args": ["timesheet-assistant-mcp"]
    }
  }
}

Configuration File

Create ~/.timesheet-assistant-mcp-config.json:

{
  "psi": {
    "url": "https://projectserver.thepsi.com/PWA/_layouts/15/pwa/Timesheet/MyTSSummary.aspx"
  }
}

Usage

First Time Setup

  1. Configure PSI credentials:
    Configure PSI with username: YOUR_USERNAME and password: YOUR_PASSWORD

Generating Timesheets

  • Daily: Generate timesheet for today
  • Weekly: Generate timesheet for this week
  • Monthly: Generate timesheet for November 2024
  • Date Range: Generate timesheet from 2024-12-01 to 2024-12-07

Submitting to PSI

  1. Generate timesheet (using Activity Collector MCP)
  2. Get PSI tasks (call once, reuse for all days):
    Get PSI tasks for 2024-12-05
  3. Select task from the hierarchical tree
  4. Submit timesheet:
    Submit to PSI for 2024-12-05 with task index 3 and description "..."

Available Tools (8)

Timesheet Generation (4 tools)

  • generate_timesheet - Generate monthly timesheet
  • generate_weekly_timesheet - Generate weekly timesheet
  • generate_daily_timesheet - Generate single day timesheet
  • generate_date_range_timesheet - Generate custom date range timesheet

Note: These tools orchestrate the Activity Collector MCP to fetch data.

PSI Integration (4 tools)

  • configure_psi - Configure PSI credentials
  • get_psi_tasks - Get available tasks from PSI (call once per timesheet period)
  • submit_to_psi - Submit timesheet entry to PSI
  • inspect_psi_page - Debug PSI page structure

How It Works

Timesheet Generation Flow

  1. LLM calls timesheet generation tool (e.g., generate_weekly_timesheet)
  2. Tool returns instructions for fetching data from Activity Collector MCP
  3. LLM uses Activity Collector tools (fetch_gitlab_activity, fetch_github_activity, fetch_google_calendar_events)
  4. LLM builds and formats the timesheet

PSI Submission Flow

  1. Call get_psi_tasks once to get available tasks
  2. User selects a task by index
  3. Call submit_to_psi for each day (reusing same task index)
  4. Browser automation fills SharePoint form and saves

PSI Integration Details

  • Uses Puppeteer for browser automation
  • Supports HTTP Basic Auth for SharePoint
  • Handles lazy-loaded accordion trees for task selection
  • Smart grid cell detection for SharePoint JSGrid
  • Automatic form filling with MouseEvent simulation

Security

  • PSI credentials stored in ~/.timesheet-assistant-mcp-tokens.json with restricted permissions (600)
  • Browser runs in non-headless mode by default (can see what's happening)
  • All data remains local

Troubleshooting

Activity Collector Not Available

Error: fetch_gitlab_activity tool not found

Solution: Install and configure Activity Collector MCP

PSI Submission Fails

Error: Could not find hours cell

Solution: Run inspect_psi_page to check PSI page structure

Browser Crashes

Solution: Ensure Puppeteer dependencies are installed:

npm install puppeteer

License

MIT

Contributing

Issues and pull requests welcome!

Author

Sharad Mathur ([email protected])

Related Projects