designmd-forge 1.2.0 → 1.3.0

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/httpServer.js +25 -0
  2. package/package.json +1 -1
@@ -78,6 +78,31 @@ app.delete(MCP_PATH, (_req, res) => {
78
78
  id: null,
79
79
  });
80
80
  });
81
+ // MCP Remote Server Card (SEP-1620 / SEP-1649). Advertised so registries (e.g.
82
+ // Smithery) and discovery tools can read server metadata without an interactive
83
+ // scan. Built from the registered tools so the tool list stays in sync.
84
+ app.get('/.well-known/mcp/server-card.json', async (_req, res) => {
85
+ try {
86
+ const srv = createServer();
87
+ const tools = Object.values(srv._registeredTools).map((t) => ({
88
+ name: t.name,
89
+ description: t.description ?? '',
90
+ }));
91
+ res.json({
92
+ serverInfo: {
93
+ name: SERVER_NAME,
94
+ version: SERVER_VERSION,
95
+ },
96
+ tools,
97
+ resources: [],
98
+ prompts: [],
99
+ });
100
+ }
101
+ catch (error) {
102
+ console.error('server card error:', error);
103
+ res.status(500).json({ error: 'failed to build server card' });
104
+ }
105
+ });
81
106
  app.listen(PORT, () => {
82
107
  console.error(`${SERVER_NAME} (Streamable HTTP) listening on port ${PORT}, endpoint ${MCP_PATH}`);
83
108
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "designmd-forge",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Free, offline MCP server for browsing/searching/fetching DESIGN.md design-system specs (colors, typography, components) across web, mobile and iOS sources, with lint/diff/scaffold authoring tools.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",