-
-
Notifications
You must be signed in to change notification settings - Fork 363
feat: mcp #3897
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
Draft
Hugos68
wants to merge
9
commits into
main
Choose a base branch
from
feat/skeleton-mcp
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+899
−53
Draft
feat: mcp #3897
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
d1b02a8
init
Hugos68 b08f04c
init mcp
Hugos68 5b50e32
init
Hugos68 51ea15e
add to pre
Hugos68 d1d6757
Merge branch 'main' into feat/skeleton-mcp
Hugos68 045f194
format
Hugos68 a0dde80
todo's
Hugos68 840ac89
changeset
Hugos68 0d9149c
Merge branch 'main' into feat/skeleton-mcp
Hugos68 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@skeletonlabs/skeleton-mcp": patch | ||
--- | ||
|
||
chore: init | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"mode": "pre", | ||
"tag": "next", | ||
"initialVersions": { | ||
"skeleton": "1.0.0", | ||
"@skeletonlabs/skeleton": "3.2.0", | ||
"@skeletonlabs/skeleton-common": "0.0.1", | ||
"@skeletonlabs/skeleton-mcp": "0.0.1", | ||
"@skeletonlabs/skeleton-react": "1.4.0", | ||
"@skeletonlabs/skeleton-svelte": "1.5.1", | ||
"@skeletonlabs/playground-skeleton-react": "0.0.1", | ||
"@skeletonlabs/playground-skeleton-svelte": "0.0.1", | ||
"@skeletonlabs/skeleton.dev": "0.0.1", | ||
"@skeletonlabs/themes.skeleton.dev": "0.0.1" | ||
}, | ||
"changesets": [ | ||
"all-hands-attend", | ||
"beige-jars-sip", | ||
"better-shrimps-beam", | ||
"calm-rooms-marry", | ||
"chatty-kids-join", | ||
"clear-places-shout", | ||
"dry-coats-return", | ||
"eleven-comics-tease", | ||
"evil-hands-obey", | ||
"five-snakes-love", | ||
"forty-badgers-clap", | ||
"giant-bushes-smash", | ||
"giant-pans-prove", | ||
"good-groups-look", | ||
"great-eagles-glow", | ||
"hot-beers-think", | ||
"humble-birds-rush", | ||
"kind-feet-serve", | ||
"legal-suits-write", | ||
"lemon-ducks-hunt", | ||
"little-files-notice", | ||
"major-trains-enter", | ||
"mean-nights-repeat", | ||
"neat-clubs-agree", | ||
"odd-cooks-make", | ||
"orange-towns-teach", | ||
"plain-areas-enter", | ||
"poor-otters-battle", | ||
"pretty-words-agree", | ||
"purple-tigers-happen", | ||
"quiet-bars-lay", | ||
"quiet-ducks-drop", | ||
"shiny-cups-pick", | ||
"shy-owls-divide", | ||
"silly-bottles-hope", | ||
"slick-breads-wink", | ||
"small-words-drum", | ||
"strong-hotels-care", | ||
"tall-pianos-divide", | ||
"tender-planets-rest", | ||
"tidy-peaches-know", | ||
"tidy-shoes-cough", | ||
"tricky-bags-sleep", | ||
"two-shrimps-wonder", | ||
"violet-signs-dream", | ||
"wet-seas-do", | ||
"wicked-buckets-fall", | ||
"yellow-jokes-walk", | ||
"young-files-hear" | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "@skeletonlabs/skeleton-mcp", | ||
"version": "4.0.0-next.31", | ||
"description": "The MCP server for Skeleton.", | ||
"author": "endigo9740 <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/skeletonlabs/skeleton.git", | ||
"directory": "packages/skeleton-mcp" | ||
}, | ||
"scripts": { | ||
"dev": "tsdown --watch", | ||
"build": "tsdown", | ||
"check": "tsc", | ||
"sync": "pnpm build" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js" | ||
} | ||
}, | ||
"files": [ | ||
"dist", | ||
"!dist/**/*.map" | ||
], | ||
"sideEffects": false, | ||
"dependencies": { | ||
"@modelcontextprotocol/sdk": "catalog:", | ||
"zod": "catalog:" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "catalog:", | ||
"tsdown": "catalog:", | ||
"typescript": "catalog:" | ||
}, | ||
"license": "MIT", | ||
"type": "module" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { server } from '@/mcp-server'; | ||
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; | ||
|
||
async function main() { | ||
const transport = new StdioServerTransport(); | ||
await server.connect(transport); | ||
console.error('Skeleton MCP Server running on stdio'); | ||
} | ||
|
||
main().catch((error) => { | ||
console.error('Fatal error in main():', error); | ||
process.exit(1); | ||
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; | ||
|
||
export const server = new McpServer({ | ||
name: 'skeleton', | ||
version: '1.0.0', | ||
title: 'Skeleton MCP Server', | ||
websiteUrl: 'https://skeleton.dev', | ||
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { server } from '@/mcp-server'; | ||
|
||
server.registerTool( | ||
'list_components', | ||
{ | ||
title: 'List Components', | ||
description: 'Lists all components available in Skeleton', | ||
}, | ||
async () => { | ||
// TODO: Implement actual logic to list components | ||
return { | ||
content: [], | ||
}; | ||
}, | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,15 @@ | ||||||||||||||||||||
import { server } from '@/mcp-server'; | ||||||||||||||||||||
|
||||||||||||||||||||
server.registerTool( | ||||||||||||||||||||
'list_frameworks', | ||||||||||||||||||||
{ | ||||||||||||||||||||
title: 'List Frameworks', | ||||||||||||||||||||
description: 'Lists all frameworks available in Skeleton', | ||||||||||||||||||||
}, | ||||||||||||||||||||
async () => { | ||||||||||||||||||||
// TODO: Implement actual logic to list frameworks | ||||||||||||||||||||
return { | ||||||||||||||||||||
content: [], | ||||||||||||||||||||
Comment on lines
+11
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nitpick] The tool returns an empty array without any implementation. Consider adding a TODO comment or implementing basic functionality to make the tool useful.
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||||||||||||
}; | ||||||||||||||||||||
}, | ||||||||||||||||||||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"compilerOptions": { | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"target": "es2022", | ||
"allowJs": true, | ||
"resolveJsonModule": true, | ||
"moduleDetection": "force", | ||
"isolatedModules": true, | ||
"verbatimModuleSyntax": true, | ||
"strict": true, | ||
"noUncheckedIndexedAccess": true, | ||
"noImplicitOverride": true, | ||
"declaration": true, | ||
"declarationMap": true, | ||
"module": "preserve", | ||
"noEmit": true, | ||
"lib": ["es2022", "dom", "dom.iterable"], | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
}, | ||
"include": ["src"] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The tools are not imported, so they won't be registered with the server. Add imports for the tool files to ensure they are loaded and registered.
Copilot uses AI. Check for mistakes.