Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Graphql Mcp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
awing-mcp
Graphql Mcp
Commits
c2847541
Commit
c2847541
authored
Jan 30, 2026
by
Le Dang Long
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'update' into 'master'
upload tgz See merge request
!2
parents
a257e1dc
7ad0e7bf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
1 deletion
+111
-1
acm-graphql-mcp-1.0.0.tgz
acm-graphql-mcp-1.0.0.tgz
+0
-0
readme.md
readme.md
+111
-1
No files found.
acm-graphql-mcp-1.0.0.tgz
0 → 100644
View file @
c2847541
File added
readme.md
View file @
c2847541
# GrapQl mcp
\ No newline at end of file
# ACM GraphQL MCP Server
MCP (Model Context Protocol) Server để gọi GraphQL API của ACM.
## Cài đặt
```
bash
cd
mcp-server
npm
install
npm run build
```
## Cấu hình MCP
Thêm vào file cấu hình MCP của bạn (thường là
`mcp.json`
hoặc trong settings của AI assistant):
```
json
{
"mcpServers"
:
{
"acm-graphql"
:
{
"command"
:
"node"
,
"args"
:
[
"e:/Project/ProjectByAuthor/Awing/acm/mcp-server/dist/index.js"
],
"env"
:
{
"GRAPHQL_ENDPOINT"
:
"https://acm.awifi.com.vn/graphql"
,
"AUTH_TOKEN"
:
"YOUR_BEARER_TOKEN_HERE"
,
"WORKSPACE_ID"
:
"11"
}
}
}
}
```
## Tools có sẵn
### Query Tools (15 tools)
| Tool | Mô tả |
|------|-------|
|
`get_role_by_id`
| Lấy Role theo ID |
|
`get_roles`
| Lấy danh sách Roles |
|
`get_user_by_id`
| Lấy User theo ID |
|
`get_users`
| Lấy danh sách Users |
|
`get_place_by_id`
| Lấy Place theo ID |
|
`get_places`
| Lấy danh sách Places |
|
`get_group_by_id`
| Lấy Group theo ID |
|
`get_groups`
| Lấy danh sách Groups |
|
`get_campaign_by_id`
| Lấy Campaign theo ID |
|
`get_campaigns`
| Lấy danh sách Campaigns |
|
`get_template_by_id`
| Lấy Template theo ID |
|
`get_templates`
| Lấy danh sách Templates |
|
`get_workspace_by_id`
| Lấy Workspace theo ID |
|
`get_workspaces`
| Lấy danh sách Workspaces |
|
`execute_graphql`
| Thực thi custom GraphQL query/mutation |
### Mutation Tools (14 tools)
| Tool | Mô tả |
|------|-------|
|
`create_role`
| Tạo mới Role |
|
`update_role`
| Cập nhật Role |
|
`delete_role`
| Xóa Role |
|
`create_group`
| Tạo mới Group |
|
`update_group`
| Cập nhật Group |
|
`delete_group`
| Xóa Group |
|
`update_user`
| Cập nhật User |
|
`delete_user`
| Xóa User |
|
`add_user_to_workspace`
| Thêm User vào Workspace |
|
`create_place`
| Tạo mới Place |
|
`update_place`
| Cập nhật Place |
|
`create_campaign`
| Tạo mới Campaign |
|
`update_campaign`
| Cập nhật Campaign |
|
`delete_campaign`
| Xóa Campaign |
## Ví dụ sử dụng
### Queries
```
"Lấy role có id là 10"
→ Gọi get_role_by_id(id: 10)
"Lấy 20 users đầu tiên"
→ Gọi get_users(pageSize: 20, pageIndex: 0)
```
### Mutations
```
"Tạo role mới tên Admin"
→ Gọi create_role(name: "Admin", description: "Admin role")
"Xóa role có id 5"
→ Gọi delete_role(id: 5)
```
### Custom GraphQL
```
"Thực thi query: { menus { id name } }"
→ Gọi execute_graphql(query: "{ menus { id name } }")
```
## Development
```
bash
# Chạy trực tiếp TypeScript (dev mode)
npm run dev
# Build production
npm run build
# Start production
npm start
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment