Skip to main content
Glama
jamcgrath

svelte-component-graph-mcp

by jamcgrath

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_graphA

Return the full Svelte component dependency graph for a project: every component/route node (workspace-relative path id + display label + type + unused flag) and every import link.

get_componentA

Look up a single component or route by its workspace-relative path (e.g. "src/lib/Button.svelte"). Returns its parents (components that import it), children (components it imports), whether it is unused/a route, and its Svelte 5 public API surface: props (name, optional, bindable, rest) and slots.

get_unusedA

Return every component that is imported somewhere in the project but rendered nowhere (never referenced in any importer's template). Computed globally, so the result does not depend on file order.

get_routesA

Return every route node (+page/+layout/+error) with its display label and the direct child components it pulls in.

scanA

Invalidate all caches for the project and re-parse every file from scratch. Returns a summary with the node and link counts. Use when you want to guarantee fresh results.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jamcgrath/svelte-component-graph-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server