@eox/elements-mcp-server
v1.0.1
Published
A server to provide information about EOxElements custom elements for coding agents.
Downloads
215
Keywords
Readme
EOxElements MCP Server
This server provides a set of tools for a coding agent to get information about the EOxElements custom elements. It uses the @modelcontextprotocol/sdk to expose the tools.
Getting Started
For Users
Install the package globally from npm:
npm install -g @eox/elements-mcp-serverThen, run the server:
eox-elements-mcp-serverThe server will fetch the latest custom-elements.json from the EOxElements GitHub repository and start on http://localhost:3000.
For Developers
If you are working on the EOxElements project itself, you will want to run the server with a local custom-elements.json file.
Installation: From the root of the
EOxElementsproject, install all dependencies:```bashnpm install
2. **Generate the manifest:**
Make sure the `custom-elements.json` file is up-to-date:
```bash
npm run generate-manifestRun the server: Run the server with the
--manifestflag, pointing to the generatedcustom-elements.jsonfile:node mcp-server/index.js --manifest ./custom-elements.jsonYou can also provide a local path to the story snippets file using the
--snippetsflag:node mcp-server/index.js --manifest ./custom-elements.json --snippets ./story-snippets.json
The server will start on http://localhost:3000.
