@manhq/localmcp 1.0.1 → 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.
- package/README.md +177 -66
- package/README.vi.md +176 -65
- package/dist/api/openapi.d.ts +21 -0
- package/dist/api/openapi.d.ts.map +1 -0
- package/dist/api/openapi.js +74 -0
- package/dist/api/openapi.js.map +1 -0
- package/dist/api/playground.d.ts +2 -0
- package/dist/api/playground.d.ts.map +1 -0
- package/dist/api/playground.js +24 -0
- package/dist/api/playground.js.map +1 -0
- package/dist/api/registry.d.ts +19 -0
- package/dist/api/registry.d.ts.map +1 -0
- package/dist/api/registry.js +20 -0
- package/dist/api/registry.js.map +1 -0
- package/dist/api/rest.d.ts +3 -0
- package/dist/api/rest.d.ts.map +1 -0
- package/dist/api/rest.js +84 -0
- package/dist/api/rest.js.map +1 -0
- package/dist/api/server-with-registry.d.ts +8 -0
- package/dist/api/server-with-registry.d.ts.map +1 -0
- package/dist/api/server-with-registry.js +43 -0
- package/dist/api/server-with-registry.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +82 -19
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -4
- package/dist/index.js.map +1 -1
- package/docs/atlassian.md +145 -6
- package/docs/figma.md +145 -6
- package/docs/google-chat.md +145 -6
- package/docs/vi/atlassian.md +145 -6
- package/docs/vi/figma.md +145 -6
- package/docs/vi/google-chat.md +145 -6
- package/package.json +4 -3
package/docs/vi/google-chat.md
CHANGED
|
@@ -43,34 +43,82 @@ http://localhost:47001/mcp/google-chat
|
|
|
43
43
|
|
|
44
44
|
## Đăng ký với AI Agents
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
Mỗi agent hỗ trợ hai chế độ transport — chọn cái phù hợp với setup của bạn:
|
|
47
|
+
|
|
48
|
+
- **HTTP** — cần server đang chạy (`localmcp`). Dùng chung giữa các agent.
|
|
49
|
+
- **stdio** — agent tự spawn process khi cần. Không cần server chạy sẵn.
|
|
50
|
+
|
|
51
|
+
Hoặc dùng `localmcp register` để đăng ký tự động.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
### Claude Code
|
|
56
|
+
|
|
57
|
+
**HTTP** — `.claude/settings.local.json`
|
|
47
58
|
```json
|
|
48
59
|
{
|
|
49
60
|
"mcpServers": {
|
|
50
61
|
"google-chat": {
|
|
62
|
+
"type": "http",
|
|
51
63
|
"url": "http://localhost:47001/mcp/google-chat"
|
|
52
64
|
}
|
|
53
65
|
}
|
|
54
66
|
}
|
|
55
67
|
```
|
|
56
68
|
|
|
69
|
+
**stdio** — `.claude/settings.local.json`
|
|
70
|
+
```json
|
|
71
|
+
{
|
|
72
|
+
"mcpServers": {
|
|
73
|
+
"google-chat": {
|
|
74
|
+
"type": "stdio",
|
|
75
|
+
"command": "localmcp",
|
|
76
|
+
"args": ["stdio", "google-chat"]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
57
82
|
Hoặc đăng ký bằng command line:
|
|
58
83
|
```bash
|
|
84
|
+
# HTTP
|
|
59
85
|
claude mcp add --transport http google-chat http://localhost:47001/mcp/google-chat
|
|
86
|
+
|
|
87
|
+
# stdio
|
|
88
|
+
claude mcp add google-chat localmcp stdio google-chat
|
|
60
89
|
```
|
|
61
90
|
|
|
62
|
-
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
### Codex
|
|
94
|
+
|
|
95
|
+
**HTTP** — `~/.codex/config.toml`
|
|
63
96
|
```toml
|
|
64
97
|
[mcp_servers.google-chat]
|
|
65
98
|
url = "http://localhost:47001/mcp/google-chat"
|
|
66
99
|
```
|
|
67
100
|
|
|
101
|
+
**stdio** — `~/.codex/config.toml`
|
|
102
|
+
```toml
|
|
103
|
+
[mcp_servers.google-chat]
|
|
104
|
+
command = "localmcp"
|
|
105
|
+
args = ["stdio", "google-chat"]
|
|
106
|
+
```
|
|
107
|
+
|
|
68
108
|
Hoặc đăng ký bằng command line:
|
|
69
109
|
```bash
|
|
110
|
+
# HTTP
|
|
70
111
|
codex mcp add google-chat --url http://localhost:47001/mcp/google-chat
|
|
112
|
+
|
|
113
|
+
# stdio
|
|
114
|
+
codex mcp add google-chat localmcp stdio google-chat
|
|
71
115
|
```
|
|
72
116
|
|
|
73
|
-
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
### GitHub Copilot / VS Code
|
|
120
|
+
|
|
121
|
+
**HTTP** — `.vscode/mcp.json`
|
|
74
122
|
```json
|
|
75
123
|
{
|
|
76
124
|
"servers": {
|
|
@@ -82,7 +130,24 @@ codex mcp add google-chat --url http://localhost:47001/mcp/google-chat
|
|
|
82
130
|
}
|
|
83
131
|
```
|
|
84
132
|
|
|
85
|
-
**
|
|
133
|
+
**stdio** — `.vscode/mcp.json`
|
|
134
|
+
```json
|
|
135
|
+
{
|
|
136
|
+
"servers": {
|
|
137
|
+
"google-chat": {
|
|
138
|
+
"type": "stdio",
|
|
139
|
+
"command": "localmcp",
|
|
140
|
+
"args": ["stdio", "google-chat"]
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
### Cursor
|
|
149
|
+
|
|
150
|
+
**HTTP** — `.cursor/mcp.json`
|
|
86
151
|
```json
|
|
87
152
|
{
|
|
88
153
|
"mcpServers": {
|
|
@@ -93,7 +158,23 @@ codex mcp add google-chat --url http://localhost:47001/mcp/google-chat
|
|
|
93
158
|
}
|
|
94
159
|
```
|
|
95
160
|
|
|
96
|
-
**
|
|
161
|
+
**stdio** — `.cursor/mcp.json`
|
|
162
|
+
```json
|
|
163
|
+
{
|
|
164
|
+
"mcpServers": {
|
|
165
|
+
"google-chat": {
|
|
166
|
+
"command": "localmcp",
|
|
167
|
+
"args": ["stdio", "google-chat"]
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
### Windsurf
|
|
176
|
+
|
|
177
|
+
**HTTP** — `~/.codeium/windsurf/mcp_config.json`
|
|
97
178
|
```json
|
|
98
179
|
{
|
|
99
180
|
"mcpServers": {
|
|
@@ -104,7 +185,23 @@ codex mcp add google-chat --url http://localhost:47001/mcp/google-chat
|
|
|
104
185
|
}
|
|
105
186
|
```
|
|
106
187
|
|
|
107
|
-
**
|
|
188
|
+
**stdio** — `~/.codeium/windsurf/mcp_config.json`
|
|
189
|
+
```json
|
|
190
|
+
{
|
|
191
|
+
"mcpServers": {
|
|
192
|
+
"google-chat": {
|
|
193
|
+
"command": "localmcp",
|
|
194
|
+
"args": ["stdio", "google-chat"]
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
### Antigravity
|
|
203
|
+
|
|
204
|
+
**HTTP** — `~/.gemini/config/mcp_config.json`
|
|
108
205
|
```json
|
|
109
206
|
{
|
|
110
207
|
"mcpServers": {
|
|
@@ -115,6 +212,48 @@ codex mcp add google-chat --url http://localhost:47001/mcp/google-chat
|
|
|
115
212
|
}
|
|
116
213
|
```
|
|
117
214
|
|
|
215
|
+
**stdio** — `~/.gemini/config/mcp_config.json`
|
|
216
|
+
```json
|
|
217
|
+
{
|
|
218
|
+
"mcpServers": {
|
|
219
|
+
"google-chat": {
|
|
220
|
+
"command": "localmcp",
|
|
221
|
+
"args": ["stdio", "google-chat"]
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## REST API
|
|
230
|
+
|
|
231
|
+
Gọi bất kỳ tool Google Chat nào qua HTTP thông thường — tiện cho script và automation.
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
# Liệt kê tất cả tools
|
|
235
|
+
GET http://localhost:47001/api/google-chat
|
|
236
|
+
|
|
237
|
+
# Gọi một tool
|
|
238
|
+
POST http://localhost:47001/api/google-chat/search_conversations
|
|
239
|
+
Content-Type: application/json
|
|
240
|
+
|
|
241
|
+
{"query": "team standup"}
|
|
242
|
+
|
|
243
|
+
POST http://localhost:47001/api/google-chat/send_message
|
|
244
|
+
Content-Type: application/json
|
|
245
|
+
|
|
246
|
+
{"conversationId": "spaces/AAAAAAA", "text": "Xin chào từ REST API!"}
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
Mở interactive playground:
|
|
250
|
+
```bash
|
|
251
|
+
localmcp playground
|
|
252
|
+
# hoặc: open http://localhost:47001/playground
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
118
257
|
## Danh sách tools
|
|
119
258
|
|
|
120
259
|
| Tool | Mô tả |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manhq/localmcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Local HTTP MCP server for Figma, Atlassian, and Google Chat with a single CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dev": "tsx watch src/index.ts",
|
|
36
36
|
"build": "tsc",
|
|
37
37
|
"start": "node dist/index.js",
|
|
38
|
-
"inspect": "npx @modelcontextprotocol/inspector --config mcp.json
|
|
38
|
+
"inspect": "npx @modelcontextprotocol/inspector --config mcp.json",
|
|
39
39
|
"prepublishOnly": "npm run build"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"axios": "^1.7.9",
|
|
44
44
|
"dotenv": "^16.4.7",
|
|
45
45
|
"express": "^4.21.2",
|
|
46
|
-
"zod": "^3.24.2"
|
|
46
|
+
"zod": "^3.24.2",
|
|
47
|
+
"zod-to-json-schema": "^3.25.2"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@types/express": "^5.0.0",
|