@lucianfialho/build-in-public-mcp 0.3.1 → 0.3.3

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
@@ -1,8 +1,8 @@
1
1
  # Build in Public MCP Server
2
2
 
3
- > ✅ **v0.3.0 - AI-Powered Tweet Suggestions!**
3
+ > ✅ **v0.3.3 - Multi-IDE Support!**
4
4
 
5
- MCP (Model Context Protocol) server for Build in Public - automatically share your dev progress on Twitter directly from Claude Code.
5
+ MCP (Model Context Protocol) server for Build in Public - automatically share your dev progress on Twitter directly from Claude Code, Cursor, VS Code, JetBrains IDEs, and more!
6
6
 
7
7
  ## 🎯 What is this?
8
8
 
@@ -18,6 +18,7 @@ This MCP server analyzes your coding sessions and generates intelligent tweet su
18
18
  - 🔐 OAuth authentication (tokens stored locally)
19
19
  - 💯 100% local - no external servers needed
20
20
  - ⚡ Fast STDIO transport
21
+ - 🔌 **Multi-IDE support** - Works with Claude Code, Cursor, VS Code, JetBrains, and more!
21
22
 
22
23
  ## 📦 Installation
23
24
 
@@ -34,6 +35,96 @@ npm install -g @lucianfialho/build-in-public-mcp
34
35
  claude mcp add --transport stdio build-in-public build-in-public-mcp
35
36
  ```
36
37
 
38
+ ## 🔌 Compatible with Multiple IDEs
39
+
40
+ This MCP server uses **STDIO transport**, making it compatible with various AI-powered IDEs and editors!
41
+
42
+ ### Cursor
43
+
44
+ Add to your `~/.cursor/mcp.json`:
45
+
46
+ ```json
47
+ {
48
+ "mcpServers": {
49
+ "build-in-public": {
50
+ "command": "npx",
51
+ "args": ["@lucianfialho/build-in-public-mcp"]
52
+ }
53
+ }
54
+ }
55
+ ```
56
+
57
+ **How to configure:**
58
+ 1. Open Command Palette (`Ctrl+Shift+P` or `Cmd+Shift+P`)
59
+ 2. Search for "Cursor Settings"
60
+ 3. Click "MCP" in sidebar
61
+ 4. Click "Add new global MCP server"
62
+ 5. Paste the configuration above
63
+
64
+ **Note:** MCP tools are available in Cursor's Agent/Composer. Cursor currently supports up to 40 tools.
65
+
66
+ ### VS Code
67
+
68
+ Add to your User Settings JSON (`Ctrl+Shift+P` → "Preferences: Open User Settings (JSON)"):
69
+
70
+ ```json
71
+ {
72
+ "mcp.servers": {
73
+ "build-in-public": {
74
+ "command": "npx",
75
+ "args": ["@lucianfialho/build-in-public-mcp"],
76
+ "transport": "stdio"
77
+ }
78
+ }
79
+ }
80
+ ```
81
+
82
+ ### JetBrains IDEs (IntelliJ, PyCharm, WebStorm, Android Studio)
83
+
84
+ **Requires:** v2025.2 or later
85
+
86
+ 1. Go to Settings → Tools → AI Assistant → Model Context Protocol
87
+ 2. Add a new MCP server:
88
+ - **Name:** build-in-public
89
+ - **Transport:** STDIO
90
+ - **Command:** `npx`
91
+ - **Arguments:** `@lucianfialho/build-in-public-mcp`
92
+
93
+ ### Visual Studio
94
+
95
+ **Requires:** VS 2026 or VS 2022 v17.14+
96
+
97
+ 1. Go to Tools → Options → AI Assistant → MCP Servers
98
+ 2. Add new server:
99
+ - **Transport:** STDIO
100
+ - **Command:** `npx @lucianfialho/build-in-public-mcp`
101
+
102
+ ### Claude Desktop
103
+
104
+ Add to your config file:
105
+
106
+ **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
107
+ **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
108
+
109
+ ```json
110
+ {
111
+ "mcpServers": {
112
+ "build-in-public": {
113
+ "command": "npx",
114
+ "args": ["@lucianfialho/build-in-public-mcp"]
115
+ }
116
+ }
117
+ }
118
+ ```
119
+
120
+ ### Windsurf / Cline
121
+
122
+ Follow similar configuration patterns as VS Code or Cursor. Refer to your IDE's MCP documentation.
123
+
124
+ ---
125
+
126
+ **💡 Tip:** If you installed globally (`npm install -g`), replace `"command": "npx"` with `"command": "build-in-public-mcp"` and remove the args array.
127
+
37
128
  ## 📖 How It Works
38
129
 
39
130
  **The Philosophy:** If Claude Code is already helping you code, why not help you share your journey too?
@@ -86,16 +177,17 @@ export TWITTER_ACCESS_SECRET="your_access_secret"
86
177
 
87
178
  ### 2. Start Posting!
88
179
 
89
- #### Option 1: Quick Tweet
90
- Post immediately with a custom message:
180
+ #### Option 1: AI-Powered Retro (Recommended!)
181
+ Let Claude analyze your entire coding session and suggest tweets:
182
+
183
+ Just ask Claude naturally:
91
184
  ```
92
- /bp Just launched my new feature! 🚀
185
+ "Analyze my session and help me share what I accomplished on Twitter"
93
186
  ```
94
187
 
95
- #### Option 2: AI-Powered Retro (Recommended!)
96
- Let AI analyze your entire coding session and suggest tweets:
188
+ Or in other projects, you can use:
97
189
  ```
98
- /bp retro
190
+ "Hey Claude, let's do a build in public retro"
99
191
  ```
100
192
 
101
193
  Claude will:
@@ -104,8 +196,11 @@ Claude will:
104
196
  - Generate multiple tweet suggestions with confidence scores
105
197
  - Let you choose or customize before posting
106
198
 
107
- **Example output:**
199
+ **Example flow:**
108
200
  ```
201
+ You: "Analyze my session and suggest a tweet about what I built"
202
+
203
+ Claude:
109
204
  📊 Session Analysis Complete!
110
205
 
111
206
  Achievements:
@@ -121,28 +216,54 @@ Based on your session, here are tweet suggestions:
121
216
 
122
217
  2. [75% confidence] "💡 TIL: OAuth token refresh is trickier than I thought..."
123
218
 
124
- Which one would you like to post? (1-2, or provide custom message)
219
+ Which one would you like to post?
220
+
221
+ You: "Post #1"
222
+
223
+ Claude: ✅ Tweet posted! [shows URL]
224
+ ```
225
+
226
+ #### Option 2: Quick Tweet
227
+ Just ask Claude to post directly:
228
+ ```
229
+ "Post to Twitter: Just launched my new feature! 🚀"
125
230
  ```
126
231
 
127
232
  #### Option 3: AI Suggestions from Current Context
128
233
  ```
129
- /bp
234
+ "Give me tweet suggestions based on what I've been working on"
130
235
  ```
131
- Gets suggestions based on what the hooks have captured so far.
132
236
 
133
237
  ## 🛠️ Architecture
134
238
 
135
239
  ```
136
- Claude Code → STDIO → MCP Server (local) → HTTPS → Twitter API
137
-
138
- ~/.build-in-public/
139
- - auth.json (OAuth tokens)
140
- - context.json (Session context)
141
- - history.json (Tweet history)
240
+ AI IDE/Editor → STDIO → MCP Server (local) → HTTPS → Twitter API
241
+
242
+ ~/.build-in-public/
243
+ - auth.json (OAuth tokens)
244
+ - context.json (Session context)
245
+ - history.json (Tweet history)
142
246
  ```
143
247
 
144
248
  **100% local, zero external infrastructure!**
145
249
 
250
+ The STDIO transport makes this server compatible with any MCP-enabled IDE or editor, including Claude Code, Cursor, VS Code, JetBrains IDEs, Visual Studio, Claude Desktop, Windsurf, and Cline.
251
+
252
+ ## 🎭 MCP Prompts (Advanced)
253
+
254
+ The server exposes MCP prompts that Claude can use automatically:
255
+
256
+ ### `retro`
257
+ Triggers full session analysis and tweet generation workflow.
258
+
259
+ ### `quick <message>`
260
+ Posts a quick tweet with the provided message.
261
+
262
+ ### `suggest`
263
+ Generates AI-powered tweet suggestions from current session context.
264
+
265
+ **Note:** You don't need to use these directly - just talk to Claude naturally and it will use them when appropriate!
266
+
146
267
  ## 📚 Available Tools
147
268
 
148
269
  ### `mcp__bip__tweet`
@@ -194,7 +315,10 @@ Check authentication status and show storage location.
194
315
 
195
316
  - [x] v0.1.0 - Basic MCP server + STDIO transport
196
317
  - [x] v0.2.0 - Twitter OAuth + tweet posting + thread creation
197
- - [x] v0.3.0 - AI-powered suggestions + retro mode + context tracking
318
+ - [x] v0.3.0 - AI-powered suggestions + retro mode + context tracking
319
+ - [x] v0.3.2 - MCP prompts integration (retro, quick, suggest) ✅
320
+ - [x] v0.3.3 - Multi-IDE compatibility documentation ✅
321
+ - [ ] v0.4.0 - Official testing on Cursor, VS Code, JetBrains
198
322
  - [ ] v1.0.0 - Production ready + comprehensive docs
199
323
  - [ ] v1.1.0 - Enhanced hooks for automatic context tracking
200
324
  - [ ] v2.0.0 - Optional analytics and insights
@@ -209,10 +333,6 @@ This is an early alpha! Contributions, issues, and feedback welcome.
209
333
 
210
334
  MIT License - see LICENSE file for details
211
335
 
212
- ## 🙏 Credits
213
-
214
- Built with [Claude Code](https://claude.com/code) and inspired by the #BuildInPublic community.
215
-
216
336
  ---
217
337
 
218
338
  **Made with ❤️ for developers who build in public**
package/dist/index.js CHANGED
@@ -15,12 +15,149 @@ const suggestion_engine_js_1 = require("./services/suggestion-engine.js");
15
15
  // MCP Server instance
16
16
  const server = new index_js_1.Server({
17
17
  name: 'build-in-public',
18
- version: '0.3.0',
18
+ version: '0.3.3',
19
19
  }, {
20
20
  capabilities: {
21
21
  tools: {},
22
+ prompts: {},
22
23
  },
23
24
  });
25
+ /**
26
+ * List available prompts
27
+ */
28
+ server.setRequestHandler(types_js_1.ListPromptsRequestSchema, async () => {
29
+ return {
30
+ prompts: [
31
+ {
32
+ name: 'retro',
33
+ description: 'Analyze your entire coding session and generate tweet suggestions about what you accomplished',
34
+ arguments: [],
35
+ },
36
+ {
37
+ name: 'quick',
38
+ description: 'Post a quick tweet with a custom message',
39
+ arguments: [
40
+ {
41
+ name: 'message',
42
+ description: 'Your tweet message (will be posted immediately)',
43
+ required: true,
44
+ },
45
+ ],
46
+ },
47
+ {
48
+ name: 'suggest',
49
+ description: 'Get AI-powered tweet suggestions based on current session context',
50
+ arguments: [],
51
+ },
52
+ ],
53
+ };
54
+ });
55
+ /**
56
+ * Get prompt content
57
+ */
58
+ server.setRequestHandler(types_js_1.GetPromptRequestSchema, async (request) => {
59
+ const { name, arguments: args } = request.params;
60
+ switch (name) {
61
+ case 'retro':
62
+ return {
63
+ messages: [
64
+ {
65
+ role: 'user',
66
+ content: {
67
+ type: 'text',
68
+ text: `# Build in Public - Retrospective Mode
69
+
70
+ Analyze the ENTIRE coding session and help me share what I accomplished on Twitter.
71
+
72
+ ## Your Task
73
+
74
+ 1. **Review the full conversation** - Look at everything we've done from the start of this session
75
+ 2. **Extract key information:**
76
+ - What features/functionality were built?
77
+ - What bugs were fixed?
78
+ - What was learned (TIL moments)?
79
+ - What challenges were overcome?
80
+ - What technologies/tools were used?
81
+ - Any interesting technical decisions or breakthroughs?
82
+
83
+ 3. **Save the context** - Call mcp__bip__save_context with a comprehensive SessionContext object including:
84
+ - filesModified: array of file paths that were changed
85
+ - commandsRun: array of notable commands executed
86
+ - commits: git commits if any
87
+ - achievements: list of things accomplished
88
+ - challenges: problems that were solved
89
+ - learnings: new things discovered/learned
90
+ - toolsUsed: tools and technologies used
91
+
92
+ 4. **Generate suggestions** - Call mcp__bip__suggest to get AI-powered tweet suggestions
93
+
94
+ 5. **Present options** - Show me the suggestions with confidence scores and let me choose which one to post (or customize)
95
+
96
+ 6. **Post the tweet** - Once I choose, use mcp__bip__tweet to post it
97
+
98
+ **Important:** This is about celebrating progress and sharing learnings authentically. Focus on what was actually accomplished, not hype.`,
99
+ },
100
+ },
101
+ ],
102
+ };
103
+ case 'quick':
104
+ const message = args?.message;
105
+ if (!message) {
106
+ return {
107
+ messages: [
108
+ {
109
+ role: 'user',
110
+ content: {
111
+ type: 'text',
112
+ text: 'Error: Please provide a message for your tweet.',
113
+ },
114
+ },
115
+ ],
116
+ };
117
+ }
118
+ return {
119
+ messages: [
120
+ {
121
+ role: 'user',
122
+ content: {
123
+ type: 'text',
124
+ text: `Post this message to Twitter immediately using mcp__bip__tweet:
125
+
126
+ "${message}"
127
+
128
+ After posting, show me the tweet URL.`,
129
+ },
130
+ },
131
+ ],
132
+ };
133
+ case 'suggest':
134
+ return {
135
+ messages: [
136
+ {
137
+ role: 'user',
138
+ content: {
139
+ type: 'text',
140
+ text: `# Build in Public - Get Tweet Suggestions
141
+
142
+ Based on the current session context, generate intelligent tweet suggestions.
143
+
144
+ ## Your Task
145
+
146
+ 1. **Load context** - Call mcp__bip__get_context to see what's available
147
+ 2. **Generate suggestions** - Call mcp__bip__suggest to get AI-powered tweet ideas
148
+ 3. **Present options** - Show me the suggestions with confidence scores
149
+ 4. **Let me choose** - I'll pick one to post or provide a custom message
150
+ 5. **Post** - Use mcp__bip__tweet when I'm ready
151
+
152
+ Focus on authentic sharing of progress, learnings, and challenges.`,
153
+ },
154
+ },
155
+ ],
156
+ };
157
+ default:
158
+ throw new Error(`Unknown prompt: ${name}`);
159
+ }
160
+ });
24
161
  /**
25
162
  * List available tools
26
163
  */
@@ -241,7 +378,7 @@ server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
241
378
  case 'mcp__bip__status': {
242
379
  const authenticated = (0, twitter_js_1.isAuthenticated)();
243
380
  let statusText = `📊 Build in Public MCP Server Status\n\n`;
244
- statusText += `Version: 0.3.0\n`;
381
+ statusText += `Version: 0.3.3\n`;
245
382
  statusText += `Storage: ${(0, storage_js_1.getStorageDir)()}\n\n`;
246
383
  // Debug: Show env vars status
247
384
  statusText += `🔍 Environment Variables:\n`;
@@ -413,7 +550,7 @@ async function main() {
413
550
  await server.connect(transport);
414
551
  // Log to stderr (stdout is used for MCP protocol)
415
552
  console.error('🚀 Build in Public MCP Server started');
416
- console.error('📍 Version: 0.2.0');
553
+ console.error('📍 Version: 0.3.3');
417
554
  console.error('🔗 Transport: STDIO');
418
555
  console.error('💾 Storage:', (0, storage_js_1.getStorageDir)());
419
556
  console.error('');
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAEA;;;GAGG;;AAEH,wEAAmE;AACnE,wEAAiF;AACjF,iEAG4C;AAE5C,+CAAoD;AACpD,sDAK+B;AAC/B,sDAM+B;AAC/B,0EAAuF;AAEvF,sBAAsB;AACtB,MAAM,MAAM,GAAG,IAAI,iBAAM,CACvB;IACE,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,OAAO;CACjB,EACD;IACE,YAAY,EAAE;QACZ,KAAK,EAAE,EAAE;KACV;CACF,CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,iBAAiB,CAAC,iCAAsB,EAAE,KAAK,IAAI,EAAE;IAC1D,OAAO;QACL,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,iBAAiB;gBACvB,WAAW,EACT,wEAAwE;gBAC1E,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBAC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AAM,IAAI,KAAK,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,YAAY,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5E,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,YAAY,YAAY,EAAE;iBACjC;aACF;YACD,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;AACH,CAAC,CAAC,CAAC;AAEH;;GAEG;AACH,KAAK,UAAU,IAAI;IACjB,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAEhC,kDAAkD;IAClD,OAAO,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAC;IACvD,OAAO,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACnC,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACrC,OAAO,CAAC,KAAK,CAAC,aAAa,EAAE,IAAA,0BAAa,GAAE,CAAC,CAAC;IAC9C,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AACpB,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;IAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucianfialho/build-in-public-mcp",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "MCP server for Build in Public - automatically share your dev progress on Twitter with AI-powered suggestions",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
@@ -28,7 +28,6 @@
28
28
  "files": [
29
29
  "dist",
30
30
  "server.json",
31
- ".claude",
32
31
  "README.md",
33
32
  "LICENSE"
34
33
  ],
package/server.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://modelcontextprotocol.io/schemas/server.json",
3
3
  "name": "build-in-public",
4
4
  "description": "MCP server for Build in Public - automatically share your dev progress on Twitter",
5
- "version": "0.2.0",
5
+ "version": "0.3.2",
6
6
  "transport": "stdio",
7
7
  "environmentVariables": [
8
8
  {
@@ -1,273 +0,0 @@
1
- # Build in Public - Tweet Now
2
-
3
- Post to Twitter immediately or get AI-generated suggestions based on your coding session.
4
-
5
- ## Usage
6
-
7
- ### Post immediately with custom message:
8
- ```
9
- /bp Your custom message here
10
- ```
11
-
12
- ### Get AI suggestions from session:
13
- ```
14
- /bp
15
- ```
16
-
17
- ### Retrospective analysis (analyze entire session):
18
- ```
19
- /bp retro
20
- ```
21
-
22
- ## Your Task
23
-
24
- **Step 1: Check the command mode**
25
-
26
- Look at the command arguments:
27
- - If user provided `retro` → **RETRO MODE** (analyze entire session)
28
- - If user provided other text → **CUSTOM MESSAGE** (post directly)
29
- - If no arguments → **SUGGESTION MODE** (generate from current context)
30
-
31
- **Step 2a: If RETRO MODE** (`/bp retro`)
32
-
33
- This is the MOST IMPORTANT mode - analyze the ENTIRE session and extract insights!
34
-
35
- 1. **Analyze the full conversation** (from the start of this session):
36
- - Read through ALL messages, tool uses, code changes, and discussions
37
- - Extract what was accomplished (achievements)
38
- - Identify what was learned (learnings)
39
- - Note challenges solved (challenges)
40
- - Detect technologies/tools used
41
- - Find interesting moments or breakthroughs
42
-
43
- 2. **Build comprehensive context object**:
44
- ```javascript
45
- {
46
- sessionId: "<current-session-id>",
47
- startTime: "<session-start-time>",
48
- filesModified: ["file1.ts", "file2.py", ...],
49
- commandsRun: [{command: "npm run build", description: "..."}],
50
- toolsUsed: ["Edit", "Write", "Bash", ...],
51
- userMessages: ["key user requests/questions"],
52
- commits: [], // if any git commits detected
53
- achievements: [
54
- "Implemented AI-powered tweet suggestion engine",
55
- "Created hybrid manual/auto posting system",
56
- "Built v0.3.0 with context tracking"
57
- ],
58
- challenges: [
59
- "Fixed OAuth 403 errors by regenerating tokens",
60
- "Debugged TypeScript duplicate interface errors"
61
- ],
62
- learnings: [
63
- "MCP servers use STDIO transport for local communication",
64
- "Twitter API requires OAuth 1.0a tokens regenerated after permission changes"
65
- ],
66
- shouldTweet: true,
67
- customMessage: null
68
- }
69
- ```
70
-
71
- 3. **Save context**: Call `mcp__bip__save_context` with the comprehensive context
72
-
73
- 4. **Generate suggestions**: Call `mcp__bip__suggest`
74
-
75
- 5. **Present to user**:
76
- - Show what you extracted (achievements, learnings, challenges)
77
- - Show the AI-generated tweet suggestions
78
- - Ask user which one to post or if they want to customize
79
-
80
- 6. **Post the chosen tweet**
81
-
82
- **Step 2b: If custom message provided**
83
-
84
- 1. Call `mcp__bip__tweet` with the user's message
85
- 2. Report success with the tweet URL
86
- 3. Done!
87
-
88
- **Step 2c: If NO message provided (suggestion mode)**
89
-
90
- 1. Call `mcp__bip__get_context` to retrieve session context
91
- 2. Call `mcp__bip__suggest` to generate tweet suggestions
92
- 3. If suggestions exist:
93
- - Present them to the user in a clear, numbered list
94
- - Show confidence level and reason for each
95
- - Ask user to choose one OR provide a custom message
96
- - Wait for user response
97
- 4. If user chooses a suggestion:
98
- - Call `mcp__bip__tweet` with the chosen suggestion's message
99
- 5. If user provides custom message:
100
- - Call `mcp__bip__tweet` with their custom message
101
- 6. Report success with tweet URL
102
-
103
- **Important Notes:**
104
-
105
- - Always authenticate before posting (check if `mcp__bip__tweet` returns auth error)
106
- - If not authenticated, guide user to run `/bp setup` first
107
- - Keep tweet messages under 280 characters
108
- - Be conversational and helpful
109
- - If no context exists, explain that and offer to post a custom message
110
-
111
- ## Example Flows
112
-
113
- ### Example 1: Retro Mode (The Meta Example!)
114
- ```
115
- User: /bp retro
116
- Claude: *analyzes entire session*
117
-
118
- 📊 Session Analysis Complete!
119
-
120
- **Achievements:**
121
- ✅ Implemented v0.3.0 with AI-powered tweet suggestions
122
- ✅ Created suggestion engine with 4 different strategies
123
- ✅ Built hybrid manual/automatic posting system
124
- ✅ Integrated hooks for automatic context tracking
125
- ✅ Successfully posted first tweet via MCP
126
-
127
- **Challenges Solved:**
128
- 🎯 Fixed OAuth 403 errors by regenerating access tokens
129
- 🎯 Debugged TypeScript duplicate interface definitions
130
- 🎯 Unified storage location from ~/.claude to ~/.build-in-public
131
-
132
- **Key Learnings:**
133
- 💡 MCP servers use STDIO transport for local communication
134
- 💡 Twitter OAuth 1.0a tokens need regeneration after permission changes
135
- 💡 Environment variables take precedence over auth.json files
136
-
137
- *saves context and generates suggestions*
138
-
139
- Based on your session, here are tweet suggestions:
140
-
141
- 1. [90% confidence] achievement
142
- "Just built a build-in-public tool... using Claude to build it 🤯
143
-
144
- Shipped v0.3.0 with:
145
- ✅ AI-powered tweet suggestions
146
- ✅ Auto context tracking
147
- ✅ Hybrid manual/auto posting
148
-
149
- Meta level: Maximum 🚀 #BuildInPublic #AI"
150
-
151
- 2. [85% confidence] learning
152
- "💡 TIL: Building developer tools is wild when your dev tool
153
- helps you build the dev tool.
154
-
155
- Also learned MCP servers + hooks = perfect combo for
156
- context-aware automation. #BuildInPublic"
157
-
158
- 3. [80% confidence] session
159
- "Wrapped up a meta coding session! 🛠️
160
-
161
- Modified 10+ files, implemented AI suggestion engine,
162
- fixed OAuth issues, and shipped v0.3.0.
163
-
164
- Building in public while building the build-in-public tool 😄"
165
-
166
- Which one would you like to post? (1-3, or provide your own)
167
-
168
- User: 1
169
- Claude: *posts tweet*
170
- ✅ Tweet posted successfully!
171
- https://twitter.com/lucian_fialho/status/...
172
- ```
173
-
174
- ### Example 2: Custom Message
175
- ```
176
- User: /bp Just shipped authentication! 🔐 #BuildInPublic
177
- Claude: *calls mcp__bip__tweet*
178
- Claude: ✅ Tweet posted successfully!
179
- https://twitter.com/lucian_fialho/status/123456789
180
- ```
181
-
182
- ### Example 3: AI Suggestions (from current context)
183
- ```
184
- User: /bp
185
- Claude: *calls mcp__bip__get_context*
186
- Claude: *calls mcp__bip__suggest*
187
- Claude: Based on your session, here are some tweet suggestions:
188
-
189
- 1. [85% confidence] commit
190
- Recent git commit detected
191
-
192
- "Just committed: 'Add OAuth login system'
193
- Modified 5 files. +247/-12 lines. #BuildInPublic #Coding"
194
-
195
- 2. [75% confidence] achievement
196
- 3 achievements logged
197
-
198
- "✅ Progress update:
199
- 1. Implemented OAuth 2.0 flow
200
- 2. Added token refresh logic
201
- 3. Tested with Google provider
202
- #BuildInPublic"
203
-
204
- 3. [70% confidence] learning
205
- Learning moment captured
206
-
207
- "💡 TIL (Today I Learned):
208
- OAuth refresh tokens need secure storage and rotation.
209
- Learned the hard way! #BuildInPublic #Learning"
210
-
211
- Which one would you like to post? (1-3, or provide your own message)
212
-
213
- User: 1
214
- Claude: *calls mcp__bip__tweet with suggestion 1's message*
215
- Claude: ✅ Tweet posted successfully!
216
- https://twitter.com/lucian_fialho/status/123456789
217
- ```
218
-
219
- ### Example 4: No Context Yet
220
- ```
221
- User: /bp
222
- Claude: *calls mcp__bip__get_context*
223
- Claude: ⚠️ No session context found yet.
224
-
225
- I haven't captured any coding activity in this session yet.
226
- You can either:
227
-
228
- 1. Start coding and try /bp again later
229
- 2. Provide a custom message now: /bp Your message here
230
-
231
- What would you like to do?
232
- ```
233
-
234
- ## Setup Command
235
-
236
- If user runs `/bp setup`, guide them through authentication:
237
-
238
- 1. Explain they need Twitter API credentials
239
- 2. Call `mcp__bip__setup_auth` to start OAuth flow
240
- 3. Guide them through the PIN-based authentication
241
- 4. Confirm success
242
-
243
- ## Advanced Features
244
-
245
- If the session context has:
246
- - **Multiple commits**: Suggest creating a thread instead (use `mcp__bip__thread`)
247
- - **Challenges logged**: Include them in the suggestions
248
- - **Learnings captured**: Highlight TIL moments
249
-
250
- ## Important Notes for Retro Mode
251
-
252
- **RETRO MODE is the power feature!** When user says `/bp retro`:
253
-
254
- 1. **Be thorough**: Read the ENTIRE conversation from start to finish
255
- 2. **Extract intelligently**: Don't just list files - understand what was ACCOMPLISHED
256
- 3. **Be specific**: "Implemented OAuth authentication" is better than "Modified auth files"
257
- 4. **Capture the meta**: If they're building a tool about X while doing X, highlight that!
258
- 5. **Include numbers**: "Modified 10 files, fixed 3 bugs, shipped v0.3.0"
259
- 6. **Emotion matters**: Include excitement, frustration overcome, aha moments
260
- 7. **Tech stack**: Mention tools/frameworks used (TypeScript, MCP, Twitter API, etc.)
261
-
262
- **Context Quality Examples:**
263
-
264
- ❌ Bad: `achievements: ["changed files", "ran commands"]`
265
-
266
- ✅ Good: `achievements: [
267
- "Implemented AI-powered tweet suggestion engine with 4 strategies",
268
- "Built hybrid manual/auto posting system",
269
- "Fixed OAuth 403 errors by regenerating tokens with correct permissions",
270
- "Shipped v0.3.0 with full context tracking"
271
- ]`
272
-
273
- Stay helpful, conversational, and make build-in-public feel effortless!