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

timr-mcp

v0.3.1

Published

Model Context Protocol server for the timr time-tracking API

Readme

timr-mcp

Model Context Protocol (stdio) server for the timr time-tracking API. Built on timr-sdk.

"Buy Me A Coffee"

npm version npm downloads install size License: MIT


Unofficial, community-maintained. Not affiliated with troii Software GmbH.

What it exposes

Two tools, using Cloudflare's Code Mode pattern instead of one-tool-per-endpoint:

  • search — run a JavaScript function against the OpenAPI spec (pre-resolved, no $refs) to find endpoints.
  • execute — run a JavaScript function that calls codemode.request({ method, path, query, body }) against the live API. Auth is injected on the host; credentials never enter the agent's code.

This keeps the tool list around 1k tokens instead of the ~15k+ it would take to describe all 80+ endpoints up front, at the cost of requiring the agent to write and run JavaScript.

Install

pnpm add -g timr-mcp
npm install -g timr-mcp

Requires Node 20+.

Authentication

Reuses timr-cli credentials — if you've already run timr auth login, the MCP server picks them up from ~/.config/timr-cli/credentials.json.

Without the CLI, set one of:

  • TIMR_TOKEN — static bearer token
  • TIMR_CLIENT_ID + TIMR_CLIENT_SECRET (+ optional TIMR_TOKEN_URL, TIMR_SCOPE, TIMR_BASE_URL) — OAuth client credentials

Use with Claude Code

claude mcp add --scope user timr npx -- -y timr-mcp

Or add manually to ~/.claude.json:

{
  "mcpServers": {
    "timr": {
      "command": "npx",
      "args": ["-y", "timr-mcp"]
    }
  }
}

Use with other MCP clients

Any client that speaks stdio MCP works:

{
  "command": "npx",
  "args": ["-y", "timr-mcp"]
}

Example agent session

After search finds GET /users, the agent calls execute with:

async () => {
  const res = await codemode.request({
    method: "GET",
    path: "/users",
    query: { limit: 50 }
  });
  return res.data.map(u => ({ id: u.id, name: u.fullname }));
}

The function runs in the MCP process, codemode.request dispatches through timr-sdk with the user's OAuth token, and the mapped result returns to the agent as a text content block.

Security boundary

Agent code runs in the host Node process via AsyncFunction with namespaced Proxies — not a hard sandbox. This matches the trust model of other local MCP servers: the process already holds your credentials; letting an agent (that you chose to run) author code against them is equivalent to letting it call individual tools in sequence.

If you want real isolation, the @cloudflare/codemode DynamicWorkerExecutor provides V8-isolate sandboxing on Cloudflare Workers — the src/executor.ts here can be swapped for that at deploy time.

License

MIT