Skip to main content
Glama
pglevy

Design System MCP Server

by pglevy

refresh-sources

Manually refresh documentation sources to ensure access to current design system components, patterns, and layouts.

Instructions

Trigger manual refresh of documentation sources

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The 'refresh-sources' tool registration and handler implementation.
    server.tool(
      "refresh-sources",
      "Trigger manual refresh of documentation sources",
      {},
      async () => {
        await sourceManager.refreshSources();
        
        return {
          content: [
            {
              type: "text",
              text: "Documentation sources refreshed successfully. Cache cleared and sources will be re-synced on next request.",
            },
          ],
  • The refreshSources method within SourceManager that performs the actual cache clearing.
    async refreshSources(): Promise<void> {
      this.cache = {};
      this.lastRefresh = Date.now();
    }

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/pglevy/aurora-mcp'

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