md-feedback 0.0.2 → 0.8.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.
- package/README.md +72 -0
- package/bin/md-feedback.cjs +16 -0
- package/dist/mcp-server.js +24 -6
- package/package.json +10 -7
- package/LICENSE +0 -75
package/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# md-feedback
|
|
2
|
+
|
|
3
|
+
> MCP server for markdown annotation review — AI agents read your annotations directly.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/md-feedback)
|
|
6
|
+
[](https://github.com/yeominux/md-feedback/blob/dev/LICENSE)
|
|
7
|
+
|
|
8
|
+
## What is this?
|
|
9
|
+
|
|
10
|
+
md-feedback is an [MCP](https://modelcontextprotocol.io/) server that lets AI agents (Claude Code, Cursor, Copilot, etc.) read your markdown review annotations, mark memos done, evaluate quality gates, and generate session handoffs — all automatically.
|
|
11
|
+
|
|
12
|
+
**This is the MCP server component.** For the VS Code extension, see [MD Feedback on VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=yeominux.md-feedback-vscode).
|
|
13
|
+
|
|
14
|
+
## Quick Start
|
|
15
|
+
|
|
16
|
+
Add to your MCP client config (Claude Code, Cursor, etc.):
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"mcpServers": {
|
|
21
|
+
"md-feedback": {
|
|
22
|
+
"command": "npx",
|
|
23
|
+
"args": ["-y", "md-feedback"]
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
That's it. No install, no setup — `npx` handles everything.
|
|
30
|
+
|
|
31
|
+
## 12 MCP Tools
|
|
32
|
+
|
|
33
|
+
| Tool | Description |
|
|
34
|
+
|------|-------------|
|
|
35
|
+
| `get_document_structure` | Full review state: memos, gates, cursor, sections, summary |
|
|
36
|
+
| `list_annotations` | All annotations with type/status/owner/color |
|
|
37
|
+
| `get_review_status` | Annotation counts and session status |
|
|
38
|
+
| `update_memo_status` | Mark a memo as open/answered/done/wontfix |
|
|
39
|
+
| `update_cursor` | Set plan cursor position (task ID, step, next action) |
|
|
40
|
+
| `evaluate_gates` | Check if merge/release/implement conditions are met |
|
|
41
|
+
| `export_review` | Export for a specific AI tool format |
|
|
42
|
+
| `create_checkpoint` | Save review progress |
|
|
43
|
+
| `get_checkpoints` | List all checkpoints |
|
|
44
|
+
| `generate_handoff` | Generate structured handoff document |
|
|
45
|
+
| `pickup_handoff` | Parse existing handoff for session resumption |
|
|
46
|
+
| `create_annotation` | Create annotation programmatically |
|
|
47
|
+
|
|
48
|
+
## How It Works
|
|
49
|
+
|
|
50
|
+
1. You annotate a markdown plan in the [VS Code extension](https://marketplace.visualstudio.com/items?itemName=yeominux.md-feedback-vscode)
|
|
51
|
+
2. AI agent reads annotations via MCP — no export needed
|
|
52
|
+
3. Agent implements fixes, marks memos done
|
|
53
|
+
4. Gates auto-evaluate — agent knows when it's safe to merge
|
|
54
|
+
5. Agent generates handoff — next session picks up where you left off
|
|
55
|
+
|
|
56
|
+
## CLI
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
md-feedback --help # Show help
|
|
60
|
+
md-feedback --version # Print version
|
|
61
|
+
md-feedback # Start MCP server (stdio)
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Links
|
|
65
|
+
|
|
66
|
+
- [VS Code Extension](https://marketplace.visualstudio.com/items?itemName=yeominux.md-feedback-vscode)
|
|
67
|
+
- [GitHub](https://github.com/yeominux/md-feedback)
|
|
68
|
+
- [Documentation](https://github.com/yeominux/md-feedback#readme)
|
|
69
|
+
|
|
70
|
+
## License
|
|
71
|
+
|
|
72
|
+
[SUL-1.0](https://github.com/yeominux/md-feedback/blob/dev/LICENSE) — Free for personal and non-commercial use.
|
package/bin/md-feedback.cjs
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
const arg = process.argv[2]
|
|
4
|
+
if (arg === '--help' || arg === '-h') {
|
|
5
|
+
console.log('md-feedback - MCP server for markdown annotation review\n')
|
|
6
|
+
console.log('Usage: md-feedback Start MCP server (stdio transport)')
|
|
7
|
+
console.log(' md-feedback --version Print version')
|
|
8
|
+
console.log(' md-feedback --help Show this help\n')
|
|
9
|
+
console.log('Configure in your AI tool\'s MCP settings:')
|
|
10
|
+
console.log(' { "command": "npx", "args": ["-y", "md-feedback"] }')
|
|
11
|
+
process.exit(0)
|
|
12
|
+
}
|
|
13
|
+
if (arg === '--version' || arg === '-v') {
|
|
14
|
+
const pkg = require('../package.json')
|
|
15
|
+
console.log(pkg.version)
|
|
16
|
+
process.exit(0)
|
|
17
|
+
}
|
|
18
|
+
|
|
3
19
|
require('../dist/mcp-server.js')
|
package/dist/mcp-server.js
CHANGED
|
@@ -29,6 +29,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
30
|
mod
|
|
31
31
|
));
|
|
32
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
33
|
|
|
33
34
|
// ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/code.js
|
|
34
35
|
var require_code = __commonJS({
|
|
@@ -4314,11 +4315,11 @@ var require_core = __commonJS({
|
|
|
4314
4315
|
Ajv2.ValidationError = validation_error_1.default;
|
|
4315
4316
|
Ajv2.MissingRefError = ref_error_1.default;
|
|
4316
4317
|
exports2.default = Ajv2;
|
|
4317
|
-
function checkOptions(checkOpts, options, msg,
|
|
4318
|
+
function checkOptions(checkOpts, options, msg, log2 = "error") {
|
|
4318
4319
|
for (const key in checkOpts) {
|
|
4319
4320
|
const opt = key;
|
|
4320
4321
|
if (opt in options)
|
|
4321
|
-
this.logger[
|
|
4322
|
+
this.logger[log2](`${msg}: option ${key}. ${checkOpts[opt]}`);
|
|
4322
4323
|
}
|
|
4323
4324
|
}
|
|
4324
4325
|
function getSchEnv(keyRef) {
|
|
@@ -6790,6 +6791,13 @@ var require_dist = __commonJS({
|
|
|
6790
6791
|
}
|
|
6791
6792
|
});
|
|
6792
6793
|
|
|
6794
|
+
// src/server.ts
|
|
6795
|
+
var server_exports = {};
|
|
6796
|
+
__export(server_exports, {
|
|
6797
|
+
log: () => log
|
|
6798
|
+
});
|
|
6799
|
+
module.exports = __toCommonJS(server_exports);
|
|
6800
|
+
|
|
6793
6801
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
|
|
6794
6802
|
var external_exports = {};
|
|
6795
6803
|
__export(external_exports, {
|
|
@@ -22014,7 +22022,8 @@ function registerTools(server2) {
|
|
|
22014
22022
|
content: [{
|
|
22015
22023
|
type: "text",
|
|
22016
22024
|
text: JSON.stringify({ error: "Not a valid handoff document" })
|
|
22017
|
-
}]
|
|
22025
|
+
}],
|
|
22026
|
+
isError: true
|
|
22018
22027
|
};
|
|
22019
22028
|
}
|
|
22020
22029
|
return {
|
|
@@ -22164,7 +22173,7 @@ function registerTools(server2) {
|
|
|
22164
22173
|
id: `memo-${Date.now().toString(36)}`,
|
|
22165
22174
|
type,
|
|
22166
22175
|
status: "open",
|
|
22167
|
-
owner: "
|
|
22176
|
+
owner: "agent",
|
|
22168
22177
|
source: "mcp",
|
|
22169
22178
|
color,
|
|
22170
22179
|
text,
|
|
@@ -22401,17 +22410,26 @@ function registerTools(server2) {
|
|
|
22401
22410
|
}
|
|
22402
22411
|
|
|
22403
22412
|
// src/server.ts
|
|
22413
|
+
function log(msg) {
|
|
22414
|
+
process.stderr.write(`[md-feedback] ${msg}
|
|
22415
|
+
`);
|
|
22416
|
+
}
|
|
22404
22417
|
var server = new McpServer({
|
|
22405
22418
|
name: "md-feedback",
|
|
22406
|
-
version: "0.0
|
|
22419
|
+
version: "0.8.0"
|
|
22407
22420
|
});
|
|
22408
22421
|
registerTools(server);
|
|
22409
22422
|
async function main() {
|
|
22410
22423
|
const transport = new StdioServerTransport();
|
|
22411
22424
|
await server.connect(transport);
|
|
22425
|
+
log(`v${"0.8.0"} ready (stdio)`);
|
|
22412
22426
|
}
|
|
22413
22427
|
main().catch((err) => {
|
|
22414
|
-
|
|
22428
|
+
log(`fatal: ${err}`);
|
|
22415
22429
|
process.exit(1);
|
|
22416
22430
|
});
|
|
22431
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22432
|
+
0 && (module.exports = {
|
|
22433
|
+
log
|
|
22434
|
+
});
|
|
22417
22435
|
//# sourceMappingURL=mcp-server.js.map
|
package/package.json
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "md-feedback",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "MCP server for MD Feedback — AI agents read your markdown annotations, mark memos done, evaluate gates, and generate handoffs. No export step needed.",
|
|
5
5
|
"license": "SUL-1.0",
|
|
6
|
+
"author": "Yeomin Seon",
|
|
7
|
+
"type": "commonjs",
|
|
6
8
|
"bin": {
|
|
7
9
|
"md-feedback": "./bin/md-feedback.cjs"
|
|
8
10
|
},
|
|
9
11
|
"files": [
|
|
10
12
|
"dist/mcp-server.js",
|
|
11
|
-
"bin/md-feedback.cjs"
|
|
13
|
+
"bin/md-feedback.cjs",
|
|
14
|
+
"README.md"
|
|
12
15
|
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "node esbuild.mjs"
|
|
18
|
+
},
|
|
13
19
|
"dependencies": {
|
|
14
20
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
15
21
|
"zod": "^3.23.0"
|
|
@@ -46,8 +52,5 @@
|
|
|
46
52
|
"cursor-ai",
|
|
47
53
|
"gates",
|
|
48
54
|
"plan-cursor"
|
|
49
|
-
]
|
|
50
|
-
|
|
51
|
-
"build": "node esbuild.mjs"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
55
|
+
]
|
|
56
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
Sustainable Use License
|
|
2
|
-
|
|
3
|
-
Version 1.0
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2026 Yeomin Seon
|
|
6
|
-
|
|
7
|
-
Acceptance
|
|
8
|
-
|
|
9
|
-
By using the software, you agree to all of the terms and conditions below.
|
|
10
|
-
|
|
11
|
-
Copyright License
|
|
12
|
-
|
|
13
|
-
The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license
|
|
14
|
-
to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject
|
|
15
|
-
to the limitations below.
|
|
16
|
-
|
|
17
|
-
Limitations
|
|
18
|
-
|
|
19
|
-
You may use or modify the software only for your own internal business purposes or for non-commercial or
|
|
20
|
-
personal use. You may distribute the software or provide it to others only if you do so free of charge for
|
|
21
|
-
non-commercial purposes. You may not alter, remove, or obscure any licensing, copyright, or other notices of
|
|
22
|
-
the licensor in the software. Any use of the licensor's trademarks is subject to applicable law.
|
|
23
|
-
|
|
24
|
-
Patents
|
|
25
|
-
|
|
26
|
-
The licensor grants you a license, under any patent claims the licensor can license, or becomes able to
|
|
27
|
-
license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case
|
|
28
|
-
subject to the limitations and conditions in this license. This license does not cover any patent claims that
|
|
29
|
-
you cause to be infringed by modifications or additions to the software. If you or your company make any
|
|
30
|
-
written claim that the software infringes or contributes to infringement of any patent, your patent license
|
|
31
|
-
for the software granted under these terms ends immediately. If your company makes such a claim, your patent
|
|
32
|
-
license ends immediately for work on behalf of your company.
|
|
33
|
-
|
|
34
|
-
Notices
|
|
35
|
-
|
|
36
|
-
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these
|
|
37
|
-
terms. If you modify the software, you must include in any modified copies of the software a prominent notice
|
|
38
|
-
stating that you have modified the software.
|
|
39
|
-
|
|
40
|
-
No Other Rights
|
|
41
|
-
|
|
42
|
-
These terms do not imply any licenses other than those expressly granted in these terms.
|
|
43
|
-
|
|
44
|
-
Termination
|
|
45
|
-
|
|
46
|
-
If you use the software in violation of these terms, such use is not licensed, and your license will
|
|
47
|
-
automatically terminate. If the licensor provides you with a notice of your violation, and you cease all
|
|
48
|
-
violation of this license no later than 30 days after you receive that notice, your license will be reinstated
|
|
49
|
-
retroactively. However, if you violate these terms after such reinstatement, any additional violation of these
|
|
50
|
-
terms will cause your license to terminate automatically and permanently.
|
|
51
|
-
|
|
52
|
-
No Liability
|
|
53
|
-
|
|
54
|
-
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will
|
|
55
|
-
not be liable to you for any damages arising out of these terms or the use or nature of the software, under
|
|
56
|
-
any kind of legal claim.
|
|
57
|
-
|
|
58
|
-
Definitions
|
|
59
|
-
|
|
60
|
-
The "licensor" is the entity offering these terms, Yeomin Seon.
|
|
61
|
-
|
|
62
|
-
The "software" is the software the licensor makes available under these terms, including any portion of it.
|
|
63
|
-
|
|
64
|
-
"You" refers to the individual or entity agreeing to these terms.
|
|
65
|
-
|
|
66
|
-
"Your company" is any legal entity, sole proprietorship, or other kind of organization that you work for, plus
|
|
67
|
-
all organizations that have control over, are under the control of, or are under common control with that
|
|
68
|
-
organization. Control means ownership of substantially all the assets of an entity, or the power to direct its
|
|
69
|
-
management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
70
|
-
|
|
71
|
-
"Your license" is the license granted to you for the software under these terms.
|
|
72
|
-
|
|
73
|
-
"Use" means anything you do with the software requiring your license.
|
|
74
|
-
|
|
75
|
-
"Trademark" means trademarks, service marks, and similar rights.
|