Skip to content

Commit 130abb3

Browse files
committed
Add new get started mcp resource
1 parent dfce37e commit 130abb3

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/plain',
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/plain',
87+
text: content,
88+
},
89+
],
90+
};
91+
},
92+
},
7393
] satisfies (Resource & { handler: ReadResourceCallback })[];

0 commit comments

Comments
 (0)