frontend-inspo-mcp 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  // frontend-inspo-mcp — local stdio MCP server exposing discovery tools across
3
3
  // freefrontend.com, ui.watermelon.sh, and ls.graphics.
4
+ import { readFileSync } from "node:fs";
4
5
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
5
6
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
6
7
  import { z } from "zod";
@@ -53,7 +54,8 @@ function err(message) {
53
54
  }
54
55
  const server = new McpServer({
55
56
  name: "frontend-inspo-mcp",
56
- version: "0.1.0",
57
+ // dist/index.js -> ../package.json, so the reported version can never drift from the package.
58
+ version: JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf-8")).version,
57
59
  });
58
60
  // --- list_sources -----------------------------------------------------------
59
61
  server.tool("list_sources", "List the available frontend/design resource sources and their capabilities.", {}, async () => json(SOURCE_IDS.map((id) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frontend-inspo-mcp",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Local MCP server that lets AI coding agents discover and pull real frontend code, UI components, and design mockups from shadcn, Magic UI, Aceternity, FreeFrontend, and more.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",