Metadata-Version: 2.4
Name: mcp-epochs
Version: 0.1.0
Summary: MCP tool that provides current Unix timestamp
Project-URL: Homepage, https://github.com/daedalus/mcp-epochs
Project-URL: Repository, https://github.com/daedalus/mcp-epochs
Project-URL: Issues, https://github.com/daedalus/mcp-epochs/issues
Author-email: Dario Clavijo <clavijodario@gmail.com>
License: MIT
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: mcp>=1.0.0
Provides-Extra: all
Requires-Dist: hatch; extra == 'all'
Requires-Dist: hypothesis; extra == 'all'
Requires-Dist: mypy; extra == 'all'
Requires-Dist: pytest; extra == 'all'
Requires-Dist: pytest-asyncio; extra == 'all'
Requires-Dist: pytest-cov; extra == 'all'
Requires-Dist: pytest-mock; extra == 'all'
Requires-Dist: ruff; extra == 'all'
Provides-Extra: dev
Requires-Dist: hatch; extra == 'dev'
Requires-Dist: mypy; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Provides-Extra: lint
Requires-Dist: mypy; extra == 'lint'
Requires-Dist: ruff; extra == 'lint'
Provides-Extra: test
Requires-Dist: hypothesis; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-asyncio; extra == 'test'
Requires-Dist: pytest-cov; extra == 'test'
Requires-Dist: pytest-mock; extra == 'test'
Description-Content-Type: text/markdown

# mcp-epochs

mcp-name: io.github.daedalus/mcp-epochs

> MCP tool that provides current Unix timestamp (epochs) to LLMs.

[![PyPI](https://img.shields.io/pypi/v/mcp-epochs.svg)](https://pypi.org/project/mcp-epochs/)
[![Python](https://img.shields.io/pypi/pyversions/mcp-epochs.svg)](https://pypi.org/project/mcp-epochs/)
[![Coverage](https://codecov.io/gh/daedalus/mcp-epochs/branch/master/graph/badge.svg)](https://codecov.io/gh/daedalus/mcp-epochs)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

## Install

```bash
pip install mcp-epochs
```

## Usage

```bash
mcp-epochs
```

This runs the MCP server with STDIO transport. The server provides a `get_unix_time` tool.

## MCP Configuration

```json
{
  "mcpServers": {
    "mcp-epochs": {
      "command": "mcp-epochs"
    }
  }
}
```

## Development

```bash
git clone https://github.com/daedalus/mcp-epochs.git
cd mcp-epochs
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/
```

## API

### `get_unix_time()`

Returns the current Unix timestamp as a dictionary with the following keys:

- `unix_time` (int): Current Unix timestamp in seconds since epoch.
- `unix_time_ms` (int): Current Unix timestamp in milliseconds since epoch.
- `iso8601` (str): Current UTC time in ISO 8601 format (e.g., "2026-03-26T21:30:00Z").

### `run_server()`

Starts the MCP server using STDIO transport for local desktop MCP clients.
