@eox/elements-mcp-server
v1.1.0
Published
A server to provide information about EOxElements custom elements for coding agents.
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
Hosted Endpoint
To use the MCP server without installing anything locally, you can point your coding agent to our hosted endpoint:
https://elements.mcp.eox.at
For Users
Alternatively, you can run the server locally.
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:
npm install- Generate the manifest:
Make sure the
custom-elements.jsonfile is up-to-date:
npm run generate-manifest- Run 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 --snippets flag:
node mcp-server/index.js --manifest ./custom-elements.json --snippets ./story-snippets.jsonThe server will start on http://localhost:3000 and can be consumed by pointing a coding agent to it (or http://localhost:3000/ with a slash at the end if a path is required).
