-
Notifications
You must be signed in to change notification settings - Fork 3
feat: simplified documentation listing #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@khromov is attempting to deploy a commit to the Svelte team on Vercel, but is not a member of this team. To resolve this issue, you can:
To read more about collaboration on Vercel, click here. |
packages/mcp-server/src/mcp/utils.ts
Outdated
} | ||
} | ||
|
||
export async function getSections() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dummy data until sveltejs/svelte.dev#1556 is merged
packages/mcp-server/src/mcp/handlers/tools/get-documentation.ts
Outdated
Show resolved
Hide resolved
packages/mcp-server/src/mcp/handlers/tools/get-documentation.ts
Outdated
Show resolved
Hide resolved
packages/mcp-server/src/mcp/handlers/tools/get-documentation.ts
Outdated
Show resolved
Hide resolved
{ | ||
name: 'list-sections', | ||
enabled: () => false, | ||
enabled: () => true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enabled: () => true, |
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@khromov I think this is ready to go...we can think later how and if we want to cache the results. |
const formatted_sections = available_sections | ||
.map( | ||
(section) => | ||
`* title: ${section.title}, use_cases: ${section.use_cases}, path: ${section.url}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe let's not add use_cases if it's empty, and put it at the end (so it's title, path, (maybe) use_cases)?
No description provided.