-
Notifications
You must be signed in to change notification settings - Fork 975
feat(cli/mcp): an initial implementation of a lit mcp server package #4990
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
base: main
Are you sure you want to change the base?
Conversation
📊 Tachometer Benchmark ResultsSummary⏳ Benchmarks are currently running. Results below are out of date. nop-update
render
update
update-reflect
Results⏳ Benchmarks are currently running. Results below are out of date. this-change
render
update
update-reflect
this-change, tip-of-tree, previous-release
render
update
nop-update
this-change, tip-of-tree, previous-release
render
update
this-change, tip-of-tree, previous-release
render
update
update-reflect
|
256df49
to
ef0d45c
Compare
🦋 Changeset detectedLatest commit: 87f31d3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
ef0d45c
to
2213cb5
Compare
I had issues writing tests for this. The CLI version of this package seems to be the only way we can test this with with CI. Issues are:
|
2213cb5
to
a81b2a8
Compare
The size of lit-html.js and lit-core.min.js are as expected. |
a81b2a8
to
42f84b1
Compare
42f84b1
to
83e7f0b
Compare
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.
Nice!
fd29310
to
a312af9
Compare
4353115
to
eadf6f8
Compare
@rictic PTAL: I've made some changes by adding this to the Lit CLI. I've updated the PR description |
'The environment to run in, either "local" or "server". Server mode will ' + | ||
'only expose MCP commands that are available on the server which are commands that do ' + | ||
'not require local file access.', | ||
typeLabel: '"local", "server"', |
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.
What local filesystem tools are you thinking of?
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.
This is what we were discussing previously:
- Local, requires filesysten access like generating / finding CE manifests
- Server, only requires network access to enable a RAG via MCP over HTTP (such as site search)
This implements a very basic mcp server that hooks into our algolia search for lit.dev. The key exposed is a rate-limited read-only key.
This implements a very basic mcp server that hooks into our algolia search for lit.dev. The key exposed is a rate-limited read-only key.
Features in this pr:
local
can only run when it has source code in front of it or on a local machineserver
can only run when it's on a serverany
can run in any environmentlit labs mcp
command--skip-permissions
command so that AI tools don't get stuck on the cli asking to install the mcp server