@forprompt/sdk 0.1.0 → 0.1.2

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.
package/README.md CHANGED
@@ -4,8 +4,8 @@ Sync and manage AI prompts from your [ForPrompt](https://forprompt.dev) projects
4
4
 
5
5
  ## Features
6
6
 
7
- - **Simple CLI** - `init`, `deploy`, and `mcp` commands for easy setup
8
- - **MCP Server** - Integrate with Claude Desktop, Cursor, Continue.dev, and more
7
+ - **Simple CLI** - `init` and `deploy` commands for easy setup
8
+ - **MCP Server** - Integrate with Claude Code, Claude Desktop, Cursor, and more
9
9
  - **Local files** - Prompts synced to TypeScript files for fast imports
10
10
  - **Version history** - Track all prompt versions locally
11
11
  - **Type-safe** - Full TypeScript support
@@ -80,18 +80,6 @@ npx forprompt deploy
80
80
  npx forprompt deploy --clean # Remove deleted prompts locally
81
81
  ```
82
82
 
83
- ### `forprompt mcp`
84
-
85
- MCP (Model Context Protocol) server for AI editor integration.
86
-
87
- ```bash
88
- npx forprompt mcp start # Start MCP server
89
- npx forprompt mcp config --editor=claude-desktop # Generate Claude Desktop config
90
- npx forprompt mcp config --editor=cursor # Generate Cursor config
91
- npx forprompt mcp config --all # Generate all editor configs
92
- npx forprompt mcp info # Show MCP server info
93
- ```
94
-
95
83
  ## Project Structure
96
84
 
97
85
  After `forprompt deploy`:
@@ -226,35 +214,39 @@ import type { Prompt, ForPromptConfig, LogOptions, SingleRequestOptions } from "
226
214
 
227
215
  ## MCP Server Integration
228
216
 
229
- ForPrompt includes an MCP (Model Context Protocol) server that exposes your prompts to AI assistants like Claude Desktop, Cursor, Continue.dev, and other MCP-compatible tools.
230
-
231
- ### Quick Setup for Claude Desktop
217
+ ForPrompt includes an MCP (Model Context Protocol) server that exposes your prompts to AI assistants like Claude Code, Claude Desktop, Cursor, and other MCP-compatible tools.
232
218
 
233
- 1. Run the config generator:
234
- ```bash
235
- npx forprompt mcp config --editor=claude-desktop
236
- ```
219
+ ### Claude Code
237
220
 
238
- 2. Follow the instructions to add the config to your Claude Desktop settings
221
+ Add ForPrompt to Claude Code with a single command:
239
222
 
240
- 3. Restart Claude Desktop
241
-
242
- 4. Your prompts are now available! Ask Claude to "list my ForPrompt prompts"
223
+ ```bash
224
+ claude mcp add forprompt -e FORPROMPT_API_KEY=your-api-key -- npx -y @forprompt/sdk mcp start
225
+ ```
243
226
 
244
- ### Quick Setup for Cursor
227
+ After adding, restart Claude Code and ask: "List my ForPrompt prompts"
245
228
 
246
- 1. Run the config generator:
247
- ```bash
248
- npx forprompt mcp config --editor=cursor
249
- ```
229
+ ### Claude Desktop
250
230
 
251
- 2. The config will be saved to `.cursor/mcp.json` in your project
231
+ Add to your Claude Desktop config file (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
252
232
 
253
- 3. Restart Cursor
233
+ ```json
234
+ {
235
+ "mcpServers": {
236
+ "forprompt": {
237
+ "command": "npx",
238
+ "args": ["-y", "@forprompt/sdk", "mcp", "start"],
239
+ "env": {
240
+ "FORPROMPT_API_KEY": "your-api-key"
241
+ }
242
+ }
243
+ }
244
+ }
245
+ ```
254
246
 
255
- ### Manual Configuration
247
+ ### Cursor
256
248
 
257
- Add to your editor's MCP config file:
249
+ Add to `.cursor/mcp.json` in your project:
258
250
 
259
251
  ```json
260
252
  {
@@ -291,12 +283,16 @@ Add to your editor's MCP config file:
291
283
 
292
284
  ### Supported Editors
293
285
 
286
+ - **Claude Code** - Anthropic's CLI-based AI assistant
294
287
  - **Claude Desktop** - Anthropic's Claude desktop application
295
288
  - **Cursor** - AI-powered code editor
296
289
  - **Continue.dev** - Open-source AI code assistant
297
290
  - **Windsurf** - AI-powered IDE
298
- - **VS Code** - With MCP-compatible extensions
299
291
 
300
292
  ## License
301
293
 
302
- MIT
294
+ AGPL-3.0-or-later
295
+
296
+ ## Author
297
+
298
+ Created by Arda Uckan for ForPrompt
package/dist/cli/index.js CHANGED
@@ -2417,7 +2417,7 @@ ${list}`
2417
2417
  // package.json
2418
2418
  var package_default = {
2419
2419
  name: "@forprompt/sdk",
2420
- version: "0.1.0",
2420
+ version: "0.1.2",
2421
2421
  description: "ForPrompt SDK - Sync and manage AI prompts from your ForPrompt projects",
2422
2422
  type: "module",
2423
2423
  main: "./dist/index.cjs",
@@ -2443,16 +2443,11 @@ var package_default = {
2443
2443
  "README.md"
2444
2444
  ],
2445
2445
  license: "AGPL-3.0-or-later",
2446
- author: "ForPrompt",
2447
- repository: {
2448
- type: "git",
2449
- url: "https://github.com/ardacanuckan/forprompt.git",
2450
- directory: "packages/sdk"
2446
+ author: {
2447
+ name: "Arda Uckan",
2448
+ email: "ardacan@acta.so"
2451
2449
  },
2452
2450
  homepage: "https://forprompt.dev",
2453
- bugs: {
2454
- url: "https://github.com/forprompt/sdk/issues"
2455
- },
2456
2451
  keywords: [
2457
2452
  "forprompt",
2458
2453
  "prompts",