seedflip-mcp 0.1.3 → 0.1.4

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 +12 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -17,8 +17,18 @@ import { createRequire } from 'module';
17
17
  import { searchSeeds } from './search.js';
18
18
  import { formatTokens, formatTailwind, formatCSS, formatShadcn, } from './exporters.js';
19
19
  // ── Load seed data ───────────────────────────────────────────────
20
- const _require = createRequire(import.meta.url);
21
- const seeds = _require('./seeds-data.json');
20
+ // Dual ESM/CJS: createRequire works in ESM (normal usage).
21
+ // Bare require() is the fallback for CJS (Smithery's esbuild scan)
22
+ // — esbuild statically resolves it and inlines the JSON.
23
+ let seeds;
24
+ try {
25
+ const _require = createRequire(import.meta.url);
26
+ seeds = _require('./seeds-data.json');
27
+ }
28
+ catch {
29
+ // @ts-ignore — require() available in CJS contexts
30
+ seeds = require('./seeds-data.json');
31
+ }
22
32
  // ── Server setup ─────────────────────────────────────────────────
23
33
  const server = new McpServer({
24
34
  name: 'seedflip',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seedflip-mcp",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "mcpName": "io.github.bockenstette1/seedflip",
5
5
  "description": "MCP server for SeedFlip — 100+ curated design systems for AI agents. When your agent needs a design direction, it calls SeedFlip instead of guessing.",
6
6
  "type": "module",