Skip to content

Commit 86697e6

Browse files
authored
Merge pull request #16 from devfolioco/mcp-v2-guide-update
chore: Updated mcp guide
2 parents 80a87a0 + dcc7613 commit 86697e6

14 files changed

Lines changed: 481 additions & 89 deletions

bun.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

content/docs/guide/devfolio-mcp.mdx

Lines changed: 82 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,135 +1,139 @@
11
---
22
title: Devfolio MCP
3-
description: Learn about Devfolio MCP (Model Context Protocol) integration.
43
---
54

6-
<Callout title="Announcement" type="info">
7-
Builders, meet the Devfolio MCP Server (Beta).
5+
import { Tabs, Tab } from "fumadocs-ui/components/tabs";
86

9-
Pull your profile. Fetch your hackathons. Draft a submission, all from the comfort of your AI client.
10-
</Callout>
11-
12-
## 🤔 What is MCP?
13-
14-
**MCP** stands for **Model Context Protocol** - a protocol that securely streams relevant personal or app-specific data to AI models, helping them respond with deeper context and awareness.
7+
Devfolio [MCP](https://nsb.dev/devfolio-mcp-explainer) lets you connect Devfolio to AI tools like [Claude Code](https://code.claude.com/docs/en/overview), [Codex](https://openai.com/codex), and [Cursor](https://www.cursor.com/), so they can help you with your hackathon submissions using context from your local project files.
158

16-
In this case, it allows you to connect your Devfolio account to any MCP-compatible AI tool (like Cursor, VS Code extensions, or Claude) using a simple JSON configuration. This means the AI can understand things like your Devfolio profile, projects, and hackathon activity **only if you allow it**.
17-
18-
<Callout title="Want to dive deeper?" type="info">
19-
Check this out → [Devfolio MCP Explainer](https://nsb.dev/devfolio-mcp-explainer)
20-
</Callout>
9+
Once connected, your AI tool can quickly understand your codebase, help you write stronger submissions faster, surface relevant tracks to apply for, and make it easier to showcase what you’ve built.
2110

2211
<iframe
2312
width="100%"
2413
height="400"
25-
src="https://drive.google.com/file/d/1LHIWX9uWOmXrJK_dnY0rLRf8Qa4ya76p/preview"
14+
src="https://www.youtube.com/embed/BnyOcD7fIqI"
2615
title="Devfolio MCP Demo"
2716
frameBorder="0"
2817
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
2918
allowFullScreen
3019
/>
3120

32-
---
21+
## Quick Start
3322

34-
## 🧠 Unlock Devfolio's MCP AI — Step-by-Step Guide
23+
1. Open [`Account Settings > MCP`](https://devfolio.co/settings/mcp).
24+
2. Click `Generate API key`.
25+
3. Choose the setup format for your AI tool.
26+
4. Paste the prompt, run the command, or copy the JSON shown.
3527

36-
<Callout title="Beta Access Required" type="warning">
37-
This feature is currently available for Beta Users Only
28+
<Callout title="Keep your API key private" type="error">
29+
Your MCP API key is sensitive, like a password. Anyone with access can act on your behalf. If it is compromised, revoke it and generate a new one right away.
3830
</Callout>
3931

40-
---
32+
## Where Can I Find Devfolio MCP?
4133

42-
### ✨ Step 1: Enter
34+
You can find Devfolio MCP in Account Settings, your hackathon dashboard, and the project submission page.
4335

44-
Head to [devfolio.co](https://devfolio.co/) and click on your avatar in the **top-right corner**. From the dropdown, click **Account Settings**.
36+
Hackathon dashboard and submission-page shortcuts appear only when project submissions are open and your account is eligible to submit.
4537

46-
<img src="/assets/mcp-step1.webp" alt="Account Settings" />
38+
### 1. From Account Settings
4739

48-
---
40+
Go to your profile menu, open `Account Settings`, and select the `MCP` tab.
4941

50-
### 🧪 Step 2: Join the Beta Club
42+
<img src="/assets/mcp-setting.webp" alt="Devfolio MCP tab in Account Settings" />
5143

52-
In the **left sidebar**, find the tab labeled **Beta**. Click it, and hit **Join [Devfolio Beta](https://devfolio.co/settings/beta)**.
44+
Click `Generate API key` to create your MCP API key.
5345

54-
<Callout title="Welcome to the experimental zone" type="info">
55-
You're now part of the experimental zone. No lab coats required.
56-
</Callout>
46+
<img src="/assets/mcp-configure-setting.webp" alt="Devfolio MCP setup options in Account Settings" />
5747

58-
<img src="/assets/mcp-step2.webp" alt="Join Beta" />
48+
### 2. From Your Hackathon Dashboard
5949

60-
---
50+
For hackathons where submissions are open to you, you may also see an `MCP Integration` card on your hackathon dashboard.
6151

62-
### 🤖 Step 3: Find the "MCP" Gateway
52+
<img src="/assets/mcp-dashboard.webp" alt="MCP Integration card on a hackathon dashboard" />
6353

64-
Once you've joined the Beta program, a new tab magically appears just below — called **MCP**. Click it: [https://devfolio.co/settings/mcp](https://devfolio.co/settings/mcp)
54+
<img src="/assets/mcp-configure-model-dashboard.webp" alt="Devfolio MCP setup window opened from the hackathon dashboard" />
6555

66-
<Callout title="What is Devfolio MCP?" type="info">
67-
Devfolio MCP = Devfolio's Model Context Protocol Server.
68-
</Callout>
56+
### 3. From the Project Submission Page
6957

70-
<img src="/assets/mcp-step3.webp" alt="MCP Gateway" />
58+
When you are submitting a hackathon project, you may see a small floating MCP assistant button in the bottom-left corner of the submission page.
7159

72-
---
60+
<img src="/assets/mcp-project.webp" alt="MCP assistant button on the project submission page" />
7361

74-
### 🔐 Step 4: Configure the MCP
62+
Clicking this button opens the MCP setup window.
7563

76-
Inside the MCP tab:
64+
<img src="/assets/mcp-configure-model-project.webp" alt="Devfolio MCP setup window opened from the project submission page" />
7765

78-
- Generate your **API Key**
79-
- Copy the auto-generated **JSON config**
66+
## Setup Commands and Configuration
8067

81-
<Callout title="Security Warning" type="error">
82-
Your MCP API key is sensitive — like a password. Anyone with access can act on your behalf. If compromised, revoke it and generate a new one right away.
83-
</Callout>
68+
Devfolio fills in your actual MCP API key in the setup window. The examples below use `YOUR_API_KEY` as a placeholder.
8469

85-
---
70+
<Tabs items={["Prompt", "Claude Code", "Codex", "Cursor", "JSON"]}>
71+
<Tab value="Prompt">
72+
73+
Copy this prompt and paste it into a new chat with your AI assistant:
74+
75+
```text
76+
Please connect to the Devfolio MCP server using the following URL:
77+
https://mcp.devfolio.co/mcp?apiKey=YOUR_API_KEY
78+
```
79+
80+
</Tab>
8681

87-
### 🧩 Step 5: Connect an AI Agent
82+
<Tab value="Claude Code">
8883

89-
Take your JSON config and paste it into a compatible MCP AI client like Cursor or any other that supports streamable HTTP MCP servers.
84+
Copy this command and run it in your terminal:
9085

91-
- **Open Your IDE**
92-
- Launch your preferred editor (VS Code, Cursor, etc.).
93-
- Make sure the MCP-compatible plugin/extension is installed.
94-
- **Open the Command Palette**
95-
- Press `Cmd + Shift + P` (Mac) or `Ctrl + Shift + P` (Windows/Linux).
96-
- Type: `MCP` → select `Add MCP Server` (or equivalent).
97-
- **Paste Your Config**
98-
- Paste the JSON config you copied from Devfolio MCP Tab.
99-
- It should look like this:
86+
```bash
87+
claude mcp add --transport http devfolio --scope user https://mcp.devfolio.co/mcp \
88+
--header "x-api-key: YOUR_API_KEY"
89+
```
90+
91+
</Tab>
92+
93+
<Tab value="Codex">
94+
95+
Copy this command and run it in your terminal:
96+
97+
```bash
98+
codex mcp add devfolio \
99+
--url "https://mcp.devfolio.co/mcp?apiKey=YOUR_API_KEY"
100+
```
101+
102+
</Tab>
103+
104+
<Tab value="Cursor">
105+
106+
Click `Add to Cursor` in the setup window, then approve the Devfolio MCP server installation in Cursor.
107+
108+
</Tab>
109+
110+
<Tab value="JSON">
111+
112+
If your MCP client asks for a JSON configuration, copy this setup from Devfolio MCP:
100113

101114
```json
102115
{
103116
"mcpServers": {
104117
"devfolio": {
105-
"url": "https://mcp.devfolio.co/mcp?apiKey=XXXX-XXXX-XXXX-XXXX-XXXX"
118+
"url": "https://mcp.devfolio.co/mcp?apiKey=YOUR_API_KEY"
106119
}
107120
}
108121
}
109122
```
110123

111-
<Callout title="What's happening?" type="info">
112-
You're essentially plugging your AI into your Devfolio universe.
113-
</Callout>
124+
</Tab>
125+
</Tabs>
114126

115-
<img src="/assets/mcp-step5.webp" alt="Cursor IDE configured with Devfolio MCP" />
116-
<p align="center"><i>Example: Cursor IDE configured with Devfolio MCP</i></p>
127+
## Example Prompts
117128

118-
---
129+
After connecting Devfolio MCP, try prompts like:
119130

120-
### 💬 Step 6: Talk to Your Devfolio AI!
131+
- `Submit my project to Devfolio.`
132+
- `Suggest the best prize tracks for my project.`
133+
- `Rewrite my tagline to be clearer and more judge-friendly.`
134+
- `Check whether my submission is missing anything important.`
135+
- `Summarize the prizes for this hackathon.`
121136

122-
Here are some good sample questions to ask the AI:
123-
124-
- What is my username?
125-
- Analyze and summarize the prizes for the `hackathonName` hackathon.
126-
- Which prizes from the hackathon are most relevant to my project?
127-
- Analyze my project, and create a submission for the `hackathonName` hackathon.
128-
- Update the tagline of my project `projectName` to be more impactful.
129-
130-
<Callout title="Success!" type="info">
131-
🎉 Hola! You now have an AI buddy that knows your Devfolio activity.
137+
<Callout title="Access control" type="info">
138+
You can manage or revoke MCP access from [`Account Settings > MCP`](https://devfolio.co/settings/mcp).
132139
</Callout>
133-
134-
<img src="/assets/mcp-step6.webp" alt="AI interaction example" />
135-

content/docs/guide/keyboard-accessibility.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ Let’s say you're editing a project:
6969
5. Ready to submit? Hit `CMD + K`, find your hackathon, and go for it!
7070

7171

72-
**Might be a good time to fire up the [🔗 MCP](https://nsb.dev/Devfolio_mcp_Guide) for that submission.**
72+
**Might be a good time to fire up the [🔗 MCP](/docs/guide/devfolio-mcp) for that submission.**
7373

7474

7575
---
7676

77-
Let your keyboard do the work, and ship faster on Devfolio. 🧑‍💻✨
77+
Let your keyboard do the work, and ship faster on Devfolio. 🧑‍💻✨

content/docs/guide/mdx-components.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import defaultMdxComponents from 'fumadocs-ui/mdx';
22
import * as TabsComponents from 'fumadocs-ui/components/tabs';
33
import type { MDXComponents } from 'mdx/types';
4+
import { ZoomableImage } from '@/components/zoomable-image';
45

56
export function getMDXComponents(components?: MDXComponents): MDXComponents {
67
return {
78
...defaultMdxComponents,
89
...TabsComponents,
10+
img: ZoomableImage,
911
...components,
1012
};
1113
}
12-
225 KB
Loading
129 KB
Loading
132 KB
Loading

public/assets/mcp-dashboard.webp

133 KB
Loading

public/assets/mcp-project.webp

238 KB
Loading

public/assets/mcp-setting.webp

106 KB
Loading

0 commit comments

Comments
 (0)