open-index/open-npm huggingface dataset:
npm package: @mcp-s/mcp-to-skill
Description: Convert MCP server prompts and resources into agent skills
Latest version: 1.0.0

# mcp-to-skill

Convert any MCP (Model Context Protocol) server's prompts and resources into [Agent Skills](https://agentskills.io/specification) — ready to use with Claude Code and other AI agents.

## Usage

```bash
npx @mcp-s/mcp-to-skill <mcp-server-url> [options]
```

### Options

| Flag | Default | Description |
|------|---------|-------------|
| `-o, --output <dir>` | `./skills` | Output directory for generated skills |
| `-h, --help` | | Show help |

### Examples

```bash
# Generate skills from a public MCP server
npx @mcp-s/mcp-to-skill https://my-mcp-server.com/mcp

# Specify a custom output directory
npx @mcp-s/mcp-to-skill https://my-mcp-server.com/mcp -o ./my-skills
```

## How it works

1. **Connect** — Connects to the MCP server via Streamable HTTP or SSE transport.
2. **Authenticate** — If the server requires OAuth, your browser opens automatically. Tokens are stored in `~/.mcp-to-skill/auth.json` for future runs.
3. **Select** — An interactive checklist shows all available prompts and resources. Toggle items with space, confirm with enter.
4. **Generate** — Each selected item becomes a skill directory with a `SKILL.md` file.

## Output format

Each skill follows the [Agent Skills specification](https://agentskills.io/specification):

```
skills/
├── my-prompt/
│   └── SKILL.md
└── my-resource/
    └── SKILL.md
```

Example `SKILL.md` for a prompt:

```markdown
---
name: code-review
description: Review code for bugs and style issues. Use when you need automated feedback.
metadata:
  mcp-server: https://example.com/mcp
  mcp-type: prompt
  mcp-name: code_review
---

## Overview

...

## Arguments

| Name | Required | Description |
|------|----------|-------------|
| code | Yes      | The code to review |

## Usage

...
```

## Authentication

Protected MCP servers using OAuth 2.0 + PKCE are supported automatically:

- On first access, your browser opens for authorization.
- Tokens are cached at `~/.mcp-to-skill/auth.json` (mode `0600`).
- Dynamic Client Registration (RFC 7591) is used when available.

## Requirements

- Node.js 18 or later

## Install globally

```bash
npm install -g @mcp-s/mcp-to-skill
mcp-to-skill https://my-mcp-server.com/mcp
```

## License

MIT
npm package: @mcp-sdk/server
Description: MCP SDK Server - Model Context Protocol for TypeScript
Author: MCP SDK Contributors
Latest version: 0.0.7

# @mcp-sdk/server

A TypeScript SDK for the Model Context Protocol (MCP) server implementation.

## Installation

```bash
# Using npm
npm install @mcp-sdk/server

# Using yarn
yarn add @mcp-sdk/server

# Using pnpm
pnpm add @mcp-sdk/server

# Using bun
bun add @mcp-sdk/server
```

## Usage

### Basic Example

```typescript
import { MCP } from '@mcp-sdk/server';

// Initialize MCP
const mcp = new MCP();

// Configure and use as needed
// ... your code here

// Start the server
mcp.listen();
```

### Example with Authentication

```typescript
import { MCP } from '@mcp-sdk/server';

// Initialize MCP with authentication
const mcp = new MCP({ 
  auth: {
    // Configure authentication options here
  }
});

// Start the server
mcp.listen();
```

## API Documentation

[Link to API documentation]

## Development

This project uses [Changesets](https://github.com/changesets/changesets) for managing releases and [tsup](https://github.com/egoist/tsup) for bundling.

### Setup

```bash
# Install dependencies
bun install
```

### Scripts

- `bun run build`: Build the package
- `bun run dev`: Start development mode with watch
- `bun run lint`: Run TypeScript type checking
- `bun run changeset`: Create a new changeset
- `bun run version`: Update versions and changelogs
- `bun run release`: Build and publish the package

## License

MIT