@cg3/prior-mcp 0.5.0 → 0.5.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/tools.js +5 -1
  2. package/package.json +62 -62
package/dist/tools.js CHANGED
@@ -17,13 +17,17 @@ const utils_js_1 = require("./utils.js");
17
17
  */
18
18
  function expandNudgeTokens(message) {
19
19
  return message
20
+ // Parameterized feedback with entry ID (Phase 1) - must come BEFORE generic patterns
21
+ .replace(/\[PRIOR:FEEDBACK:useful:([^\]]+)\]/g, (_m, id) => `\`prior_feedback(entryId: "${id}", outcome: "useful")\``)
22
+ .replace(/\[PRIOR:FEEDBACK:not_useful:([^\]]+)\]/g, (_m, id) => `\`prior_feedback(entryId: "${id}", outcome: "not_useful", reason: "describe what you tried")\``)
23
+ .replace(/\[PRIOR:FEEDBACK:irrelevant:([^\]]+)\]/g, (_m, id) => `\`prior_feedback(entryId: "${id}", outcome: "irrelevant")\``)
24
+ // Generic (non-parameterized) - fallback for templates without IDs
20
25
  .replace(/\[PRIOR:CONTRIBUTE\]/g, '`prior_contribute(...)`')
21
26
  .replace(/\[PRIOR:FEEDBACK:useful\]/g, '`prior_feedback(entryId: "...", outcome: "useful")`')
22
27
  .replace(/\[PRIOR:FEEDBACK:not_useful\]/g, '`prior_feedback(entryId: "...", outcome: "not_useful", reason: "...")`')
23
28
  .replace(/\[PRIOR:FEEDBACK:irrelevant\]/g, '`prior_feedback(entryId: "...", outcome: "irrelevant")`')
24
29
  .replace(/\[PRIOR:FEEDBACK\]/g, '`prior_feedback(...)`')
25
30
  .replace(/\[PRIOR:STATUS\]/g, '`prior_status()`')
26
- // Future: parameterized contribute with pre-fill
27
31
  .replace(/\[PRIOR:CONTRIBUTE ([^\]]+)\]/g, (_match, attrs) => {
28
32
  return `\`prior_contribute(${attrs})\``;
29
33
  });
package/package.json CHANGED
@@ -1,62 +1,62 @@
1
- {
2
- "name": "@cg3/prior-mcp",
3
- "version": "0.5.0",
4
- "description": "MCP server for Prior — the knowledge exchange for AI agents. Search, contribute, and improve shared solutions.",
5
- "main": "dist/index.js",
6
- "exports": {
7
- ".": "./dist/index.js",
8
- "./tools": "./dist/tools.js",
9
- "./client": "./dist/client.js",
10
- "./utils": "./dist/utils.js",
11
- "./resources": "./dist/resources.js"
12
- },
13
- "bin": {
14
- "prior-mcp": "dist/index.js"
15
- },
16
- "scripts": {
17
- "build": "tsc",
18
- "start": "node dist/index.js",
19
- "test": "npx tsc && node --test test/*.test.js"
20
- },
21
- "keywords": [
22
- "mcp",
23
- "mcp-server",
24
- "ai",
25
- "ai-agents",
26
- "knowledge-exchange",
27
- "prior",
28
- "claude-code",
29
- "cursor",
30
- "windsurf",
31
- "langchain",
32
- "llm"
33
- ],
34
- "author": {
35
- "name": "CG3 LLC",
36
- "url": "https://cg3.io"
37
- },
38
- "license": "MIT",
39
- "repository": {
40
- "type": "git",
41
- "url": "https://github.com/cg3-llc/prior_mcp.git"
42
- },
43
- "bugs": {
44
- "url": "https://github.com/cg3-llc/prior_mcp/issues"
45
- },
46
- "homepage": "https://prior.cg3.io",
47
- "dependencies": {
48
- "@modelcontextprotocol/sdk": "^1.12.1"
49
- },
50
- "devDependencies": {
51
- "typescript": "^5.7.0",
52
- "@types/node": "^22.0.0"
53
- },
54
- "files": [
55
- "dist",
56
- "README.md",
57
- "LICENSE"
58
- ],
59
- "engines": {
60
- "node": ">=18"
61
- }
62
- }
1
+ {
2
+ "name": "@cg3/prior-mcp",
3
+ "version": "0.5.1",
4
+ "description": "MCP server for Prior — the knowledge exchange for AI agents. Search, contribute, and improve shared solutions.",
5
+ "main": "dist/index.js",
6
+ "exports": {
7
+ ".": "./dist/index.js",
8
+ "./tools": "./dist/tools.js",
9
+ "./client": "./dist/client.js",
10
+ "./utils": "./dist/utils.js",
11
+ "./resources": "./dist/resources.js"
12
+ },
13
+ "bin": {
14
+ "prior-mcp": "dist/index.js"
15
+ },
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "start": "node dist/index.js",
19
+ "test": "npx tsc && node --test test/*.test.js"
20
+ },
21
+ "keywords": [
22
+ "mcp",
23
+ "mcp-server",
24
+ "ai",
25
+ "ai-agents",
26
+ "knowledge-exchange",
27
+ "prior",
28
+ "claude-code",
29
+ "cursor",
30
+ "windsurf",
31
+ "langchain",
32
+ "llm"
33
+ ],
34
+ "author": {
35
+ "name": "CG3 LLC",
36
+ "url": "https://cg3.io"
37
+ },
38
+ "license": "MIT",
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "https://github.com/cg3-llc/prior_mcp.git"
42
+ },
43
+ "bugs": {
44
+ "url": "https://github.com/cg3-llc/prior_mcp/issues"
45
+ },
46
+ "homepage": "https://prior.cg3.io",
47
+ "dependencies": {
48
+ "@modelcontextprotocol/sdk": "^1.12.1"
49
+ },
50
+ "devDependencies": {
51
+ "typescript": "^5.7.0",
52
+ "@types/node": "^22.0.0"
53
+ },
54
+ "files": [
55
+ "dist",
56
+ "README.md",
57
+ "LICENSE"
58
+ ],
59
+ "engines": {
60
+ "node": ">=18"
61
+ }
62
+ }