feat(cli/mcp): an initial implementation of a lit mcp server package#4990
feat(cli/mcp): an initial implementation of a lit mcp server package#4990
Conversation
📊 Tachometer Benchmark ResultsSummarynop-update
render
update
update-reflect
Resultsthis-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: 8c71d96 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
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.
What local filesystem tools are you thinking of?
There was a problem hiding this comment.
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)
a5ef0ac to
ca405be
Compare
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:
localcan only run when it has source code in front of it or on a local machineservercan only run when it's on a serveranycan run in any environmentlit labs mcpcommand--skip-permissionscommand so that AI tools don't get stuck on the cli asking to install the mcp server