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

@temps-sdk/mcp

v0.1.3

Published

Temps MCP Server - Model Context Protocol integration for the Temps deployment platform

Readme

Temps MCP Server

Model Context Protocol (MCP) server for the Temps platform. Provides AI assistants with reusable prompts to interact with Temps projects, deployments, and infrastructure.

Features

  • Prompts: Reusable prompt templates for common Temps operations
    • add_react_analytics - Step-by-step guide to add analytics to React apps

Installation

# Install dependencies
bun install

# Build the server
bun run build

Quick Start

Test with MCP Inspector (Recommended)

# Install MCP Inspector globally
npm install -g @modelcontextprotocol/inspector

# Run the inspector
mcp-inspector node dist/index.js

This opens a web interface where you can test all prompts interactively.

Use with Claude Desktop

Add to your Claude Desktop configuration file:

macOS/Linux: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

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

Restart Claude Desktop to activate the server.

Project Structure

mcp/
├── src/
│   ├── index.ts              # Main server entry point
│   ├── types/                # Shared type definitions
│   │   └── index.ts          # Prompt types
│   ├── handlers/             # Request handlers
│   │   ├── index.ts          # Handler exports
│   │   └── prompts-handler.ts    # Prompt request handling
│   └── prompts/              # Prompt implementations (one per file)
│       ├── index.ts              # Prompts registry
│       └── add-react-analytics.ts # React analytics setup guide
├── dist/                     # Compiled JavaScript output
├── package.json
├── tsconfig.json
├── TESTING.md               # Detailed testing guide
└── README.md                # This file

Development

Watch Mode

Auto-rebuild on file changes:

bun run dev

Type Checking

bun run type-check

Building

bun run build

Adding a New Prompt

  1. Create src/prompts/my-prompt.ts:
import { PromptDefinition } from '../types/index.js';

export const myPrompt: PromptDefinition = {
  name: 'my_prompt',
  description: 'Description of this prompt',
  arguments: [
    {
      name: 'param1',
      description: 'First parameter',
      required: true,
    },
  ],
  handler: async (args) => {
    const param1 = args.param1 as string;

    return {
      messages: [
        {
          role: 'user',
          content: {
            type: 'text',
            text: `User message with ${param1}`,
          },
        },
        {
          role: 'assistant',
          content: {
            type: 'text',
            text: 'Assistant response',
          },
        },
      ],
    };
  },
};
  1. Export from src/prompts/index.ts:
import { myPrompt } from './my-prompt.js';

export const prompts = [
  // ... existing prompts
  myPrompt,
];
  1. Rebuild and test:
bun run build
mcp-inspector node dist/index.js

Architecture

The server follows a modular architecture:

  • Types: Shared TypeScript interfaces for prompts
  • Handlers: Handle MCP protocol requests and delegate to prompt implementations
  • Prompts: Individual prompt implementations in separate files for maintainability

This structure makes it easy to:

  • Add new prompts without modifying existing code
  • Test individual prompts in isolation
  • Understand the codebase at a glance
  • Scale to dozens of prompts

Testing

See TESTING.md for comprehensive testing instructions.

Quick test:

# Using MCP Inspector
mcp-inspector node dist/index.js

# Or run the test script
./test-local.sh

Available Prompts

add_react_analytics

Comprehensive guide to add Temps analytics to a React application with step-by-step instructions for different frameworks.

Arguments:

  • framework (string, required): The React framework being used
    • nextjs-app - Next.js App Router (13+)
    • nextjs-pages - Next.js Pages Router
    • vite - Vite + React
    • cra - Create React App
    • remix - Remix Framework
  • project_id (number, optional): The Temps project ID for analytics

Features Included:

  • Installation and basic setup
  • Provider configuration
  • Custom event tracking (useTrackEvent)
  • Scroll visibility tracking (useScrollVisibility)
  • Page leave tracking with time on page (usePageLeave)
  • User engagement tracking with heartbeat system (useEngagementTracking)
  • Session recording with privacy controls (useSessionRecording)
  • Performance tracking with Web Vitals (useSpeedAnalytics)
  • Manual pageview tracking (useTrackPageview)
  • User identification
  • Advanced provider configuration
  • Comprehensive troubleshooting guide

Usage:

{
  "name": "add_react_analytics",
  "arguments": {
    "framework": "nextjs-app",
    "project_id": 1
  }
}

Example Response Includes:

  • Framework-specific installation steps
  • Provider setup with configuration options
  • Code examples for all tracking hooks
  • Privacy and performance considerations
  • Debug mode and troubleshooting tips

Next Steps

  • [ ] Connect to actual Temps API for real data
  • [ ] Add authentication/authorization
  • [ ] Create more useful prompts (debugging, optimization, troubleshooting)
  • [ ] Add error handling and retries
  • [ ] Write unit tests
  • [ ] Publish to npm

Resources

License

MIT