opencodekit 0.9.2 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,154 @@
1
+ ---
2
+ name: v0
3
+ description: AI-powered UI generation via v0 MCP. Create chats, generate React components, get design assistance. Use when building UI components, dashboards, or need AI design help.
4
+ mcp:
5
+ v0:
6
+ command: npx
7
+ args:
8
+ [
9
+ "mcp-remote",
10
+ "https://mcp.v0.dev",
11
+ "--header",
12
+ "Authorization: Bearer ${V0_API_KEY}",
13
+ ]
14
+ env:
15
+ V0_API_KEY: "${V0_API_KEY}"
16
+ ---
17
+
18
+ # v0 AI Code Generation (MCP)
19
+
20
+ Access v0's AI-powered code generation via MCP. When this skill is loaded, the `v0` MCP server auto-starts and exposes tools for creating and managing v0 chats.
21
+
22
+ ## Prerequisites
23
+
24
+ Set your v0 API key as an environment variable:
25
+
26
+ ```bash
27
+ export V0_API_KEY="your-v0-api-key"
28
+ ```
29
+
30
+ To get your v0 API key:
31
+
32
+ 1. Go to [v0 account settings](https://v0.app/chat/settings/keys)
33
+ 2. Create a new API key
34
+ 3. Copy and set as environment variable
35
+
36
+ ## Quick Start
37
+
38
+ After loading this skill, list available tools:
39
+
40
+ ```
41
+ skill_mcp(skill_name="v0", list_tools=true)
42
+ ```
43
+
44
+ Then invoke tools:
45
+
46
+ ```
47
+ skill_mcp(skill_name="v0", tool_name="create_chat", arguments='{"prompt": "Create a React dashboard component with a sidebar"}')
48
+ ```
49
+
50
+ ## Available Tools
51
+
52
+ ### create_chat
53
+
54
+ Create a new v0 chat with a prompt.
55
+
56
+ | Parameter | Type | Required | Description |
57
+ | --------- | ------ | -------- | ---------------------------------- |
58
+ | `prompt` | string | Yes | The prompt for v0 to generate code |
59
+
60
+ **Example:**
61
+
62
+ ```
63
+ skill_mcp(skill_name="v0", tool_name="create_chat", arguments='{"prompt": "Build a responsive navbar with dark mode toggle"}')
64
+ ```
65
+
66
+ ### get_chat
67
+
68
+ Get details about an existing chat.
69
+
70
+ | Parameter | Type | Required | Description |
71
+ | --------- | ------ | -------- | -------------- |
72
+ | `chatId` | string | Yes | The v0 chat ID |
73
+
74
+ **Example:**
75
+
76
+ ```
77
+ skill_mcp(skill_name="v0", tool_name="get_chat", arguments='{"chatId": "abc123"}')
78
+ ```
79
+
80
+ ### find_chats
81
+
82
+ Search through your v0 chats.
83
+
84
+ | Parameter | Type | Required | Description |
85
+ | --------- | ------ | -------- | ------------ |
86
+ | `query` | string | No | Search query |
87
+
88
+ **Example:**
89
+
90
+ ```
91
+ skill_mcp(skill_name="v0", tool_name="find_chats", arguments='{"query": "React components"}')
92
+ ```
93
+
94
+ ### send_message
95
+
96
+ Continue a conversation in an existing chat.
97
+
98
+ | Parameter | Type | Required | Description |
99
+ | --------- | ------ | -------- | --------------- |
100
+ | `chatId` | string | Yes | The v0 chat ID |
101
+ | `message` | string | Yes | Message to send |
102
+
103
+ **Example:**
104
+
105
+ ```
106
+ skill_mcp(skill_name="v0", tool_name="send_message", arguments='{"chatId": "abc123", "message": "Add dark mode support"}')
107
+ ```
108
+
109
+ ## Workflow
110
+
111
+ ### 1. Generate a New Component
112
+
113
+ ```
114
+ # Create a new chat with your requirements
115
+ skill_mcp(skill_name="v0", tool_name="create_chat", arguments='{"prompt": "Create a modern pricing table with 3 tiers using Tailwind CSS"}')
116
+
117
+ # The response includes a chat ID and generated code
118
+ ```
119
+
120
+ ### 2. Iterate on Design
121
+
122
+ ```
123
+ # Send follow-up messages to refine
124
+ skill_mcp(skill_name="v0", tool_name="send_message", arguments='{"chatId": "chat-id-here", "message": "Make the recommended tier more prominent with a gradient border"}')
125
+ ```
126
+
127
+ ### 3. Search Previous Work
128
+
129
+ ```
130
+ # Find relevant previous chats
131
+ skill_mcp(skill_name="v0", tool_name="find_chats", arguments='{"query": "dashboard"}')
132
+ ```
133
+
134
+ ## Use Cases
135
+
136
+ - **Component Generation**: Create React/Next.js components from descriptions
137
+ - **UI Prototyping**: Rapidly prototype UI ideas
138
+ - **Design Iteration**: Refine designs through conversation
139
+ - **Code Assistance**: Get help with Tailwind CSS, responsive design, etc.
140
+
141
+ ## Tips
142
+
143
+ - **Be specific** in prompts - include framework (React, Next.js), styling (Tailwind, CSS), and functionality details
144
+ - **Iterate** using `send_message` rather than creating new chats for refinements
145
+ - **Search first** with `find_chats` to reuse previous work
146
+ - **Include context** about your existing design system or component patterns
147
+
148
+ ## Troubleshooting
149
+
150
+ **"Invalid API key"**: Ensure `V0_API_KEY` environment variable is set correctly.
151
+
152
+ **"Rate limit exceeded"**: v0 has usage limits. Wait a few minutes or check your plan.
153
+
154
+ **"Chat not found"**: Verify the chat ID is correct. Use `find_chats` to list available chats.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencodekit",
3
- "version": "0.9.2",
3
+ "version": "0.10.0",
4
4
  "description": "CLI tool for bootstrapping and managing OpenCodeKit projects",
5
5
  "type": "module",
6
6
  "repository": {