Skip to content

Commit 24c34d6

Browse files
authored
feat: add new get started mcp resource (#127)
**Context** As part of our onboarding devx, we want to add a set of steps and instructions to help users integrate their existing projects with Neon. We added this guide in neondatabase-labs/ai-rules#11. This will be through an `init` command that sets up the MCP server for the user. **What changes are proposed in this pull request?** This PR adds the 'get started' AI rule as an MCP server resource. The user should be able to trigger it by typing 'Get started with Neon' in the AI assistant chat. **How was this tested?** Verified new resource on MCP inspector <img width="529" height="561" alt="Screenshot 2025-10-31 at 15 58 49" src="https://github.com/user-attachments/assets/3520ace7-24f0-4154-9b9a-de161eae302a" /> #[LKB-4026](https://databricks.atlassian.net/browse/LKB-5291)
1 parent dfce37e commit 24c34d6

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/resources.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,24 @@ export const NEON_RESOURCES = [
7070
};
7171
},
7272
},
73+
{
74+
name: 'neon-get-started',
75+
uri: 'https://github.com/neondatabase-labs/ai-rules/blob/main/neon-get-started.mdc',
76+
mimeType: 'text/markdown',
77+
description: 'Neon getting started guide',
78+
handler: async (url) => {
79+
const uri = url.host;
80+
const rawPath = url.pathname;
81+
const content = await fetchRawGithubContent(rawPath);
82+
return {
83+
contents: [
84+
{
85+
uri,
86+
mimeType: 'text/markdown',
87+
text: content,
88+
},
89+
],
90+
};
91+
},
92+
},
7393
] satisfies (Resource & { handler: ReadResourceCallback })[];

0 commit comments

Comments
 (0)