artifact-hub-mcp 1.0.0 → 1.0.2

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/client.js +1 -5
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -36,7 +36,6 @@ const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
36
36
  // ─── Config ──────────────────────────────────────────────────────────────────
37
37
  const BASE_URL = (process.env['ARTIFACT_HUB_URL'] ?? 'http://localhost:3000').replace(/\/$/, '');
38
38
  const API_KEY = process.env['ARTIFACT_HUB_API_KEY'] ?? process.env['API_KEY'] ?? 'changeme-local-dev';
39
- const DEFAULT_AUTHOR = process.env['MCP_AUTHOR'] ?? 'MCP User';
40
39
  const MIME_BY_EXT = {
41
40
  '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg', '.png': 'image/png',
42
41
  '.gif': 'image/gif', '.webp': 'image/webp',
@@ -165,12 +164,11 @@ server.setRequestHandler(types_js_1.ListToolsRequestSchema, async () => ({
165
164
  },
166
165
  {
167
166
  name: 'add_feedback',
168
- description: `Add a feedback comment. Author defaults to "${DEFAULT_AUTHOR}" (set MCP_AUTHOR env to change).`,
167
+ description: 'Add a feedback comment. Author is derived from your API token.',
169
168
  inputSchema: {
170
169
  type: 'object',
171
170
  properties: {
172
171
  path: { type: 'string', description: 'Artifact path' },
173
- author: { type: 'string', description: `Commenter name (default: "${DEFAULT_AUTHOR}")` },
174
172
  text: { type: 'string', description: 'Comment text' },
175
173
  },
176
174
  required: ['path', 'text'],
@@ -273,9 +271,7 @@ server.setRequestHandler(types_js_1.CallToolRequestSchema, async (req) => {
273
271
  return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
274
272
  }
275
273
  case 'add_feedback': {
276
- const author = args['author'] ?? DEFAULT_AUTHOR;
277
274
  const data = await apiPost(`/artifacts/${args['path']}/feedback`, {
278
- author,
279
275
  text: args['text'],
280
276
  });
281
277
  return { content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artifact-hub-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Artifact Hub MCP stdio client — proxies tool calls to the REST API",
5
5
  "main": "dist/client.js",
6
6
  "bin": {