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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mcp-wtit

v0.1.2

Published

A Model Context Protocol (MCP) server that provides current time in ISO8601 format with timezone support

Downloads

52

Readme

MCP-WTIT (What Time Is It?)

A Model Context Protocol (MCP) server that provides current time in ISO8601 format with timezone support.

🚀 Features

  • ⏰ Get current time with detailed information (ISO8601, timestamp, timezone)
  • 🌍 Support for all IANA timezones
  • 🎯 Optional milliseconds precision
  • 🏗️ Clean Architecture design
  • 📦 ESModules with TypeScript 5.6+
  • ✅ Comprehensive test coverage
  • 🔧 Type-safe with strict TypeScript configuration

📋 Requirements

  • Node.js 18.0.0 or higher
  • npm or yarn

🛠️ Installation

As a global package

# Install globally
npm install -g mcp-wtit

# Run the server
mcp-wtit

As a dependency

# Install as a dependency
npm install mcp-wtit

From source

# Clone the repository
git clone https://github.com/yorifuji/mcp-wtit.git
cd mcp-wtit

# Install dependencies
npm install

# Build the project
npm run build

# Run the server
npm start

🚦 Quick Start

For MCP Clients (Claude Desktop, etc.)

Add to your MCP client configuration:

If installed globally:

{
  "mcpServers": {
    "mcp-wtit": {
      "command": "mcp-wtit"
    }
  }
}

If installed locally:

{
  "mcpServers": {
    "mcp-wtit": {
      "command": "node",
      "args": ["./node_modules/mcp-wtit/dist/index.js"]
    }
  }
}

From source:

{
  "mcpServers": {
    "mcp-wtit": {
      "command": "node",
      "args": ["/path/to/mcp-wtit/dist/index.js"]
    }
  }
}

Debug with MCP Inspector

MCP Inspector provides a web-based interface to test and debug your MCP server:

# Build the project first
npm run build

# Run with MCP Inspector
npm run inspect

This will:

  1. Start the MCP Inspector on http://localhost:6274
  2. Automatically open your browser
  3. Connect to the MCP server with debug capabilities

In the Inspector, you can:

  • View available tools and their schemas
  • Test tool calls with different parameters
  • Monitor request/response communication
  • Debug server behavior in real-time

For Development

# Run in development mode
npm run dev

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Lint code
npm run lint

# Type check
npm run typecheck

📚 API Documentation

Tools

get_current_time

Get the current time with detailed information.

Parameters:

  • includeMilliseconds (boolean, optional): Include milliseconds in ISO8601 format (default: true)
  • timezone (string, optional): Timezone for the time (default: "UTC")

Response:

{
  "iso8601": "2024-01-15T10:30:45.123Z",
  "timestamp": 1705315845123,
  "timezone": "UTC"
}

🏛️ Architecture

This project follows Clean Architecture principles:

src/
├── domain/          # Business logic (no dependencies)
├── application/     # Use cases
├── infrastructure/  # External interfaces (MCP)
├── shared/          # Shared types and utilities
└── di/              # Dependency injection

See Architecture Documentation for details.

🧪 Testing

Tests are located in the tests/ directory and use Vitest:

# Run all tests
npm test

# Run tests in watch mode
npm run test:watch

# Generate coverage report
npm run test:coverage

📦 Scripts

| Script | Description | |--------|-------------| | npm run build | Build the TypeScript project | | npm run dev | Run in development mode | | npm start | Run the built server | | npm run inspect | Debug with MCP Inspector | | npm test | Run tests | | npm run test:watch | Run tests in watch mode | | npm run test:coverage | Run tests with coverage report | | npm run lint | Run ESLint | | npm run lint:fix | Run ESLint and fix issues | | npm run typecheck | Run TypeScript type checking |

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📦 NPM Package

npm version License: MIT Node.js Version

Published on npm: mcp-wtit