open-index/open-npm huggingface dataset:
npm package: @prompt-ot/mcp
Description: Model Context Protocol server for PromptOT — manage, edit, and publish prompts from Claude Desktop, Cursor, Codex, ChatGPT, and any other MCP-compatible AI tool.
Author: PromptOT
Latest version: 0.1.1

# @prompt-ot/mcp

Model Context Protocol server for [PromptOT](https://www.promptot.com).

Use PromptOT directly from Claude Desktop, Cursor, Codex CLI, ChatGPT, claude.ai, or any other MCP-compatible AI tool. The server exposes ~35 tools for managing prompts, blocks, variables, versions, test cases, and more — all gated by scoped API keys.

## Install

### Claude Desktop

Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):

```json
{
  "mcpServers": {
    "promptot": {
      "command": "npx",
      "args": ["-y", "@prompt-ot/mcp"],
      "env": {
        "PROMPTOT_API_KEY": "pot_...",
        "PROMPTOT_MCP_CLIENT": "claude-desktop"
      }
    }
  }
}
```

Generate your API key from the PromptOT dashboard → project → API Keys → "Generate MCP Key".

### Cursor

Add to `~/.cursor/mcp.json` (or `.cursor/mcp.json` in your workspace root):

```json
{
  "mcpServers": {
    "promptot": {
      "command": "npx",
      "args": ["-y", "@prompt-ot/mcp"],
      "env": {
        "PROMPTOT_API_KEY": "pot_...",
        "PROMPTOT_MCP_CLIENT": "cursor"
      }
    }
  }
}
```

### Codex CLI

Add to `~/.codex/config.toml`:

```toml
[mcp_servers.promptot]
command = "npx"
args = ["-y", "@prompt-ot/mcp"]
env = { PROMPTOT_API_KEY = "pot_...", PROMPTOT_MCP_CLIENT = "codex-cli" }
```

### ChatGPT & claude.ai (hosted)

The hosted transport is at `https://mcp.promptot.com/mcp`. Connect via OAuth from the client's MCP settings — no config file needed.

## Environment variables

| Variable | Required | Default | Description |
|---|---|---|---|
| `PROMPTOT_API_KEY` | Yes | — | Your scoped API key from the PromptOT dashboard |
| `PROMPTOT_API_URL` | No | `https://api.promptot.com` | Override for self-hosted or local dev |
| `PROMPTOT_MCP_CLIENT` | No | `unknown` | Client identifier for analytics (`claude-desktop`, `cursor`, `codex-cli`, etc.) |
| `PROMPTOT_DEBUG` | No | `false` | Enable verbose stderr logging for troubleshooting |

## Docs

Full tool reference and FAQ: https://www.promptot.com/docs/mcp

## License

MIT
npm package: @prompt-pilot/claude-code
Description: Prompt Pilot integration for Claude Code - enhance prompts with AI
Author: Prompt Pilot
Latest version: 1.0.2

# @prompt-pilot/claude-code

Prompt Pilot integration for [Claude Code](https://claude.ai/code) - enhance your prompts with AI directly in your CLI workflow.

## Installation

```bash
npm install -g @prompt-pilot/claude-code
```

## Setup

After installation, run the setup command:

```bash
prompt-pilot-setup
```

This will:
1. Configure the Prompt Pilot MCP server connection
2. Install slash commands (`/enhance`, `/prompt-pilot-status`, `/prompt-pilot-help`)
3. Install the Prompt Pilot skill for natural language requests

## Usage

### Slash Commands

```bash
# Start Claude Code
claude

# Enhance a prompt
> /enhance Write code to sort a list

# Check your usage
> /prompt-pilot-status

# Get help
> /prompt-pilot-help
```

### Natural Language

You can also ask Claude naturally:

```
> Enhance this prompt: Write code to parse JSON
> Improve my prompt for generating test cases
> Make this prompt better: Help me debug this error
```

## Features

- **AI-Powered Enhancement**: Improves clarity, specificity, and structure
- **Domain-Aware**: Optimizes differently for code, writing, analysis, etc.
- **Multiple Output Formats**: NORMAL, XML, JSON, DYNAMIC_JSON
- **Usage Tracking**: Monitor your daily quota

## Subscription Tiers

| Tier | Daily Limit | Price |
|------|-------------|-------|
| FREE | 3/day | Free |
| PRO | 100/day | $3/month |
| MAX | 10,000/day | $7/month |

Get an API key and manage your subscription at [app.trypromptpilot.com](https://app.trypromptpilot.com)

## API Key

For unlimited enhancements, get an API key:

1. Visit [app.trypromptpilot.com](https://app.trypromptpilot.com)
2. Go to Settings > API Keys
3. Generate a new key
4. Run `prompt-pilot-setup` and enter your key

Without an API key, you can still use 3 free enhancements per day.

## Example

```
> /enhance Fix the bug in my Python code that's causing memory issues

Enhanced:

Debug and fix memory issues in my Python code with the following approach:

1. **Identify the leak**: Use memory_profiler or tracemalloc to find objects
   that aren't being garbage collected

2. **Common causes to check**:
   - Circular references
   - Global variables holding large objects
   - Unclosed file handles or connections
   - Growing lists/dicts in loops

3. **Provide the fix**: Show the corrected code with explanation

4. **Verify**: Include a test to confirm memory is properly released

Please share the problematic code so I can analyze the specific issue.

---
Improvements: Added debugging methodology, common patterns, verification step
Usage: 2/100 remaining (PRO tier)
```

## Links

- Website: [trypromptpilot.com](https://trypromptpilot.com)
- Dashboard: [app.trypromptpilot.com](https://app.trypromptpilot.com)
- Support: support@trypromptpilot.com

## License

MIT
npm package: @prompt-pilot/copilot
Description: Prompt Pilot integration for VS Code GitHub Copilot - enhance prompts with AI in Copilot Chat
Author: Prompt Pilot
Latest version: 1.0.0

# @prompt-pilot/copilot

Prompt Pilot integration for [VS Code GitHub Copilot](https://github.com/features/copilot) - enhance your prompts with AI directly in Copilot Chat.

## Requirements

- VS Code 1.99+ (April 2025 or later)
- GitHub Copilot extension installed

## Installation

```bash
npm install -g @prompt-pilot/copilot
```

## Setup

After installation, run the setup command:

```bash
prompt-pilot-copilot-setup
```

This will:
- Configure the Prompt Pilot MCP server in VS Code settings

**Important:** Restart VS Code after setup.

## Usage

Open Copilot Chat in VS Code (Cmd+Shift+I / Ctrl+Shift+I) and use:

```
@prompt-pilot enhance my prompt: Write code to sort a list

improve this prompt: Help me debug a React component

make this better: Generate unit tests for my function
```

Or check your usage:

```
@prompt-pilot check my status
```

## Features

- **AI-Powered Enhancement**: Improves clarity, specificity, and structure
- **Domain-Aware**: Optimizes differently for code, writing, analysis, etc.
- **Multiple Output Formats**: NORMAL, XML, JSON, DYNAMIC_JSON
- **Usage Tracking**: Monitor your daily quota

## Subscription Tiers

| Tier | Daily Limit | Price |
|------|-------------|-------|
| FREE | 3/day | Free |
| PRO | 100/day | $3/month |
| MAX | 10,000/day | $7/month |

Get an API key and manage your subscription at [app.trypromptpilot.com](https://app.trypromptpilot.com)

## API Key

For more enhancements, get an API key:

1. Visit [app.trypromptpilot.com](https://app.trypromptpilot.com)
2. Go to Settings > API Keys
3. Generate a new key
4. Run `prompt-pilot-copilot-setup` and enter your key

Or set the environment variable:
```bash
export PROMPT_PILOT_API_KEY=pp_live_your_key_here
```

Without an API key, you can still use 3 free enhancements per day.

## Manual Configuration

If automatic setup fails, add this to your VS Code settings.json (Cmd+, then click "Open Settings (JSON)"):

```json
{
  "mcp.servers": {
    "prompt-pilot": {
      "url": "https://api.trypromptpilot.com/mcp/v1",
      "headers": {
        "X-API-Key": "YOUR_API_KEY_HERE"
      }
    }
  }
}
```

Then restart VS Code.

## Troubleshooting

### MCP tools not available

1. Ensure VS Code is version 1.99 or later
2. Ensure GitHub Copilot extension is installed and active
3. Restart VS Code after setup
4. Check settings.json has the `mcp.servers` configuration

### "prompt-pilot MCP server not found"

1. Verify `mcp.servers` in settings.json
2. Check API key is valid
3. Restart VS Code

## Other Platforms

Looking for Prompt Pilot on other platforms?
- **Cursor IDE**: Use `@prompt-pilot/cursor`
- **Claude Code (Terminal)**: Use `@prompt-pilot/claude-code`

## Links

- Website: [trypromptpilot.com](https://trypromptpilot.com)
- Dashboard: [app.trypromptpilot.com](https://app.trypromptpilot.com)
- Support: support@trypromptpilot.com

## License

MIT
npm package: @prompt-pilot/cursor
Description: Prompt Pilot integration for Cursor IDE - enhance prompts with AI in your AI chat
Author: Prompt Pilot
Latest version: 1.0.0

# @prompt-pilot/cursor

Prompt Pilot integration for [Cursor IDE](https://cursor.sh) - enhance your prompts with AI directly in Cursor's AI chat.

## Installation

```bash
npm install -g @prompt-pilot/cursor
```

## Setup

After installation, run the setup command:

```bash
prompt-pilot-cursor-setup
```

This will:
- Configure the Prompt Pilot MCP server in `~/.cursor/mcp.json`

**Important:** Restart Cursor completely (Cmd+Q / Alt+F4) after setup.

## Usage

Open the AI chat in Cursor (Cmd+L / Ctrl+L) and use naturally:

```
enhance my prompt: Write code to sort a list

improve this prompt: Help me debug a React component

make this better: Generate unit tests for my function
```

Or check your usage:

```
check my prompt pilot status
```

## Features

- **AI-Powered Enhancement**: Improves clarity, specificity, and structure
- **Domain-Aware**: Optimizes differently for code, writing, analysis, etc.
- **Multiple Output Formats**: NORMAL, XML, JSON, DYNAMIC_JSON
- **Usage Tracking**: Monitor your daily quota

## Subscription Tiers

| Tier | Daily Limit | Price |
|------|-------------|-------|
| FREE | 3/day | Free |
| PRO | 100/day | $3/month |
| MAX | 10,000/day | $7/month |

Get an API key and manage your subscription at [app.trypromptpilot.com](https://app.trypromptpilot.com)

## API Key

For more enhancements, get an API key:

1. Visit [app.trypromptpilot.com](https://app.trypromptpilot.com)
2. Go to Settings > API Keys
3. Generate a new key
4. Run `prompt-pilot-cursor-setup` and enter your key

Or set the environment variable:
```bash
export PROMPT_PILOT_API_KEY=pp_live_your_key_here
```

Without an API key, you can still use 3 free enhancements per day.

## Manual Configuration

If automatic setup fails, manually create `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "prompt-pilot": {
      "url": "https://api.trypromptpilot.com/mcp/v1",
      "headers": {
        "X-API-Key": "YOUR_API_KEY_HERE"
      }
    }
  }
}
```

Then restart Cursor.

## Troubleshooting

### "No access to prompt-pilot MCP server"

1. Ensure `~/.cursor/mcp.json` exists and has correct config
2. Restart Cursor completely (Cmd+Q / Alt+F4)
3. Check API key is valid

### MCP tools not showing

1. Make sure you're in the AI chat (Cmd+L)
2. Cursor must be completely restarted after setup
3. Check `~/.cursor/mcp.json` is valid JSON

## Other Platforms

Looking for Prompt Pilot on other platforms?
- **Claude Code (Terminal)**: Use `@prompt-pilot/claude-code`
- **VS Code Copilot**: Use `@prompt-pilot/copilot`

## Links

- Website: [trypromptpilot.com](https://trypromptpilot.com)
- Dashboard: [app.trypromptpilot.com](https://app.trypromptpilot.com)
- Support: support@trypromptpilot.com

## License

MIT
npm package: @prompt-stack/cli
Description: Prompt Stack CLI - Install and manage MCP stacks, runtimes, and tools
Latest version: 2.0.1

# pstack

Package manager for MCP stacks. Install tools that work with Claude, Codex, and Gemini.

## Install

```bash
npm i -g @prompt-stack/cli
```

## Quick Start

```bash
# See what's available
pstack search --all

# Install a stack
pstack install stack:slack

# Add your API key
nano ~/.prompt-stack/stacks/slack/.env

# Done - Claude/Codex/Gemini can now use Slack tools
```

## Commands

```bash
pstack search <query>      # Search for packages
pstack search --all        # List all packages
pstack install <pkg>       # Install a package
pstack remove <pkg>        # Remove a package
pstack list [kind]         # List installed (stacks, runtimes, tools, agents)
pstack update [pkg]        # Update packages
pstack doctor              # Check system health
```

## Available Stacks

| Stack | Description | Auth |
|-------|-------------|------|
| `stack:postgres` | Query PostgreSQL databases | DATABASE_URL |
| `stack:slack` | Send messages, search channels | SLACK_BOT_TOKEN |
| `stack:notion-workspace` | Pages, databases, search | NOTION_API_KEY |
| `stack:google-workspace` | Gmail, Sheets, Docs, Drive, Calendar | OAuth |
| `stack:google-ai` | Gemini, Imagen, Veo | GOOGLE_AI_API_KEY |
| `stack:openai` | DALL-E, Whisper, TTS, Sora | OPENAI_API_KEY |
| `stack:zoho-mail` | Email via Zoho | OAuth |
| `stack:content-extractor` | YouTube, Reddit, TikTok transcripts | - |
| `stack:video-editor` | Trim, speed, compress videos | - |
| `stack:ms-office` | Read Word/Excel files | - |
| `stack:whisper` | Local audio transcription | - |

## Secrets

Each stack has its own `.env` file:

```
~/.prompt-stack/stacks/<stack>/.env
```

When you install a stack, a `.env` is created with placeholders. Add your keys:

```bash
# ~/.prompt-stack/stacks/postgres/.env
DATABASE_URL=postgresql://user:pass@host:5432/db
```

Secrets are automatically injected into Claude, Codex, and Gemini configs.

## How It Works

1. `pstack install stack:slack` downloads the MCP server
2. Creates `.env` with required secrets as placeholders
3. Registers the MCP server in `~/.claude/settings.json`, `~/.codex/config.toml`, `~/.gemini/settings.json`
4. You fill in the API key in `.env`
5. Claude/Codex/Gemini can now use the tools

## Data Location

```
~/.prompt-stack/
├── stacks/           # MCP servers (each with .env)
├── runtimes/         # Node, Python, Deno
├── tools/            # ffmpeg, ripgrep, etc.
├── agents/           # Claude, Codex, Gemini CLIs
└── prompt-stack.db   # Local database
```

## License

MIT
npm package: @prompt-stack/prompt-stack
Description: Prompt Stack CLI - Install and manage MCP stacks, runtimes, and tools
Latest version: 2.0.0
Deprecated: Package moved to @prompt-stack/cli - run: npm i -g @prompt-stack/cli

# pstack

Package manager for MCP stacks. Install tools that work with Claude, Codex, and Gemini.

## Install

```bash
npm i -g @prompt-stack/prompt-stack
```

## Quick Start

```bash
# See what's available
pstack search --all

# Install a stack
pstack install stack:slack

# Add your API key
nano ~/.prompt-stack/stacks/slack/.env

# Done - Claude/Codex/Gemini can now use Slack tools
```

## Commands

```bash
pstack search <query>      # Search for packages
pstack search --all        # List all packages
pstack install <pkg>       # Install a package
pstack remove <pkg>        # Remove a package
pstack list [kind]         # List installed (stacks, runtimes, tools, agents)
pstack update [pkg]        # Update packages
pstack doctor              # Check system health
```

## Available Stacks

| Stack | Description | Auth |
|-------|-------------|------|
| `stack:postgres` | Query PostgreSQL databases | DATABASE_URL |
| `stack:slack` | Send messages, search channels | SLACK_BOT_TOKEN |
| `stack:notion-workspace` | Pages, databases, search | NOTION_API_KEY |
| `stack:google-workspace` | Gmail, Sheets, Docs, Drive, Calendar | OAuth |
| `stack:google-ai` | Gemini, Imagen, Veo | GOOGLE_AI_API_KEY |
| `stack:openai` | DALL-E, Whisper, TTS, Sora | OPENAI_API_KEY |
| `stack:zoho-mail` | Email via Zoho | OAuth |
| `stack:content-extractor` | YouTube, Reddit, TikTok transcripts | - |
| `stack:video-editor` | Trim, speed, compress videos | - |
| `stack:ms-office` | Read Word/Excel files | - |
| `stack:whisper` | Local audio transcription | - |

## Secrets

Each stack has its own `.env` file:

```
~/.prompt-stack/stacks/<stack>/.env
```

When you install a stack, a `.env` is created with placeholders. Add your keys:

```bash
# ~/.prompt-stack/stacks/postgres/.env
DATABASE_URL=postgresql://user:pass@host:5432/db
```

Secrets are automatically injected into Claude, Codex, and Gemini configs.

## How It Works

1. `pstack install stack:slack` downloads the MCP server
2. Creates `.env` with required secrets as placeholders
3. Registers the MCP server in `~/.claude/settings.json`, `~/.codex/config.toml`, `~/.gemini/settings.json`
4. You fill in the API key in `.env`
5. Claude/Codex/Gemini can now use the tools

## Data Location

```
~/.prompt-stack/
├── stacks/           # MCP servers (each with .env)
├── runtimes/         # Node, Python, Deno
├── tools/            # ffmpeg, ripgrep, etc.
├── agents/           # Claude, Codex, Gemini CLIs
└── prompt-stack.db   # Local database
```

## License

MIT
npm package: @prompt-template/ai-sdk
Description: AI SDK @prompt-template adapter
Author: Aaron Casanova
Latest version: 0.5.2

# @prompt-template/ai-sdk

`@prompt-template/ai-sdk` provides an adapter for integrating [`@prompt-template/core`](https://github.com/prompt-template/prompt-template/tree/main/packages/core) with AI SDK APIs. This adapter allows you to define chat prompt templates and formatting them into AI SDK-compliant chat completion messages.

## Installation

```sh
npm i @prompt-template/core @prompt-template/ai-sdk
```

## Usage

```ts
import { PromptTemplate } from '@prompt-template/core'
import { ChatPromptTemplate } from '@prompt-template/ai-sdk'

const chatPromptTemplate = ChatPromptTemplate.from([
  {
    role: 'system',
    content: 'You are a friendly assistant.',
  },
  {
    role: 'user',
    promptTemplate: PromptTemplate.create`
      Brainstorm 3 names for a superhero ${'animal'}.
    `,
  },
])

const messages = chatPromptTemplate.format({
  animal: 'cat',
})
//=> [
//     { role: 'system', content: 'You are a friendly assistant.' },
//     { role: 'user', content: 'Brainstorm 3 names for a superhero cat.' }
//   ]
```

## API

### `ChatPromptTemplate.from`

A static method that creates a `ChatPromptTemplate` instance from an array of chat prompt template messages.

```ts
const chatPromptTemplate = ChatPromptTemplate.from([
  {
    role: 'system',
    content: 'You are a friendly assistant.',
  },
  {
    role: 'user',
    promptTemplate: PromptTemplate.create`
      Brainstorm 3 names for a superhero ${'animal'}.
    `,
  },
])
```

### `ChatPromptTemplate.format`

A method that formats the `ChatPromptTemplate` instances into AI SDK-compliant chat completion messages.

```ts
const messages = chatPromptTemplate.format({
  animal: 'cat',
})
//=> [
//     { role: 'system', content: 'You are a friendly assistant.' },
//     { role: 'user', content: 'Brainstorm 3 names for a superhero cat.' }
//   ]
```
npm package: @prompt-template/cli
Description: A CLI to inspect and format prompt templates
Author: Aaron Casanova
Latest version: 0.3.0

# @prompt-template/cli

A CLI to inspect and format prompt templates. Provide input variables via CLI flags and pipe formatted prompt templates into code agents, such as Claude Code or Codex.

## Installation

Install the following dependencies in the project containing your prompt templates:

```sh
npm i @prompt-template/core @prompt-template/cli
```

## Usage

```bash
# Create a new prompt template
npx @prompt-template/cli create

# Inspect a prompt template
npx @prompt-template/cli inspect <prompt-template-file>

# Format a prompt template
npx @prompt-template/cli format <prompt-template-file> --input <input>

# Pipe a formatted prompt template to a code agent
npx @prompt-template/cli format <prompt-template-file> | claude
```

Need help? Run:

```sh
npx @prompt-template/cli help
```

## Example workflow

Given the following `~/prompts/summarize-file.ts` prompt template:

```ts
import { PromptTemplate } from '@prompt-template/core'

export default PromptTemplate.create`
  Summarize the contents of ${'filePath'} in bullet points.

  Additional instructions:
  ${{
    name: 'instructions',
    description: 'Additional instructions for summarization',
    default: 'N/A',
  }}
`
```

> Assumes `@prompt-template/core` is installed in `~/prompts`.

1. **Inspect the prompt template's input variables:**

```bash
npx @prompt-template/cli inspect ~/prompts/summarize-file.ts
```

```text
> Input variables:
    --filePath <filePath>
    --instructions <instructions> (optional) Additional instructions for summarization

  Example usage:
    npx @prompt-template/cli format summarize-file.ts \
      --filePath <filePath> \
      --instructions <instructions>
```

2. **Format the prompt template with input values (via CLI flags):**

```bash
npx @prompt-template/cli format ~/prompts/summarize-file.ts \
  --filePath /path/to/file.md
```

```text
> Summarize the contents of /path/to/file.md in bullet points.

  Additional instructions:
  N/A
```

3. **Pipe the formatted prompt template to a code agent (e.g. Claude Code or Codex):**

```bash
npx @prompt-template/cli format ~/prompts/summarize-file.ts \
  --filePath /path/to/file.md | claude
```

```text
> Summary of /path/to/file.md...
```

4. **Pipe the formatted prompt template to multiple code agents:**

Serial:

```bash
for file in dir/*.md; do
  npx @prompt-template/cli format ~/prompts/summarize-file.ts \
    --instructions "Write the summary to an adjacent file suffixed with -summary.md" \
    --filePath "$PWD/$file" | claude -p
done
```

Parallel:

```bash
echo dir/*.md | xargs -n 1 -P 4 -I {} \
  npx @prompt-template/cli format ~/prompts/summarize-file.ts \
    --instructions "Write the summary to an adjacent file suffixed with -summary.md" \
    --filePath "$PWD/{}" | claude -p
```

See the [core package](https://github.com/prompt-template/prompt-template/tree/main/packages/core) for more details and API documentation.
npm package: @prompt-template/formatters
Description: A collection of @prompt-template formatters
Author: Aaron Casanova
Latest version: 0.2.8

# @prompt-template/formatters

`@prompt-template/formatters` provides a collection of formatters for use with [`@prompt-template/core`](https://github.com/prompt-template/prompt-template/tree/main/packages/core). These formatters allow you to customize the formatting of input variables in your prompt templates.

## Installation

```sh
npm i @prompt-template/core @prompt-template/formatters
```

## Usage

```ts
import { PromptTemplate } from '@prompt-template/core'
import { camelCase } from '@prompt-template/formatters'

const promptTemplate = PromptTemplate.create`
  foo ${{ name: 'input', onFormat: camelCase }}
`

const prompt = promptTemplate.format({
  input: 'bar baz',
})
//=> 'foo barBaz'
```

**Or more concisely**

```ts
import { PromptTemplate } from '@prompt-template/core'
import { withCamelCase } from '@prompt-template/formatters'

const promptTemplate = PromptTemplate.create`
  foo ${withCamelCase('input')}
`

const prompt = promptTemplate.format({
  input: 'bar baz',
})
//=> 'foo barBaz'
```

## API

### `camelCase`

A formatter that converts the input string to camel case.

#### With `onFormat`

```ts
const promptTemplate = PromptTemplate.create`
  foo ${{ name: 'input', onFormat: camelCase }}
`

const prompt = promptTemplate.format({
  input: 'bar baz',
})
//=> 'foo barBaz'
```

#### With `PromptTemplateInputVariableName`

```ts
const promptTemplate = PromptTemplate.create`
  foo ${withCamelCase('input')}
`

const prompt = promptTemplate.format({
  input: 'bar baz',
})
//=> 'foo barBaz'
```

### With `PromptTemplateInputVariableConfig` options

```ts
const promptTemplate = PromptTemplate.create`
  foo ${withCamelCase('input', { default: 'default' })}
`

const prompt = promptTemplate.format({
  input: 'bar baz',
})
//=> 'foo barBaz'

const promptWithDefault = promptTemplate.format({})
//=> 'foo default'
```

### With `formatterOptions`

```ts
const promptTemplate = PromptTemplate.create`
  foo ${withCamelCase('input', { formatterOptions: { delimiter: ' ' } })}
`

const prompt = promptTemplate.format({
  input: 'bar baz',
})
//=> 'foo bar Baz'
```
npm package: @prompt-template/mcp
Description: Model Context Protocol @prompt-template adapter
Author: Aaron Casanova
Latest version: 0.6.0

# @prompt-template/mcp

`@prompt-template/mcp` provides an adapter for integrating [`@prompt-template/core`](https://github.com/prompt-template/prompt-template/tree/main/packages/core) with the Model Context Protocol Prompts API.

## Installation

```sh
npm i @prompt-template/core @prompt-template/mcp
```

## Usage

```ts
import { PromptTemplate } from '@prompt-template/core'
import { addPrompt } from '@prompt-template/mcp'
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'

const mcpServer = new McpServer()

const promptTemplate = PromptTemplate.create`
  Brainstorm 3 names for a superhero ${'animal'}.
`

addPrompt(mcpServer, 'brainstorm-superhero-names', promptTemplate)
```

## API

### `addPrompt`

A function that adds a `PromptTemplate` instance to an MCP server.

```ts
import { PromptTemplate } from '@prompt-template/core'
import { addPrompt } from '@prompt-template/mcp'
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'

const mcpServer = new McpServer()

const promptTemplate = PromptTemplate`
  Brainstorm 3 names for a superhero ${'animal'}.
`

addPrompt(mcpServer, 'brainstorm-superhero-names', promptTemplate)
```

### `ChatPromptTemplate`

A class for creating chat-based prompt templates.

```ts
import { ChatPromptTemplate } from '@prompt-template/mcp'

const chatPromptTemplate = ChatPromptTemplate.from([
  {
    role: 'user',
    content: {
      type: 'text',
      text: 'You are a helpful assistant.',
    },
  },
  {
    role: 'user',
    content: {
      type: 'text',
      promptTemplate: PromptTemplate.create`
        Brainstorm 3 names for a superhero ${'animal'}.
      `,
    },
  },
])

const messages = chatPromptTemplate.format({
  animal: 'cat',
})
//=> [
//     {
//       role: 'user',
//       content: {
//         type: 'text',
//         text: 'You are a helpful assistant.',
//       },
//     },
//     {
//       role: 'user',
//       content: {
//         type: 'text',
//         text: 'Brainstorm 3 names for a superhero cat.',
//       },
//     },
//   ]
```

### `toPrompt`

A function that converts a `PromptTemplate` instance into a format that the low-level `server.setRequestHandler(ListPromptsRequestSchema, callback)` expects.

```ts
import { PromptTemplate } from '@prompt-template/core'
import { toPrompt } from '@prompt-template/mcp'

const promptTemplate = PromptTemplate.create({
  description: 'Brainstorm superhero names for an animal.',
})`
  Brainstorm 3 names for a superhero ${{
    name: 'animal',
    description: 'The animal to name the superhero after.',
  }}.
`

const prompt = toPrompt('brainstorm-superhero-names', promptTemplate)
//=> {
//     name: 'brainstorm-superhero-names',
//     description: 'Brainstorm superhero names for an animal.',
//     arguments: [
//       {
//         name: 'animal',
//         description: 'The animal to name the superhero after.',
//         required: true,
//       },
//     ],
//   }
```
npm package: @prompt-template/openai
Description: OpenAI @prompt-template adapter
Author: Aaron Casanova
Latest version: 0.5.2

# @prompt-template/openai

`@prompt-template/openai` provides an adapter for integrating [`@prompt-template/core`](https://github.com/prompt-template/prompt-template/tree/main/packages/core) with OpenAI's chat completion API. This adapter allows you to define chat prompt templates and formatting them into OpenAI-compliant chat completion messages.

## Installation

```sh
npm i @prompt-template/core @prompt-template/openai
```

## Usage

```ts
import { PromptTemplate } from '@prompt-template/core'
import { ChatPromptTemplate } from '@prompt-template/openai'

const chatPromptTemplate = ChatPromptTemplate.from([
  {
    role: 'system',
    content: 'You are a friendly assistant.',
  },
  {
    role: 'user',
    promptTemplate: PromptTemplate.create`
      Brainstorm 3 names for a superhero ${'animal'}.
    `,
  },
])

const messages = chatPromptTemplate.format({
  animal: 'cat',
})
//=> [
//     { role: 'system', content: 'You are a friendly assistant.' },
//     { role: 'user', content: 'Brainstorm 3 names for a superhero cat.' }
//   ]
```

## API

### `ChatPromptTemplate.from`

A static method that creates a `ChatPromptTemplate` instance from an array of chat prompt template messages.

```ts
const chatPromptTemplate = ChatPromptTemplate.from([
  {
    role: 'system',
    content: 'You are a friendly assistant.',
  },
  {
    role: 'user',
    promptTemplate: PromptTemplate.create`
      Brainstorm 3 names for a superhero ${'animal'}.
    `,
  },
])
```

### `ChatPromptTemplate.format`

A method that formats the `ChatPromptTemplate` instances into OpenAI-compliant chat completion messages.

```ts
const messages = chatPromptTemplate.format({
  animal: 'cat',
})
//=> [
//     { role: 'system', content: 'You are a friendly assistant.' },
//     { role: 'user', content: 'Brainstorm 3 names for a superhero cat.' }
//   ]
```
npm package: @prompt-template/to-zod
Description: Convert @prompt-template into Zod schemas
Author: Aaron Casanova
Latest version: 0.0.1

# @prompt-template/to-zod

`@prompt-template/to-zod` provides a utility for converting `PromptTemplate` instances from [`@prompt-template/core`](https://github.com/prompt-template/prompt-template/tree/main/packages/core) into Zod schemas.

## Installation

```sh
npm i @prompt-template/core @prompt-template/to-zod
```

## Usage

```ts
import { PromptTemplate } from '@prompt-template/core'
import { promptTemplateToZod } from '@prompt-template/to-zod'

const promptTemplate = PromptTemplate.create`
  Brainstorm 3 names for a superhero ${'animal'}.
`

const promptTemplateSchema = promptTemplateToZod(promptTemplate)

promptTemplateSchema.parse({
  animal: 'cat',
})
```
npm package: @promptapi/bin-checker-pkg
Description: NPM package for Prompt API's BIN Checker API
Author: Prompt API
Latest version: 0.1.3

![Node](https://img.shields.io/badge/node-10.10.0-green.svg)
[![npm version](https://badge.fury.io/js/%40promptapi%2Fbin-checker-pkg.svg)](https://badge.fury.io/js/%40promptapi%2Fbin-checker-pkg)

# Prompt API - BIN Checker - Node Package

`@promptapi/bin-checker-pkg` is a simple JavaScript wrapper for [bincheck-api][bincheck-api].

## Requirements

1. You need to signup for [Prompt API][promptapi-signup]
1. You need to subscribe [bincheck-api][bincheck-api], test drive is **free!!!**
1. You need to set `PROMPTAPI_TOKEN` environment variable after subscription.

then;

```bash
$ npm install @promptapi/bin-checker-pkg
```

or, install from GitHub registry;

```bash
$ npm install @promptapi/bin-checker-pkg@0.1.3
```

---

## Example Usage

```javascript
const promptapi = require('@promptapi/bin-checker-pkg')

promptapi.binChecker('370244').then(result => {
  if(result.error){
    console.log(result.error)
  } else {
    console.log(result.bank_name)
    console.log(result.country)
    console.log(result.url)
    console.log(result.type)
    console.log(result.scheme)
    console.log(result.bin)
  }
})
```

Result:

    Banesco
    Venezuela (bolivarian Republic Of)
    www.banesco.com
    Credit
    American Express
    370244

If you receive an error, `result` will contain `error` as string.

---

## Development

All you need is `node` and `npm`...

---

## License

This project is licensed under MIT

---

## Contributer(s)

* [Prompt API](https://github.com/promptapi) - Creator, maintainer

---

## Contribute

All PR’s are welcome!

1. `fork` (https://github.com/promptapi/bin-checker-pkg/fork)
1. Create your `branch` (`git checkout -b my-feature`)
1. `commit` yours (`git commit -am 'Add awesome features...'`)
1. `push` your `branch` (`git push origin my-feature`)
1. Than create a new **Pull Request**!

This project is intended to be a safe,
welcoming space for collaboration, and contributors are expected to adhere to
the [code of conduct][coc].

[promptapi-signup]: https://promptapi.com/#signup-form
[bincheck-api]:     https://promptapi.com/marketplace/description/bincheck-api
[coc]:              https://github.com/promptapi/bin-checker-pkg/blob/main/CODE_OF_CONDUCT.md
npm package: @promptato/cli
Description: Set up Promptato prompt analytics hooks for Cursor and Claude Code
Latest version: 0.1.4

# @promptato/cli

Set up Promptato prompt analytics hooks for Cursor and Claude Code.

## Usage

```bash
npx @promptato/cli
```

The CLI will walk you through:

1. Entering your API key and ingest URL
2. Installing hooks for Cursor and/or Claude Code
3. Configuring your shell environment

### Options

| Flag | Description |
|------|-------------|
| `--api-key=<key>` | Skip the API key prompt |
| `--url=<url>` | Skip the ingest URL prompt |
| `--claude-scope=<user\|project>` | Claude hook scope (default: user) |
| `-y, --yes` | Accept all defaults |

## License

MIT