diff --git a/Dockerfile b/Dockerfile index a4a00da..b1ac4d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config # Build stage FROM oven/bun:1.2.18-alpine AS builder @@ -66,4 +67,4 @@ CMD ["bun", "run", "dist/index.js"] LABEL maintainer="Nicolas Torres " LABEL description="v0-mcp-ts: A powerful MCP server for v0.dev AI integration" LABEL version="1.0.0" -LABEL repository="https://github.com/nicotordev/v0-mcp-ts" \ No newline at end of file +LABEL repository="https://github.com/nicotordev/v0-mcp-ts" diff --git a/README.md b/README.md index dae0e87..1f94b93 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![Bun](https://img.shields.io/badge/Bun-1.2+-black.svg)](https://bun.sh/) [![Tests](https://github.com/nicotordev/v0-mcp-ts/workflows/Tests/badge.svg)](https://github.com/nicotordev/v0-mcp-ts/actions) [![Build](https://github.com/nicotordev/v0-mcp-ts/workflows/Build/badge.svg)](https://github.com/nicotordev/v0-mcp-ts/actions) +[![smithery badge](https://smithery.ai/badge/@nicotordev/v0-mcp-ts)](https://smithery.ai/server/@nicotordev/v0-mcp-ts) > 🚀 **A powerful Model Context Protocol (MCP) server that integrates v0.dev AI capabilities for modern web development** @@ -61,6 +62,16 @@ npm install -g bun ### 1. Installation +### Installing via Smithery + +To install v0-mcp-ts for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@nicotordev/v0-mcp-ts): + +```bash +npx -y @smithery/cli install @nicotordev/v0-mcp-ts --client claude +``` + +### Installing manually + ```bash git clone https://github.com/nicotordev/v0-mcp-ts.git cd v0-mcp-ts diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..5a00a76 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,19 @@ +# Smithery configuration file: https://smithery.ai/docs/build/project-config + +startCommand: + type: stdio + commandFunction: + # A JS function that produces the CLI command based on the given config to start the MCP on stdio. + |- + (config) => ({ command: 'bun', args: ['run', 'dist/index.js'], env: { V0_API_KEY: config.v0ApiKey } }) + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + required: + - v0ApiKey + properties: + v0ApiKey: + type: string + description: v0.dev API key + exampleConfig: + v0ApiKey: your_v0_api_key_here