Skip to main content
Glama

evo-marko-mcp

An MCP server that gives AI assistants accurate definitions for every eBay evo-web component in Marko 6 and the Marko 6 documentation, so they write correct <evo-*> markup and Tags API code instead of guessing.

It covers:

  • All @evo-web/marko components (the Marko 6 / Tags API implementation of evo-web): description, every attribute with type/default/options, controllable attributes (:= binding), attribute tags (<@tab>, <@option>, nested <@panel>…), native-attribute passthrough, all Storybook examples, TypeScript Input types, accessibility guidance, Skin CSS markup, changelog notes, and the Marko 5 <ebay-*> tag each one replaces.

  • Marko docs from markojs.com — language reference, core tags, reactivity, TypeScript, @marko/run, explanations and guides — plus the official Marko best-practices and Marko 5→6 migration guides.

  • The evo-web site (opensource.ebay.com/evo-web) — component pages, accessibility patterns / techniques / anti-patterns, and guides.

  • 1,100+ evo icons (<evo-icon-*>).

No runtime dependencies. Node 18.17+.

Install

Claude Code

claude mcp add evo-marko -- npx -y github:agliga/evo-marko-mcp

Claude Desktop / Cursor / VS Code / any MCP client

{
  "mcpServers": {
    "evo-marko": {
      "command": "npx",
      "args": ["-y", "github:agliga/evo-marko-mcp"]
    }
  }
}

Or from a local clone: "command": "node", "args": ["/path/to/evo-marko-mcp/bin/evo-marko-mcp.js"].

Related MCP server: web-ui-component-spec-mcp

Tools

Tool

What it does

list_components

All evo-web Marko 6 components by category; filter by category or free-text query ("date picker").

get_component

Full definition of one component. Accepts button, evo-button, <evo-button> or a Marko 5 name like ebay-button. sections: overview, usage, attributes, attrTags, examples (default) plus types, accessibility, css, sitePage, changelog, or all.

search_docs

BM25 search across Marko docs, evo-web docs and component definitions. source: all | marko | evo | components.

get_doc

Read a doc page by id (marko:reference/core-tag), URL or slug; section returns one heading.

list_docs

List every doc page id and title.

search_icons

Find <evo-icon-*> tags ("chevron down 16").

migrate_from_ebayui

Map @ebay/ebayui-core <ebay-*> tags to their @evo-web/marko replacements, with API-change notes.

index_info

Source commits and versions the index was built from.

Every component and doc page is also exposed as an MCP resource (evo-marko://components/{name}, evo-marko://docs/{id}), and a build_with_evo_marko prompt walks an assistant through building a template with these tools.

Example — get_component { "name": "tabs" } returns, among other things:

<let/curr=0>
<evo-tabs index:=curr>
  <@tab>
    <@panel><h3>Panel 1</h3></@panel>
    Tab 1
  </@tab>
  ...
</evo-tabs>

How the data is built

data/index.json is generated and committed, so the server works offline with no setup. It is built from the source repositories that publish both sites, which is more precise than scraping rendered HTML (real TypeScript types, Storybook arg docs, and example .marko files):

Site

Source

opensource.ebay.com/evo-web

eBay/evo-web — packages/evo-marko/src/tags/* (types, README, stories, examples), src/routes/** (site pages), src/data/component-metadata.json

markojs.com

marko-js/website docs/**/*.md, marko-js/marko skills/

A live-site crawler is included as well. Pages it finds that are not already covered by the sources are merged into the index.

npm run build:index              # shallow-clones the repos into .cache/sources and rebuilds data/index.json
npm run crawl                    # crawls markojs.com/docs and opensource.ebay.com/evo-web -> data/crawl.json
npm run refresh                  # crawl, then rebuild
node scripts/build-index.mjs --sources ~/code   # reuse existing clones in ~/code/{evo-web,website,marko}

The crawler respects robots.txt, stays inside markojs.com/docs/ and opensource.ebay.com/evo-web/, skips the client-rendered Storybook builds, and rate-limits itself (--max-pages, --concurrency, --site).

Development

npm test          # node:test — parsers, crawler (against a local server), every tool, stdio transport
npm start         # run the server on stdio
node bin/evo-marko-mcp.js --info

Layout:

bin/evo-marko-mcp.js        CLI entry (stdio server)
src/server.js               MCP JSON-RPC protocol (initialize, tools, resources, prompts)
src/tools.js                tool / resource / prompt definitions
src/store.js                index loading, name resolution, Markdown formatting
src/search.js               BM25 search
scripts/build-index.mjs     builds data/index.json from the source repos (+ crawl.json)
scripts/crawl.mjs           live-site crawler CLI
scripts/lib/                HTML→Markdown, TS/Storybook extraction, crawler
data/index.json             generated index (committed)

License

MIT

Available Tools

8 tools
get_componentGet an evo-web component definitionA
Read-only

Full definition of one evo-web Marko 6 component: description, attributes (types, defaults, controllable state), attribute tags (<@tab>, <@option>...), Marko 6 usage examples, TypeScript input types, and optionally the accessibility guidance, Skin CSS markup and changelog. Accepts 'button', 'evo-button', '' or a Marko 5 name like 'ebay-button'.

Inputs: name (required), sections.

get_docRead a documentation pageA
Read-only

Read a Marko or evo-web documentation page as Markdown. Pass an id from search_docs/list_docs (e.g. 'marko:reference/core-tag'), a URL (https://markojs.com/docs/reference/reactivity) or a slug ('core-tag'). Use section to return only one heading's content.

Inputs: id (required), section.

index_infoIndex informationA
Read-only

Show which source commits/versions the bundled index was built from and how many components/docs it holds.

Inputs: no named parameters.

list_componentsList evo-web Marko 6 componentsA
Read-only

List the eBay evo-web components available for Marko 6 (package @evo-web/marko, tags named <evo-*>), grouped by category. Optionally filter by category or a free-text query (e.g. 'date picker', 'dropdown').

Inputs: query, category.

list_docsList documentation pagesA
Read-only

List available documentation pages (id, title, URL), optionally limited to Marko docs or evo-web docs.

Inputs: source.

migrate_from_ebayuiMap Marko 5 ebayui-core tags to Marko 6 evo-web tagsA
Read-only

Given a Marko 5 @ebay/ebayui-core tag (e.g. 'ebay-textbox'), return its Marko 6 @evo-web/marko replacement and the changelog notes describing API differences. Without a name, returns the full mapping table.

Inputs: name.

search_docsSearch Marko and evo-web documentationA
Read-only

Full-text search across the Marko 6 docs (markojs.com: language, core tags, reactivity, TypeScript, @marko/run...), Marko best-practice and 5→6 migration guides, the evo-web site (component docs, accessibility patterns, guides) and every component's attributes and examples. Returns ranked sections with ids to pass to get_doc or get_component.

Inputs: query (required), limit, source.

search_iconsFind evo-web iconsB
Read-only

Search the evo-web icon set (e.g. 'cart', 'chevron down', 'close 16') and get the tag names plus Marko 6 usage.

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 8 tools

    Disambiguation4/5

    Each tool has a recognizable, mostly distinct role: list/search for discovery and get_* for retrieval, with migrate_from_ebayui and search_icons clearly specialized. There is mild overlap between list_components (free-text filter) and search_docs (which also indexes component attributes/examples), and between get_component and get_doc, but the descriptions give clear guidance on when to use which.

    Naming Consistency4/5

    Six of eight tools follow a clean verb_noun snake_case convention (list_components, get_component, search_docs, get_doc, list_docs, search_icons). The outliers are index_info (noun-only) and migrate_from_ebayui (verb_from_noun), which are readable but break the pattern slightly.

    Tool Count5/5

    Eight tools is well-scoped for a documentation/component reference server, with a balanced discovery (list_*, search_*) and retrieval (get_*) split plus two niche helpers. Every tool has a plausible job; nothing feels redundant or missing at the count level.

    Completeness4/5

    The surface covers the full read-only lifecycle of the domain: discovering components/docs/icons, retrieving details, searching full text, checking index provenance, and mapping Marko 5 to 6. Minor gaps remain, such as a dedicated way to browse changelogs or accessibility guidance independently of get_component, but these are reachable via existing parameters.

    Related MCP Connectors

    Related MCP Servers