@achieveai/hitl-mcp-server 1.0.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/mcp.json ADDED
@@ -0,0 +1,152 @@
1
+ {
2
+ "name": "@hitl/mcp-server",
3
+ "version": "1.0.0",
4
+ "description": "Human In The Loop MCP Server - Enables LLM agents to ask questions and get user feedback through interactive dialogs",
5
+ "author": "",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "mcp",
9
+ "llm",
10
+ "human-in-the-loop",
11
+ "dialog",
12
+ "interactive",
13
+ "feedback",
14
+ "decision-making"
15
+ ],
16
+ "runtime": "node",
17
+ "tools": [
18
+ {
19
+ "name": "ask_human",
20
+ "description": "Get human input for decisions, clarifications, and guidance through an interactive dialog",
21
+ "inputSchema": {
22
+ "type": "object",
23
+ "properties": {
24
+ "question": {
25
+ "type": "string",
26
+ "description": "The question or decision you need help with"
27
+ },
28
+ "options": {
29
+ "type": "array",
30
+ "description": "Array of possible choices",
31
+ "items": {
32
+ "type": "object",
33
+ "properties": {
34
+ "label": {
35
+ "type": "string"
36
+ },
37
+ "value": {
38
+ "type": "string"
39
+ },
40
+ "description": {
41
+ "type": "string"
42
+ }
43
+ },
44
+ "required": ["label", "value"]
45
+ }
46
+ },
47
+ "allowMultiple": {
48
+ "type": "boolean",
49
+ "default": false
50
+ },
51
+ "allowOther": {
52
+ "type": "boolean",
53
+ "default": true
54
+ },
55
+ "context": {
56
+ "type": "string"
57
+ },
58
+ "timeout": {
59
+ "type": "number"
60
+ }
61
+ },
62
+ "required": ["question", "options"]
63
+ }
64
+ }
65
+ ],
66
+ "config": {
67
+ "port": {
68
+ "type": "number",
69
+ "description": "Port for the dialog server (0 for auto-assign)",
70
+ "default": 0
71
+ },
72
+ "browserPath": {
73
+ "type": "string",
74
+ "description": "Path to browser executable (optional)",
75
+ "required": false
76
+ },
77
+ "autoOpen": {
78
+ "type": "boolean",
79
+ "description": "Automatically open browser for dialogs",
80
+ "default": true
81
+ }
82
+ },
83
+ "commands": {
84
+ "start": "node dist/index.js",
85
+ "dev": "tsx src/index.ts",
86
+ "build": "tsc",
87
+ "test": "tsx src/dialog-manager.test.ts",
88
+ "inspector": "npx @modelcontextprotocol/inspector node dist/index.js"
89
+ },
90
+ "transports": ["stdio"],
91
+ "capabilities": {
92
+ "tools": true,
93
+ "resources": false,
94
+ "prompts": false,
95
+ "sampling": false
96
+ },
97
+ "requirements": {
98
+ "node": ">=18.0.0",
99
+ "npm": ">=8.0.0"
100
+ },
101
+ "examples": [
102
+ {
103
+ "name": "Simple Yes/No Question",
104
+ "tool": "ask_human",
105
+ "arguments": {
106
+ "question": "Should I proceed with this action?",
107
+ "options": [
108
+ {"label": "Yes", "value": "yes"},
109
+ {"label": "No", "value": "no"}
110
+ ],
111
+ "allowMultiple": false,
112
+ "allowOther": false
113
+ }
114
+ },
115
+ {
116
+ "name": "File Selection",
117
+ "tool": "ask_human",
118
+ "arguments": {
119
+ "question": "Which file should I modify?",
120
+ "options": [
121
+ {
122
+ "label": "index.ts",
123
+ "value": "src/index.ts",
124
+ "description": "Main entry point"
125
+ },
126
+ {
127
+ "label": "config.json",
128
+ "value": "config.json",
129
+ "description": "Configuration file"
130
+ }
131
+ ],
132
+ "allowMultiple": false,
133
+ "allowOther": true,
134
+ "context": "Multiple files match the search criteria"
135
+ }
136
+ },
137
+ {
138
+ "name": "Multiple Selection",
139
+ "tool": "ask_human",
140
+ "arguments": {
141
+ "question": "Which tests should I run?",
142
+ "options": [
143
+ {"label": "Unit tests", "value": "unit"},
144
+ {"label": "Integration tests", "value": "integration"},
145
+ {"label": "E2E tests", "value": "e2e"}
146
+ ],
147
+ "allowMultiple": true,
148
+ "allowOther": false
149
+ }
150
+ }
151
+ ]
152
+ }
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@achieveai/hitl-mcp-server",
3
+ "version": "1.0.0",
4
+ "description": "Human In The Loop MCP Server - Enables LLM agents to ask questions and get user feedback through interactive dialogs",
5
+ "main": "dist/index.js",
6
+ "bin": {
7
+ "hitl-mcp-server": "./dist/index.js"
8
+ },
9
+ "type": "module",
10
+ "files": [
11
+ "dist/",
12
+ "config/",
13
+ "mcp.json",
14
+ "README.md",
15
+ "LICENSE",
16
+ "example-usage.md"
17
+ ],
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/achieveai/HumanInTheLoop.git"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/achieveai/HumanInTheLoop/issues"
24
+ },
25
+ "homepage": "https://github.com/achieveai/HumanInTheLoop#readme",
26
+ "engines": {
27
+ "node": ">=18.0.0"
28
+ },
29
+ "scripts": {
30
+ "build": "tsc",
31
+ "dev": "tsx watch src/index.ts",
32
+ "start": "node dist/index.js",
33
+ "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
34
+ "test:dialog": "tsx src/test-client.ts",
35
+ "typecheck": "tsc --noEmit"
36
+ },
37
+ "keywords": ["mcp", "llm", "human-in-the-loop", "dialog", "interactive"],
38
+ "author": "MCQdb LLC <https://achieve.ai>",
39
+ "license": "GPL-3.0",
40
+ "dependencies": {
41
+ "@modelcontextprotocol/sdk": "^1.0.0",
42
+ "express": "^4.21.2",
43
+ "open": "^10.1.0",
44
+ "uuid": "^11.0.5"
45
+ },
46
+ "devDependencies": {
47
+ "@types/express": "^5.0.0",
48
+ "@types/jest": "^29.5.14",
49
+ "@types/node": "^22.10.5",
50
+ "@types/uuid": "^10.0.0",
51
+ "jest": "^29.7.0",
52
+ "ts-jest": "^29.2.6",
53
+ "tsx": "^4.19.2",
54
+ "typescript": "^5.7.3"
55
+ }
56
+ }