Commit a257e1dc authored by Le Thanh Dat's avatar Le Thanh Dat

Merge branch 'main' into 'master'

Initial commit

See merge request !1
parents 904bb86f 4a3fda4f
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
tsconfig.tsbuildinfo
node_modules
dist-ssr
# testing
coverage/*
*.local
# Editor directories and files
# .vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# production
/build
/lib
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/.idea
/tsconfig.tsbuildinfo
tsconfig.tsbuildinfo
public/_framework
\ 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
```
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js';
import { GraphQLClient } from 'graphql-request';
import { tools, executeQuery } from './tools/index.js';
// Configuration from environment variables
const GRAPHQL_ENDPOINT = process.env.GRAPHQL_ENDPOINT || 'https://acm.awifi.com.vn/graphql';
const AUTH_TOKEN = process.env.AUTH_TOKEN || '';
const WORKSPACE_ID = process.env.WORKSPACE_ID || '11';
// Create GraphQL client
const graphqlClient = new GraphQLClient(GRAPHQL_ENDPOINT, {
headers: {
Authorization: `Bearer ${AUTH_TOKEN}`,
workspaceid: WORKSPACE_ID
}
});
// Create MCP server
const server = new Server({
name: 'acm-graphql-mcp',
version: '1.0.0'
}, {
capabilities: {
tools: {}
}
});
// List available tools
server.setRequestHandler(ListToolsRequestSchema, async () => {
return {
tools: tools
};
});
// Handle tool calls
server.setRequestHandler(CallToolRequestSchema, async (request) => {
const { name, arguments: args } = request.params;
try {
const result = await executeQuery(graphqlClient, name, args);
return {
content: [
{
type: 'text',
text: JSON.stringify(result, null, 2)
}
]
};
}
catch (error) {
const errorMessage = error instanceof Error ? error.message : String(error);
return {
content: [
{
type: 'text',
text: `Error: ${errorMessage}`
}
],
isError: true
};
}
});
// Start the server
async function main() {
const transport = new StdioServerTransport();
await server.connect(transport);
console.error('ACM GraphQL MCP Server running on stdio');
}
main().catch((error) => {
console.error('Server error:', error);
process.exit(1);
});
import { GraphQLClient } from 'graphql-request';
import { Tool } from '@modelcontextprotocol/sdk/types.js';
export declare const tools: Tool[];
export declare function executeQuery(client: GraphQLClient, toolName: string, args: Record<string, unknown>): Promise<unknown>;
// GraphQL Queries
const GET_ROLE_BY_ID = `
query getRoleById($id: ID!) {
role(id: $id) {
description
id
name
workspaceId
roleAuthens {
groupId
id
roleId
userId
}
versionId
roleTagDetails {
roleId
roleTagId
roleTag {
id
name
}
}
}
}
`;
const GET_ROLES = `
query getRoles($input: PagingInput) {
roles(input: $input) {
items {
description
id
name
workspaceId
roleAuthens {
groupId
id
roleId
userId
}
roleTagDetails {
roleId
roleTagId
roleTag {
id
name
}
}
}
totalCount
}
}
`;
const GET_USER_BY_ID = `
query getUserById($id: ID!) {
user(id: $id) {
id
name
username
description
gender
image
versionId
}
}
`;
const GET_USERS = `
query getUsers($input: PagingInput) {
users(input: $input) {
items {
id
name
username
description
gender
image
}
totalCount
}
}
`;
const GET_PLACES = `
query getPlaces($input: PagingInput) {
places(input: $input) {
items {
id
name
code
description
address
directoryPath
}
totalCount
}
}
`;
const GET_PLACE_BY_ID = `
query getPlaceById($id: ID!) {
place(id: $id) {
id
name
code
description
address
directoryPath
versionId
}
}
`;
const GET_GROUPS = `
query getGroups($input: PagingInput) {
groups(input: $input) {
items {
id
name
description
versionId
}
totalCount
}
}
`;
const GET_GROUP_BY_ID = `
query getGroupById($id: ID!) {
group(id: $id) {
id
name
description
versionId
}
}
`;
const GET_CAMPAIGNS = `
query getCampaigns($input: PagingInput) {
campaigns(input: $input) {
items {
id
name
description
state
directoryPath
}
totalCount
}
}
`;
const GET_CAMPAIGN_BY_ID = `
query getCampaignById($id: ID!) {
campaign(id: $id) {
id
name
description
state
directoryPath
versionId
}
}
`;
const GET_TEMPLATES = `
query getTemplates($input: PagingInput) {
templates(input: $input) {
items {
id
name
description
templateTypeId
directoryPath
}
totalCount
}
}
`;
const GET_TEMPLATE_BY_ID = `
query getTemplateById($id: ID!) {
template(id: $id) {
id
name
description
templateTypeId
templateHtml
directoryPath
versionId
}
}
`;
const GET_WORKSPACES = `
query getWorkspaces($input: PagingInput) {
workspaces(input: $input) {
items {
id
name
description
directoryPath
type
}
totalCount
}
}
`;
const GET_WORKSPACE_BY_ID = `
query getWorkspaceById($id: ID!) {
workspace(id: $id) {
id
name
description
directoryPath
type
versionId
}
}
`;
// Query mapping
const queryMap = {
get_role_by_id: GET_ROLE_BY_ID,
get_roles: GET_ROLES,
get_user_by_id: GET_USER_BY_ID,
get_users: GET_USERS,
get_place_by_id: GET_PLACE_BY_ID,
get_places: GET_PLACES,
get_group_by_id: GET_GROUP_BY_ID,
get_groups: GET_GROUPS,
get_campaign_by_id: GET_CAMPAIGN_BY_ID,
get_campaigns: GET_CAMPAIGNS,
get_template_by_id: GET_TEMPLATE_BY_ID,
get_templates: GET_TEMPLATES,
get_workspace_by_id: GET_WORKSPACE_BY_ID,
get_workspaces: GET_WORKSPACES
};
// ==================== MUTATIONS ====================
const CREATE_ROLE = `
mutation createRole($input: RoleRequestGqlInput!) {
createRole(input: $input) {
id
}
}
`;
const UPDATE_ROLE = `
mutation updateRole($id: ID!, $input: RoleRequestGqlInput!, $versionId: Int!) {
updateRole(id: $id, input: $input, versionId: $versionId) {
id
}
}
`;
const DELETE_ROLE = `
mutation deleteRole($id: ID!) {
deleteRole(id: $id) {
id
}
}
`;
const CREATE_GROUP = `
mutation createGroup($input: GroupRequestGqlInput!) {
createGroup(input: $input) {
id
}
}
`;
const UPDATE_GROUP = `
mutation updateGroup($id: ID!, $input: GroupRequestGqlInput!, $versionId: Int!) {
updateGroup(input: $input, id: $id, versionId: $versionId) {
id
}
}
`;
const DELETE_GROUP = `
mutation deleteGroup($id: ID!) {
deleteGroup(id: $id) {
id
}
}
`;
const UPDATE_USER = `
mutation updateUser($id: ID!, $input: UserRequestPayloadGqlInput!, $versionId: Int!) {
updateUser(input: $input, id: $id, versionId: $versionId) {
id
}
}
`;
const DELETE_USER = `
mutation deleteUser($id: ID!) {
deleteUser(id: $id) {
id
}
}
`;
const ADD_USER_TO_WORKSPACE = `
mutation addUserToWorkspace($username: String!, $roleAuthenInput: RoleAuthenRequestGqlInput, $groupIds: [Int!]) {
addUserToWorkspace(username: $username, roleAuthenInput: $roleAuthenInput, groupIds: $groupIds) {
id
}
}
`;
const CREATE_PLACE = `
mutation createPlace($aliasInput: AliasWithRelativePathGqlInput!, $input: PlaceRequestGqlInput!) {
createPlace(aliasInput: $aliasInput, input: $input) {
id
}
}
`;
const UPDATE_PLACE = `
mutation updatePlace($id: ID!, $input: PlaceRequestGqlInput!, $aliasInput: AliasWithRelativePathGqlInput, $versionId: Int!) {
updatePlace(id: $id, input: $input, aliasInput: $aliasInput, versionId: $versionId) {
id
}
}
`;
const DELETE_CAMPAIGN = `
mutation deleteCampaign($id: Int!) {
deleteCampaign(id: $id) {
id
}
}
`;
const CREATE_CAMPAIGN = `
mutation createCampaign($input: CampaignRequestGqlInput!, $aliasInput: AliasWithRelativePathGqlInput!) {
createCampaign(input: $input, aliasInput: $aliasInput) {
id
}
}
`;
const UPDATE_CAMPAIGN = `
mutation updateCampaign($id: Int!, $input: CampaignRequestGqlInput!, $aliasInput: AliasWithRelativePathGqlInput, $versionId: Int!) {
updateCampaign(id: $id, input: $input, aliasInput: $aliasInput, versionId: $versionId) {
id
}
}
`;
// Mutation mapping
const mutationMap = {
create_role: CREATE_ROLE,
update_role: UPDATE_ROLE,
delete_role: DELETE_ROLE,
create_group: CREATE_GROUP,
update_group: UPDATE_GROUP,
delete_group: DELETE_GROUP,
update_user: UPDATE_USER,
delete_user: DELETE_USER,
add_user_to_workspace: ADD_USER_TO_WORKSPACE,
create_place: CREATE_PLACE,
update_place: UPDATE_PLACE,
delete_campaign: DELETE_CAMPAIGN,
create_campaign: CREATE_CAMPAIGN,
update_campaign: UPDATE_CAMPAIGN
};
// Tool definitions
export const tools = [
{
name: 'get_role_by_id',
description: 'Lấy thông tin Role theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Role cần lấy'
}
},
required: ['id']
}
},
{
name: 'get_roles',
description: 'Lấy danh sách Roles với phân trang',
inputSchema: {
type: 'object',
properties: {
pageSize: {
type: 'number',
description: 'Số lượng items mỗi trang (mặc định 10)'
},
pageIndex: {
type: 'number',
description: 'Số thứ tự trang (bắt đầu từ 0)'
}
}
}
},
{
name: 'get_user_by_id',
description: 'Lấy thông tin User theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của User cần lấy'
}
},
required: ['id']
}
},
{
name: 'get_users',
description: 'Lấy danh sách Users với phân trang',
inputSchema: {
type: 'object',
properties: {
pageSize: {
type: 'number',
description: 'Số lượng items mỗi trang (mặc định 10)'
},
pageIndex: {
type: 'number',
description: 'Số thứ tự trang (bắt đầu từ 0)'
}
}
}
},
{
name: 'get_place_by_id',
description: 'Lấy thông tin Place (địa điểm) theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Place cần lấy'
}
},
required: ['id']
}
},
{
name: 'get_places',
description: 'Lấy danh sách Places với phân trang',
inputSchema: {
type: 'object',
properties: {
pageSize: {
type: 'number',
description: 'Số lượng items mỗi trang (mặc định 10)'
},
pageIndex: {
type: 'number',
description: 'Số thứ tự trang (bắt đầu từ 0)'
}
}
}
},
{
name: 'get_group_by_id',
description: 'Lấy thông tin Group theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Group cần lấy'
}
},
required: ['id']
}
},
{
name: 'get_groups',
description: 'Lấy danh sách Groups với phân trang',
inputSchema: {
type: 'object',
properties: {
pageSize: {
type: 'number',
description: 'Số lượng items mỗi trang (mặc định 10)'
},
pageIndex: {
type: 'number',
description: 'Số thứ tự trang (bắt đầu từ 0)'
}
}
}
},
{
name: 'get_campaign_by_id',
description: 'Lấy thông tin Campaign theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Campaign cần lấy'
}
},
required: ['id']
}
},
{
name: 'get_campaigns',
description: 'Lấy danh sách Campaigns với phân trang',
inputSchema: {
type: 'object',
properties: {
pageSize: {
type: 'number',
description: 'Số lượng items mỗi trang (mặc định 10)'
},
pageIndex: {
type: 'number',
description: 'Số thứ tự trang (bắt đầu từ 0)'
}
}
}
},
{
name: 'get_template_by_id',
description: 'Lấy thông tin Template theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Template cần lấy'
}
},
required: ['id']
}
},
{
name: 'get_templates',
description: 'Lấy danh sách Templates với phân trang',
inputSchema: {
type: 'object',
properties: {
pageSize: {
type: 'number',
description: 'Số lượng items mỗi trang (mặc định 10)'
},
pageIndex: {
type: 'number',
description: 'Số thứ tự trang (bắt đầu từ 0)'
}
}
}
},
{
name: 'get_workspace_by_id',
description: 'Lấy thông tin Workspace theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Workspace cần lấy'
}
},
required: ['id']
}
},
{
name: 'get_workspaces',
description: 'Lấy danh sách Workspaces với phân trang',
inputSchema: {
type: 'object',
properties: {
pageSize: {
type: 'number',
description: 'Số lượng items mỗi trang (mặc định 10)'
},
pageIndex: {
type: 'number',
description: 'Số thứ tự trang (bắt đầu từ 0)'
}
}
}
},
// ==================== MUTATION TOOLS ====================
{
name: 'create_role',
description: 'Tạo mới một Role',
inputSchema: {
type: 'object',
properties: {
name: {
type: 'string',
description: 'Tên của Role'
},
description: {
type: 'string',
description: 'Mô tả Role'
}
},
required: ['name']
}
},
{
name: 'update_role',
description: 'Cập nhật Role theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Role cần cập nhật'
},
name: {
type: 'string',
description: 'Tên mới của Role'
},
description: {
type: 'string',
description: 'Mô tả mới'
},
versionId: {
type: 'number',
description: 'Version ID để kiểm tra conflict'
}
},
required: ['id', 'versionId']
}
},
{
name: 'delete_role',
description: 'Xóa Role theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Role cần xóa'
}
},
required: ['id']
}
},
{
name: 'create_group',
description: 'Tạo mới một Group',
inputSchema: {
type: 'object',
properties: {
name: {
type: 'string',
description: 'Tên của Group'
},
description: {
type: 'string',
description: 'Mô tả Group'
}
},
required: ['name']
}
},
{
name: 'update_group',
description: 'Cập nhật Group theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Group cần cập nhật'
},
name: {
type: 'string',
description: 'Tên mới của Group'
},
description: {
type: 'string',
description: 'Mô tả mới'
},
versionId: {
type: 'number',
description: 'Version ID để kiểm tra conflict'
}
},
required: ['id', 'versionId']
}
},
{
name: 'delete_group',
description: 'Xóa Group theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Group cần xóa'
}
},
required: ['id']
}
},
{
name: 'update_user',
description: 'Cập nhật User theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của User cần cập nhật'
},
name: {
type: 'string',
description: 'Tên mới của User'
},
description: {
type: 'string',
description: 'Mô tả mới'
},
versionId: {
type: 'number',
description: 'Version ID để kiểm tra conflict'
}
},
required: ['id', 'versionId']
}
},
{
name: 'delete_user',
description: 'Xóa User theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của User cần xóa'
}
},
required: ['id']
}
},
{
name: 'add_user_to_workspace',
description: 'Thêm User vào Workspace hiện tại',
inputSchema: {
type: 'object',
properties: {
username: {
type: 'string',
description: 'Username của User cần thêm'
},
roleId: {
type: 'number',
description: 'ID của Role gán cho User'
},
groupIds: {
type: 'array',
items: { type: 'number' },
description: 'Danh sách ID các Group của User'
}
},
required: ['username']
}
},
{
name: 'create_place',
description: 'Tạo mới một Place (địa điểm)',
inputSchema: {
type: 'object',
properties: {
name: {
type: 'string',
description: 'Tên Place'
},
code: {
type: 'string',
description: 'Mã code của Place'
},
description: {
type: 'string',
description: 'Mô tả Place'
},
address: {
type: 'string',
description: 'Địa chỉ'
},
directoryPath: {
type: 'string',
description: 'Đường dẫn thư mục'
}
},
required: ['name', 'directoryPath']
}
},
{
name: 'update_place',
description: 'Cập nhật Place theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Place cần cập nhật'
},
name: {
type: 'string',
description: 'Tên mới'
},
description: {
type: 'string',
description: 'Mô tả mới'
},
address: {
type: 'string',
description: 'Địa chỉ mới'
},
versionId: {
type: 'number',
description: 'Version ID để kiểm tra conflict'
}
},
required: ['id', 'versionId']
}
},
{
name: 'create_campaign',
description: 'Tạo mới một Campaign',
inputSchema: {
type: 'object',
properties: {
name: {
type: 'string',
description: 'Tên Campaign'
},
description: {
type: 'string',
description: 'Mô tả Campaign'
},
directoryPath: {
type: 'string',
description: 'Đường dẫn thư mục'
}
},
required: ['name', 'directoryPath']
}
},
{
name: 'update_campaign',
description: 'Cập nhật Campaign theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Campaign cần cập nhật'
},
name: {
type: 'string',
description: 'Tên mới'
},
description: {
type: 'string',
description: 'Mô tả mới'
},
versionId: {
type: 'number',
description: 'Version ID để kiểm tra conflict'
}
},
required: ['id', 'versionId']
}
},
{
name: 'delete_campaign',
description: 'Xóa Campaign theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Campaign cần xóa'
}
},
required: ['id']
}
},
{
name: 'execute_graphql',
description: 'Thực thi một GraphQL query hoặc mutation tùy chỉnh',
inputSchema: {
type: 'object',
properties: {
query: {
type: 'string',
description: 'GraphQL query hoặc mutation string'
},
variables: {
type: 'object',
description: 'Variables cho query/mutation'
}
},
required: ['query']
}
}
];
// Execute query function
export async function executeQuery(client, toolName, args) {
// Handle custom GraphQL query
if (toolName === 'execute_graphql') {
const query = args.query;
const variables = args.variables;
return client.request(query, variables);
}
// Check if it's a query
const query = queryMap[toolName];
if (query) {
let variables = {};
if (toolName.endsWith('_by_id')) {
// Single entity query
variables = { id: args.id };
}
else {
// List query with pagination
variables = {
input: {
pageSize: args.pageSize || 10,
pageIndex: args.pageIndex || 0
}
};
}
return client.request(query, variables);
}
// Check if it's a mutation
const mutation = mutationMap[toolName];
if (mutation) {
let variables = {};
// Handle different mutation types
if (toolName.startsWith('create_')) {
// Create mutations
const { name, description, code, address, directoryPath } = args;
const input = {};
if (name !== undefined)
input.name = name;
if (description !== undefined)
input.description = description;
if (code !== undefined)
input.code = code;
if (address !== undefined)
input.address = address;
if (toolName === 'create_place' || toolName === 'create_campaign') {
variables = {
input,
aliasInput: {
alias: name,
relativePath: directoryPath || '/'
}
};
}
else {
variables = { input };
}
}
else if (toolName.startsWith('update_')) {
// Update mutations
const { id, versionId, name, description, code, address, directoryPath } = args;
const input = {};
if (name !== undefined)
input.name = name;
if (description !== undefined)
input.description = description;
if (code !== undefined)
input.code = code;
if (address !== undefined)
input.address = address;
variables = { id, input, versionId };
if (toolName === 'update_place' || toolName === 'update_campaign') {
if (directoryPath) {
variables.aliasInput = {
alias: name || '',
relativePath: directoryPath
};
}
}
}
else if (toolName.startsWith('delete_')) {
// Delete mutations
variables = { id: args.id };
}
else if (toolName === 'add_user_to_workspace') {
// Special case
const { username, roleId, groupIds } = args;
variables = {
username,
roleAuthenInput: roleId ? { roleId } : undefined,
groupIds: groupIds || []
};
}
return client.request(mutation, variables);
}
throw new Error(`Unknown tool: ${toolName}`);
}
{
"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": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbklkIjoiNzBkNDQyMjZiNzRkYjI2Yjg1NjE1NDljNjUwYjA4MTUiLCJkZXZpY2VJZCI6IjcwZDQ0MjI2Yjc0ZGIyNmI4NTYxNTQ5YzY1MGIwODE1IiwidXNlcklkIjoiMSIsImNsaWVudElkIjoiMjAwIiwiaW5pdEF0IjoiMTc2OTIyMDY3ODEzNCIsImV4cGlyZXMiOiIxNzY5MjYzODc4MTM0IiwiYnJvd3NlckRldmljZSI6Ik90aGVyIiwiYnJvd3Nlck9zIjoiV2luZG93cyAxMCIsImlwIjoiMTAuMjQ0LjIzNS4xMzAifQ.RILX7y7L6hDHuEaq1JOwCCut8FjZWTHF3K2LzMeTYpw",
"WORKSPACE_ID": "11"
}
}
}
}
{
"name": "acm-graphql-mcp",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "acm-graphql-mcp",
"version": "1.0.0",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.0.0",
"graphql": "^16.9.0",
"graphql-request": "^7.0.0"
},
"devDependencies": {
"@types/node": "^22.0.0",
"tsx": "^4.0.0",
"typescript": "^5.6.0"
}
},
"node_modules/@esbuild/aix-ppc64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.2.tgz",
"integrity": "sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==",
"cpu": [
"ppc64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"aix"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/android-arm": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.2.tgz",
"integrity": "sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==",
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"android"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/android-arm64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.2.tgz",
"integrity": "sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"android"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/android-x64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.2.tgz",
"integrity": "sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"android"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/darwin-arm64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.2.tgz",
"integrity": "sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/darwin-x64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.2.tgz",
"integrity": "sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/freebsd-arm64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.2.tgz",
"integrity": "sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"freebsd"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/freebsd-x64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.2.tgz",
"integrity": "sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"freebsd"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-arm": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.2.tgz",
"integrity": "sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==",
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-arm64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.2.tgz",
"integrity": "sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-ia32": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.2.tgz",
"integrity": "sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==",
"cpu": [
"ia32"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-loong64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.2.tgz",
"integrity": "sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==",
"cpu": [
"loong64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-mips64el": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.2.tgz",
"integrity": "sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==",
"cpu": [
"mips64el"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-ppc64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.2.tgz",
"integrity": "sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==",
"cpu": [
"ppc64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-riscv64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.2.tgz",
"integrity": "sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==",
"cpu": [
"riscv64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-s390x": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.2.tgz",
"integrity": "sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==",
"cpu": [
"s390x"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/linux-x64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.2.tgz",
"integrity": "sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/netbsd-arm64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.2.tgz",
"integrity": "sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"netbsd"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/netbsd-x64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.2.tgz",
"integrity": "sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"netbsd"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/openbsd-arm64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.2.tgz",
"integrity": "sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"openbsd"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/openbsd-x64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.2.tgz",
"integrity": "sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"openbsd"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/openharmony-arm64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.2.tgz",
"integrity": "sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"openharmony"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/sunos-x64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.2.tgz",
"integrity": "sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"sunos"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/win32-arm64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.2.tgz",
"integrity": "sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/win32-ia32": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.2.tgz",
"integrity": "sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==",
"cpu": [
"ia32"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@esbuild/win32-x64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.2.tgz",
"integrity": "sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">=18"
}
},
"node_modules/@graphql-typed-document-node/core": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.2.0.tgz",
"integrity": "sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==",
"license": "MIT",
"peerDependencies": {
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
}
},
"node_modules/@hono/node-server": {
"version": "1.19.9",
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.9.tgz",
"integrity": "sha512-vHL6w3ecZsky+8P5MD+eFfaGTyCeOHUIFYMGpQGbrBTSmNNoxv0if69rEZ5giu36weC5saFuznL411gRX7bJDw==",
"license": "MIT",
"engines": {
"node": ">=18.14.1"
},
"peerDependencies": {
"hono": "^4"
}
},
"node_modules/@modelcontextprotocol/sdk": {
"version": "1.25.3",
"resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.25.3.tgz",
"integrity": "sha512-vsAMBMERybvYgKbg/l4L1rhS7VXV1c0CtyJg72vwxONVX0l4ZfKVAnZEWTQixJGTzKnELjQ59e4NbdFDALRiAQ==",
"license": "MIT",
"dependencies": {
"@hono/node-server": "^1.19.9",
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"content-type": "^1.0.5",
"cors": "^2.8.5",
"cross-spawn": "^7.0.5",
"eventsource": "^3.0.2",
"eventsource-parser": "^3.0.0",
"express": "^5.0.1",
"express-rate-limit": "^7.5.0",
"jose": "^6.1.1",
"json-schema-typed": "^8.0.2",
"pkce-challenge": "^5.0.0",
"raw-body": "^3.0.0",
"zod": "^3.25 || ^4.0",
"zod-to-json-schema": "^3.25.0"
},
"engines": {
"node": ">=18"
},
"peerDependencies": {
"@cfworker/json-schema": "^4.1.1",
"zod": "^3.25 || ^4.0"
},
"peerDependenciesMeta": {
"@cfworker/json-schema": {
"optional": true
},
"zod": {
"optional": false
}
}
},
"node_modules/@types/node": {
"version": "22.19.7",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.7.tgz",
"integrity": "sha512-MciR4AKGHWl7xwxkBa6xUGxQJ4VBOmPTF7sL+iGzuahOFaO0jHCsuEfS80pan1ef4gWId1oWOweIhrDEYLuaOw==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~6.21.0"
}
},
"node_modules/accepts": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",
"integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",
"license": "MIT",
"dependencies": {
"mime-types": "^3.0.0",
"negotiator": "^1.0.0"
},
"engines": {
"node": ">= 0.6"
}
},
"node_modules/ajv": {
"version": "8.17.1",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
"integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
"license": "MIT",
"dependencies": {
"fast-deep-equal": "^3.1.3",
"fast-uri": "^3.0.1",
"json-schema-traverse": "^1.0.0",
"require-from-string": "^2.0.2"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/epoberezkin"
}
},
"node_modules/ajv-formats": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz",
"integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==",
"license": "MIT",
"dependencies": {
"ajv": "^8.0.0"
},
"peerDependencies": {
"ajv": "^8.0.0"
},
"peerDependenciesMeta": {
"ajv": {
"optional": true
}
}
},
"node_modules/body-parser": {
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.2.tgz",
"integrity": "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==",
"license": "MIT",
"dependencies": {
"bytes": "^3.1.2",
"content-type": "^1.0.5",
"debug": "^4.4.3",
"http-errors": "^2.0.0",
"iconv-lite": "^0.7.0",
"on-finished": "^2.4.1",
"qs": "^6.14.1",
"raw-body": "^3.0.1",
"type-is": "^2.0.1"
},
"engines": {
"node": ">=18"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/bytes": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/call-bind-apply-helpers": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
"integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
"function-bind": "^1.1.2"
},
"engines": {
"node": ">= 0.4"
}
},
"node_modules/call-bound": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
"integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
"license": "MIT",
"dependencies": {
"call-bind-apply-helpers": "^1.0.2",
"get-intrinsic": "^1.3.0"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/content-disposition": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.1.tgz",
"integrity": "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==",
"license": "MIT",
"engines": {
"node": ">=18"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/content-type": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/cookie": {
"version": "0.7.2",
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
"integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/cookie-signature": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",
"integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",
"license": "MIT",
"engines": {
"node": ">=6.6.0"
}
},
"node_modules/cors": {
"version": "2.8.6",
"resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz",
"integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==",
"license": "MIT",
"dependencies": {
"object-assign": "^4",
"vary": "^1"
},
"engines": {
"node": ">= 0.10"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/cross-spawn": {
"version": "7.0.6",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
"license": "MIT",
"dependencies": {
"path-key": "^3.1.0",
"shebang-command": "^2.0.0",
"which": "^2.0.1"
},
"engines": {
"node": ">= 8"
}
},
"node_modules/debug": {
"version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
"license": "MIT",
"dependencies": {
"ms": "^2.1.3"
},
"engines": {
"node": ">=6.0"
},
"peerDependenciesMeta": {
"supports-color": {
"optional": true
}
}
},
"node_modules/depd": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/dunder-proto": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
"license": "MIT",
"dependencies": {
"call-bind-apply-helpers": "^1.0.1",
"es-errors": "^1.3.0",
"gopd": "^1.2.0"
},
"engines": {
"node": ">= 0.4"
}
},
"node_modules/ee-first": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
"license": "MIT"
},
"node_modules/encodeurl": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
"integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/es-define-property": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
"license": "MIT",
"engines": {
"node": ">= 0.4"
}
},
"node_modules/es-errors": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
"license": "MIT",
"engines": {
"node": ">= 0.4"
}
},
"node_modules/es-object-atoms": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
"integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0"
},
"engines": {
"node": ">= 0.4"
}
},
"node_modules/esbuild": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.2.tgz",
"integrity": "sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==",
"dev": true,
"hasInstallScript": true,
"license": "MIT",
"bin": {
"esbuild": "bin/esbuild"
},
"engines": {
"node": ">=18"
},
"optionalDependencies": {
"@esbuild/aix-ppc64": "0.27.2",
"@esbuild/android-arm": "0.27.2",
"@esbuild/android-arm64": "0.27.2",
"@esbuild/android-x64": "0.27.2",
"@esbuild/darwin-arm64": "0.27.2",
"@esbuild/darwin-x64": "0.27.2",
"@esbuild/freebsd-arm64": "0.27.2",
"@esbuild/freebsd-x64": "0.27.2",
"@esbuild/linux-arm": "0.27.2",
"@esbuild/linux-arm64": "0.27.2",
"@esbuild/linux-ia32": "0.27.2",
"@esbuild/linux-loong64": "0.27.2",
"@esbuild/linux-mips64el": "0.27.2",
"@esbuild/linux-ppc64": "0.27.2",
"@esbuild/linux-riscv64": "0.27.2",
"@esbuild/linux-s390x": "0.27.2",
"@esbuild/linux-x64": "0.27.2",
"@esbuild/netbsd-arm64": "0.27.2",
"@esbuild/netbsd-x64": "0.27.2",
"@esbuild/openbsd-arm64": "0.27.2",
"@esbuild/openbsd-x64": "0.27.2",
"@esbuild/openharmony-arm64": "0.27.2",
"@esbuild/sunos-x64": "0.27.2",
"@esbuild/win32-arm64": "0.27.2",
"@esbuild/win32-ia32": "0.27.2",
"@esbuild/win32-x64": "0.27.2"
}
},
"node_modules/escape-html": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
"license": "MIT"
},
"node_modules/etag": {
"version": "1.8.1",
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/eventsource": {
"version": "3.0.7",
"resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz",
"integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==",
"license": "MIT",
"dependencies": {
"eventsource-parser": "^3.0.1"
},
"engines": {
"node": ">=18.0.0"
}
},
"node_modules/eventsource-parser": {
"version": "3.0.6",
"resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.6.tgz",
"integrity": "sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg==",
"license": "MIT",
"engines": {
"node": ">=18.0.0"
}
},
"node_modules/express": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",
"integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
"license": "MIT",
"dependencies": {
"accepts": "^2.0.0",
"body-parser": "^2.2.1",
"content-disposition": "^1.0.0",
"content-type": "^1.0.5",
"cookie": "^0.7.1",
"cookie-signature": "^1.2.1",
"debug": "^4.4.0",
"depd": "^2.0.0",
"encodeurl": "^2.0.0",
"escape-html": "^1.0.3",
"etag": "^1.8.1",
"finalhandler": "^2.1.0",
"fresh": "^2.0.0",
"http-errors": "^2.0.0",
"merge-descriptors": "^2.0.0",
"mime-types": "^3.0.0",
"on-finished": "^2.4.1",
"once": "^1.4.0",
"parseurl": "^1.3.3",
"proxy-addr": "^2.0.7",
"qs": "^6.14.0",
"range-parser": "^1.2.1",
"router": "^2.2.0",
"send": "^1.1.0",
"serve-static": "^2.2.0",
"statuses": "^2.0.1",
"type-is": "^2.0.1",
"vary": "^1.1.2"
},
"engines": {
"node": ">= 18"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/express-rate-limit": {
"version": "7.5.1",
"resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.1.tgz",
"integrity": "sha512-7iN8iPMDzOMHPUYllBEsQdWVB6fPDMPqwjBaFrgr4Jgr/+okjvzAy+UHlYYL/Vs0OsOrMkwS6PJDkFlJwoxUnw==",
"license": "MIT",
"engines": {
"node": ">= 16"
},
"funding": {
"url": "https://github.com/sponsors/express-rate-limit"
},
"peerDependencies": {
"express": ">= 4.11"
}
},
"node_modules/fast-deep-equal": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
"license": "MIT"
},
"node_modules/fast-uri": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz",
"integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/fastify"
},
{
"type": "opencollective",
"url": "https://opencollective.com/fastify"
}
],
"license": "BSD-3-Clause"
},
"node_modules/finalhandler": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz",
"integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",
"license": "MIT",
"dependencies": {
"debug": "^4.4.0",
"encodeurl": "^2.0.0",
"escape-html": "^1.0.3",
"on-finished": "^2.4.1",
"parseurl": "^1.3.3",
"statuses": "^2.0.1"
},
"engines": {
"node": ">= 18.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/forwarded": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/fresh": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",
"integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/fsevents": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
"dev": true,
"hasInstallScript": true,
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
"node_modules/function-bind": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/get-intrinsic": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
"integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
"license": "MIT",
"dependencies": {
"call-bind-apply-helpers": "^1.0.2",
"es-define-property": "^1.0.1",
"es-errors": "^1.3.0",
"es-object-atoms": "^1.1.1",
"function-bind": "^1.1.2",
"get-proto": "^1.0.1",
"gopd": "^1.2.0",
"has-symbols": "^1.1.0",
"hasown": "^2.0.2",
"math-intrinsics": "^1.1.0"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/get-proto": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
"license": "MIT",
"dependencies": {
"dunder-proto": "^1.0.1",
"es-object-atoms": "^1.0.0"
},
"engines": {
"node": ">= 0.4"
}
},
"node_modules/get-tsconfig": {
"version": "4.13.0",
"resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.0.tgz",
"integrity": "sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"resolve-pkg-maps": "^1.0.0"
},
"funding": {
"url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"
}
},
"node_modules/gopd": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
"license": "MIT",
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/graphql": {
"version": "16.12.0",
"resolved": "https://registry.npmjs.org/graphql/-/graphql-16.12.0.tgz",
"integrity": "sha512-DKKrynuQRne0PNpEbzuEdHlYOMksHSUI8Zc9Unei5gTsMNA2/vMpoMz/yKba50pejK56qj98qM0SjYxAKi13gQ==",
"license": "MIT",
"engines": {
"node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0"
}
},
"node_modules/graphql-request": {
"version": "7.4.0",
"resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-7.4.0.tgz",
"integrity": "sha512-xfr+zFb/QYbs4l4ty0dltqiXIp07U6sl+tOKAb0t50/EnQek6CVVBLjETXi+FghElytvgaAWtIOt3EV7zLzIAQ==",
"license": "MIT",
"dependencies": {
"@graphql-typed-document-node/core": "^3.2.0"
},
"peerDependencies": {
"graphql": "14 - 16"
}
},
"node_modules/has-symbols": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
"license": "MIT",
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/hasown": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
"license": "MIT",
"dependencies": {
"function-bind": "^1.1.2"
},
"engines": {
"node": ">= 0.4"
}
},
"node_modules/hono": {
"version": "4.11.5",
"resolved": "https://registry.npmjs.org/hono/-/hono-4.11.5.tgz",
"integrity": "sha512-WemPi9/WfyMwZs+ZUXdiwcCh9Y+m7L+8vki9MzDw3jJ+W9Lc+12HGsd368Qc1vZi1xwW8BWMMsnK5efYKPdt4g==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=16.9.0"
}
},
"node_modules/http-errors": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
"integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
"license": "MIT",
"dependencies": {
"depd": "~2.0.0",
"inherits": "~2.0.4",
"setprototypeof": "~1.2.0",
"statuses": "~2.0.2",
"toidentifier": "~1.0.1"
},
"engines": {
"node": ">= 0.8"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/iconv-lite": {
"version": "0.7.2",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz",
"integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",
"license": "MIT",
"dependencies": {
"safer-buffer": ">= 2.1.2 < 3.0.0"
},
"engines": {
"node": ">=0.10.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/inherits": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
"license": "ISC"
},
"node_modules/ipaddr.js": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
"license": "MIT",
"engines": {
"node": ">= 0.10"
}
},
"node_modules/is-promise": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",
"integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",
"license": "MIT"
},
"node_modules/isexe": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
"license": "ISC"
},
"node_modules/jose": {
"version": "6.1.3",
"resolved": "https://registry.npmjs.org/jose/-/jose-6.1.3.tgz",
"integrity": "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/panva"
}
},
"node_modules/json-schema-traverse": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
"license": "MIT"
},
"node_modules/json-schema-typed": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz",
"integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==",
"license": "BSD-2-Clause"
},
"node_modules/math-intrinsics": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
"license": "MIT",
"engines": {
"node": ">= 0.4"
}
},
"node_modules/media-typer": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",
"integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/merge-descriptors": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",
"integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",
"license": "MIT",
"engines": {
"node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/mime-db": {
"version": "1.54.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
"integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/mime-types": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
"integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
"license": "MIT",
"dependencies": {
"mime-db": "^1.54.0"
},
"engines": {
"node": ">=18"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
"license": "MIT"
},
"node_modules/negotiator": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
"integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/object-inspect": {
"version": "1.13.4",
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
"integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
"license": "MIT",
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/on-finished": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
"license": "MIT",
"dependencies": {
"ee-first": "1.1.1"
},
"engines": {
"node": ">= 0.8"
}
},
"node_modules/once": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
"license": "ISC",
"dependencies": {
"wrappy": "1"
}
},
"node_modules/parseurl": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/path-key": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/path-to-regexp": {
"version": "8.3.0",
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz",
"integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==",
"license": "MIT",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/pkce-challenge": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz",
"integrity": "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==",
"license": "MIT",
"engines": {
"node": ">=16.20.0"
}
},
"node_modules/proxy-addr": {
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
"license": "MIT",
"dependencies": {
"forwarded": "0.2.0",
"ipaddr.js": "1.9.1"
},
"engines": {
"node": ">= 0.10"
}
},
"node_modules/qs": {
"version": "6.14.1",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.14.1.tgz",
"integrity": "sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==",
"license": "BSD-3-Clause",
"dependencies": {
"side-channel": "^1.1.0"
},
"engines": {
"node": ">=0.6"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/range-parser": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/raw-body": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz",
"integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",
"license": "MIT",
"dependencies": {
"bytes": "~3.1.2",
"http-errors": "~2.0.1",
"iconv-lite": "~0.7.0",
"unpipe": "~1.0.0"
},
"engines": {
"node": ">= 0.10"
}
},
"node_modules/require-from-string": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
"integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/resolve-pkg-maps": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",
"integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",
"dev": true,
"license": "MIT",
"funding": {
"url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"
}
},
"node_modules/router": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",
"integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
"license": "MIT",
"dependencies": {
"debug": "^4.4.0",
"depd": "^2.0.0",
"is-promise": "^4.0.0",
"parseurl": "^1.3.3",
"path-to-regexp": "^8.0.0"
},
"engines": {
"node": ">= 18"
}
},
"node_modules/safer-buffer": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
"license": "MIT"
},
"node_modules/send": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz",
"integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",
"license": "MIT",
"dependencies": {
"debug": "^4.4.3",
"encodeurl": "^2.0.0",
"escape-html": "^1.0.3",
"etag": "^1.8.1",
"fresh": "^2.0.0",
"http-errors": "^2.0.1",
"mime-types": "^3.0.2",
"ms": "^2.1.3",
"on-finished": "^2.4.1",
"range-parser": "^1.2.1",
"statuses": "^2.0.2"
},
"engines": {
"node": ">= 18"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/serve-static": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz",
"integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",
"license": "MIT",
"dependencies": {
"encodeurl": "^2.0.0",
"escape-html": "^1.0.3",
"parseurl": "^1.3.3",
"send": "^1.2.0"
},
"engines": {
"node": ">= 18"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/setprototypeof": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
"license": "ISC"
},
"node_modules/shebang-command": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
"integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
"license": "MIT",
"dependencies": {
"shebang-regex": "^3.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/shebang-regex": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/side-channel": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
"integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
"object-inspect": "^1.13.3",
"side-channel-list": "^1.0.0",
"side-channel-map": "^1.0.1",
"side-channel-weakmap": "^1.0.2"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/side-channel-list": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
"integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
"object-inspect": "^1.13.3"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/side-channel-map": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
"license": "MIT",
"dependencies": {
"call-bound": "^1.0.2",
"es-errors": "^1.3.0",
"get-intrinsic": "^1.2.5",
"object-inspect": "^1.13.3"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/side-channel-weakmap": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
"license": "MIT",
"dependencies": {
"call-bound": "^1.0.2",
"es-errors": "^1.3.0",
"get-intrinsic": "^1.2.5",
"object-inspect": "^1.13.3",
"side-channel-map": "^1.0.1"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/statuses": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
"integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/toidentifier": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
"license": "MIT",
"engines": {
"node": ">=0.6"
}
},
"node_modules/tsx": {
"version": "4.21.0",
"resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz",
"integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==",
"dev": true,
"license": "MIT",
"dependencies": {
"esbuild": "~0.27.0",
"get-tsconfig": "^4.7.5"
},
"bin": {
"tsx": "dist/cli.mjs"
},
"engines": {
"node": ">=18.0.0"
},
"optionalDependencies": {
"fsevents": "~2.3.3"
}
},
"node_modules/type-is": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz",
"integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==",
"license": "MIT",
"dependencies": {
"content-type": "^1.0.5",
"media-typer": "^1.1.0",
"mime-types": "^3.0.0"
},
"engines": {
"node": ">= 0.6"
}
},
"node_modules/typescript": {
"version": "5.9.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
"dev": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=14.17"
}
},
"node_modules/undici-types": {
"version": "6.21.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
"dev": true,
"license": "MIT"
},
"node_modules/unpipe": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/vary": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
"license": "ISC",
"dependencies": {
"isexe": "^2.0.0"
},
"bin": {
"node-which": "bin/node-which"
},
"engines": {
"node": ">= 8"
}
},
"node_modules/wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
"license": "ISC"
},
"node_modules/zod": {
"version": "4.3.6",
"resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz",
"integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
},
"node_modules/zod-to-json-schema": {
"version": "3.25.1",
"resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.1.tgz",
"integrity": "sha512-pM/SU9d3YAggzi6MtR4h7ruuQlqKtad8e9S0fmxcMi+ueAK5Korys/aWcV9LIIHTVbj01NdzxcnXSN+O74ZIVA==",
"license": "ISC",
"peerDependencies": {
"zod": "^3.25 || ^4"
}
}
}
}
{
"name": "acm-graphql-mcp",
"version": "1.0.0",
"type": "module",
"description": "MCP Server cho ACM GraphQL API",
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"dev": "tsx src/index.ts"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.0.0",
"graphql": "^16.9.0",
"graphql-request": "^7.0.0"
},
"devDependencies": {
"@types/node": "^22.0.0",
"tsx": "^4.0.0",
"typescript": "^5.6.0"
}
}
import { Server } from '@modelcontextprotocol/sdk/server/index.js'
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js'
import { GraphQLClient } from 'graphql-request'
import { tools, executeQuery } from './tools/index.js'
// Configuration from environment variables
const GRAPHQL_ENDPOINT = process.env.GRAPHQL_ENDPOINT || 'https://acm.awifi.com.vn/graphql'
const AUTH_TOKEN = process.env.AUTH_TOKEN || ''
const WORKSPACE_ID = process.env.WORKSPACE_ID || '11'
// Create GraphQL client
const graphqlClient = new GraphQLClient(GRAPHQL_ENDPOINT, {
headers: {
Authorization: `Bearer ${AUTH_TOKEN}`,
workspaceid: WORKSPACE_ID
}
})
// Create MCP server
const server = new Server(
{
name: 'acm-graphql-mcp',
version: '1.0.0'
},
{
capabilities: {
tools: {}
}
}
)
// List available tools
server.setRequestHandler(ListToolsRequestSchema, async () => {
return {
tools: tools
}
})
// Handle tool calls
server.setRequestHandler(CallToolRequestSchema, async (request) => {
const { name, arguments: args } = request.params
try {
const result = await executeQuery(graphqlClient, name, args as Record<string, unknown>)
return {
content: [
{
type: 'text',
text: JSON.stringify(result, null, 2)
}
]
}
} catch (error) {
const errorMessage = error instanceof Error ? error.message : String(error)
return {
content: [
{
type: 'text',
text: `Error: ${errorMessage}`
}
],
isError: true
}
}
})
// Start the server
async function main() {
const transport = new StdioServerTransport()
await server.connect(transport)
console.error('ACM GraphQL MCP Server running on stdio')
}
main().catch((error) => {
console.error('Server error:', error)
process.exit(1)
})
import { GraphQLClient } from 'graphql-request'
import { Tool } from '@modelcontextprotocol/sdk/types.js'
// GraphQL Queries
const GET_ROLE_BY_ID = `
query getRoleById($id: ID!) {
role(id: $id) {
description
id
name
workspaceId
roleAuthens {
groupId
id
roleId
userId
}
versionId
roleTagDetails {
roleId
roleTagId
roleTag {
id
name
}
}
}
}
`
const GET_ROLES = `
query getRoles($input: PagingInput) {
roles(input: $input) {
items {
description
id
name
workspaceId
roleAuthens {
groupId
id
roleId
userId
}
roleTagDetails {
roleId
roleTagId
roleTag {
id
name
}
}
}
totalCount
}
}
`
const GET_USER_BY_ID = `
query getUserById($id: ID!) {
user(id: $id) {
id
name
username
description
gender
image
versionId
}
}
`
const GET_USERS = `
query getUsers($input: PagingInput) {
users(input: $input) {
items {
id
name
username
description
gender
image
}
totalCount
}
}
`
const GET_PLACES = `
query getPlaces($input: PagingInput) {
places(input: $input) {
items {
id
name
code
description
address
directoryPath
}
totalCount
}
}
`
const GET_PLACE_BY_ID = `
query getPlaceById($id: ID!) {
place(id: $id) {
id
name
code
description
address
directoryPath
versionId
}
}
`
const GET_GROUPS = `
query getGroups($input: PagingInput) {
groups(input: $input) {
items {
id
name
description
versionId
}
totalCount
}
}
`
const GET_GROUP_BY_ID = `
query getGroupById($id: ID!) {
group(id: $id) {
id
name
description
versionId
}
}
`
const GET_CAMPAIGNS = `
query getCampaigns($input: PagingInput) {
campaigns(input: $input) {
items {
id
name
description
state
directoryPath
}
totalCount
}
}
`
const GET_CAMPAIGN_BY_ID = `
query getCampaignById($id: ID!) {
campaign(id: $id) {
id
name
description
state
directoryPath
versionId
}
}
`
const GET_TEMPLATES = `
query getTemplates($input: PagingInput) {
templates(input: $input) {
items {
id
name
description
templateTypeId
directoryPath
}
totalCount
}
}
`
const GET_TEMPLATE_BY_ID = `
query getTemplateById($id: ID!) {
template(id: $id) {
id
name
description
templateTypeId
templateHtml
directoryPath
versionId
}
}
`
const GET_WORKSPACES = `
query getWorkspaces($input: PagingInput) {
workspaces(input: $input) {
items {
id
name
description
directoryPath
type
}
totalCount
}
}
`
const GET_WORKSPACE_BY_ID = `
query getWorkspaceById($id: ID!) {
workspace(id: $id) {
id
name
description
directoryPath
type
versionId
}
}
`
// Query mapping
const queryMap: Record<string, string> = {
get_role_by_id: GET_ROLE_BY_ID,
get_roles: GET_ROLES,
get_user_by_id: GET_USER_BY_ID,
get_users: GET_USERS,
get_place_by_id: GET_PLACE_BY_ID,
get_places: GET_PLACES,
get_group_by_id: GET_GROUP_BY_ID,
get_groups: GET_GROUPS,
get_campaign_by_id: GET_CAMPAIGN_BY_ID,
get_campaigns: GET_CAMPAIGNS,
get_template_by_id: GET_TEMPLATE_BY_ID,
get_templates: GET_TEMPLATES,
get_workspace_by_id: GET_WORKSPACE_BY_ID,
get_workspaces: GET_WORKSPACES
}
// ==================== MUTATIONS ====================
const CREATE_ROLE = `
mutation createRole($input: RoleRequestGqlInput!) {
createRole(input: $input) {
id
}
}
`
const UPDATE_ROLE = `
mutation updateRole($id: ID!, $input: RoleRequestGqlInput!, $versionId: Int!) {
updateRole(id: $id, input: $input, versionId: $versionId) {
id
}
}
`
const DELETE_ROLE = `
mutation deleteRole($id: ID!) {
deleteRole(id: $id) {
id
}
}
`
const CREATE_GROUP = `
mutation createGroup($input: GroupRequestGqlInput!) {
createGroup(input: $input) {
id
}
}
`
const UPDATE_GROUP = `
mutation updateGroup($id: ID!, $input: GroupRequestGqlInput!, $versionId: Int!) {
updateGroup(input: $input, id: $id, versionId: $versionId) {
id
}
}
`
const DELETE_GROUP = `
mutation deleteGroup($id: ID!) {
deleteGroup(id: $id) {
id
}
}
`
const UPDATE_USER = `
mutation updateUser($id: ID!, $input: UserRequestPayloadGqlInput!, $versionId: Int!) {
updateUser(input: $input, id: $id, versionId: $versionId) {
id
}
}
`
const DELETE_USER = `
mutation deleteUser($id: ID!) {
deleteUser(id: $id) {
id
}
}
`
const ADD_USER_TO_WORKSPACE = `
mutation addUserToWorkspace($username: String!, $roleAuthenInput: RoleAuthenRequestGqlInput, $groupIds: [Int!]) {
addUserToWorkspace(username: $username, roleAuthenInput: $roleAuthenInput, groupIds: $groupIds) {
id
}
}
`
const CREATE_PLACE = `
mutation createPlace($aliasInput: AliasWithRelativePathGqlInput!, $input: PlaceRequestGqlInput!) {
createPlace(aliasInput: $aliasInput, input: $input) {
id
}
}
`
const UPDATE_PLACE = `
mutation updatePlace($id: ID!, $input: PlaceRequestGqlInput!, $aliasInput: AliasWithRelativePathGqlInput, $versionId: Int!) {
updatePlace(id: $id, input: $input, aliasInput: $aliasInput, versionId: $versionId) {
id
}
}
`
const DELETE_CAMPAIGN = `
mutation deleteCampaign($id: Int!) {
deleteCampaign(id: $id) {
id
}
}
`
const CREATE_CAMPAIGN = `
mutation createCampaign($input: CampaignRequestGqlInput!, $aliasInput: AliasWithRelativePathGqlInput!) {
createCampaign(input: $input, aliasInput: $aliasInput) {
id
}
}
`
const UPDATE_CAMPAIGN = `
mutation updateCampaign($id: Int!, $input: CampaignRequestGqlInput!, $aliasInput: AliasWithRelativePathGqlInput, $versionId: Int!) {
updateCampaign(id: $id, input: $input, aliasInput: $aliasInput, versionId: $versionId) {
id
}
}
`
// Mutation mapping
const mutationMap: Record<string, string> = {
create_role: CREATE_ROLE,
update_role: UPDATE_ROLE,
delete_role: DELETE_ROLE,
create_group: CREATE_GROUP,
update_group: UPDATE_GROUP,
delete_group: DELETE_GROUP,
update_user: UPDATE_USER,
delete_user: DELETE_USER,
add_user_to_workspace: ADD_USER_TO_WORKSPACE,
create_place: CREATE_PLACE,
update_place: UPDATE_PLACE,
delete_campaign: DELETE_CAMPAIGN,
create_campaign: CREATE_CAMPAIGN,
update_campaign: UPDATE_CAMPAIGN
}
// Tool definitions
export const tools: Tool[] = [
{
name: 'get_role_by_id',
description: 'Lấy thông tin Role theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Role cần lấy'
}
},
required: ['id']
}
},
{
name: 'get_roles',
description: 'Lấy danh sách Roles với phân trang',
inputSchema: {
type: 'object',
properties: {
pageSize: {
type: 'number',
description: 'Số lượng items mỗi trang (mặc định 10)'
},
pageIndex: {
type: 'number',
description: 'Số thứ tự trang (bắt đầu từ 0)'
}
}
}
},
{
name: 'get_user_by_id',
description: 'Lấy thông tin User theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của User cần lấy'
}
},
required: ['id']
}
},
{
name: 'get_users',
description: 'Lấy danh sách Users với phân trang',
inputSchema: {
type: 'object',
properties: {
pageSize: {
type: 'number',
description: 'Số lượng items mỗi trang (mặc định 10)'
},
pageIndex: {
type: 'number',
description: 'Số thứ tự trang (bắt đầu từ 0)'
}
}
}
},
{
name: 'get_place_by_id',
description: 'Lấy thông tin Place (địa điểm) theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Place cần lấy'
}
},
required: ['id']
}
},
{
name: 'get_places',
description: 'Lấy danh sách Places với phân trang',
inputSchema: {
type: 'object',
properties: {
pageSize: {
type: 'number',
description: 'Số lượng items mỗi trang (mặc định 10)'
},
pageIndex: {
type: 'number',
description: 'Số thứ tự trang (bắt đầu từ 0)'
}
}
}
},
{
name: 'get_group_by_id',
description: 'Lấy thông tin Group theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Group cần lấy'
}
},
required: ['id']
}
},
{
name: 'get_groups',
description: 'Lấy danh sách Groups với phân trang',
inputSchema: {
type: 'object',
properties: {
pageSize: {
type: 'number',
description: 'Số lượng items mỗi trang (mặc định 10)'
},
pageIndex: {
type: 'number',
description: 'Số thứ tự trang (bắt đầu từ 0)'
}
}
}
},
{
name: 'get_campaign_by_id',
description: 'Lấy thông tin Campaign theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Campaign cần lấy'
}
},
required: ['id']
}
},
{
name: 'get_campaigns',
description: 'Lấy danh sách Campaigns với phân trang',
inputSchema: {
type: 'object',
properties: {
pageSize: {
type: 'number',
description: 'Số lượng items mỗi trang (mặc định 10)'
},
pageIndex: {
type: 'number',
description: 'Số thứ tự trang (bắt đầu từ 0)'
}
}
}
},
{
name: 'get_template_by_id',
description: 'Lấy thông tin Template theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Template cần lấy'
}
},
required: ['id']
}
},
{
name: 'get_templates',
description: 'Lấy danh sách Templates với phân trang',
inputSchema: {
type: 'object',
properties: {
pageSize: {
type: 'number',
description: 'Số lượng items mỗi trang (mặc định 10)'
},
pageIndex: {
type: 'number',
description: 'Số thứ tự trang (bắt đầu từ 0)'
}
}
}
},
{
name: 'get_workspace_by_id',
description: 'Lấy thông tin Workspace theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Workspace cần lấy'
}
},
required: ['id']
}
},
{
name: 'get_workspaces',
description: 'Lấy danh sách Workspaces với phân trang',
inputSchema: {
type: 'object',
properties: {
pageSize: {
type: 'number',
description: 'Số lượng items mỗi trang (mặc định 10)'
},
pageIndex: {
type: 'number',
description: 'Số thứ tự trang (bắt đầu từ 0)'
}
}
}
},
// ==================== MUTATION TOOLS ====================
{
name: 'create_role',
description: 'Tạo mới một Role',
inputSchema: {
type: 'object',
properties: {
name: {
type: 'string',
description: 'Tên của Role'
},
description: {
type: 'string',
description: 'Mô tả Role'
}
},
required: ['name']
}
},
{
name: 'update_role',
description: 'Cập nhật Role theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Role cần cập nhật'
},
name: {
type: 'string',
description: 'Tên mới của Role'
},
description: {
type: 'string',
description: 'Mô tả mới'
},
versionId: {
type: 'number',
description: 'Version ID để kiểm tra conflict'
}
},
required: ['id', 'versionId']
}
},
{
name: 'delete_role',
description: 'Xóa Role theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Role cần xóa'
}
},
required: ['id']
}
},
{
name: 'create_group',
description: 'Tạo mới một Group',
inputSchema: {
type: 'object',
properties: {
name: {
type: 'string',
description: 'Tên của Group'
},
description: {
type: 'string',
description: 'Mô tả Group'
}
},
required: ['name']
}
},
{
name: 'update_group',
description: 'Cập nhật Group theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Group cần cập nhật'
},
name: {
type: 'string',
description: 'Tên mới của Group'
},
description: {
type: 'string',
description: 'Mô tả mới'
},
versionId: {
type: 'number',
description: 'Version ID để kiểm tra conflict'
}
},
required: ['id', 'versionId']
}
},
{
name: 'delete_group',
description: 'Xóa Group theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Group cần xóa'
}
},
required: ['id']
}
},
{
name: 'update_user',
description: 'Cập nhật User theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của User cần cập nhật'
},
name: {
type: 'string',
description: 'Tên mới của User'
},
description: {
type: 'string',
description: 'Mô tả mới'
},
versionId: {
type: 'number',
description: 'Version ID để kiểm tra conflict'
}
},
required: ['id', 'versionId']
}
},
{
name: 'delete_user',
description: 'Xóa User theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của User cần xóa'
}
},
required: ['id']
}
},
{
name: 'add_user_to_workspace',
description: 'Thêm User vào Workspace hiện tại',
inputSchema: {
type: 'object',
properties: {
username: {
type: 'string',
description: 'Username của User cần thêm'
},
roleId: {
type: 'number',
description: 'ID của Role gán cho User'
},
groupIds: {
type: 'array',
items: { type: 'number' },
description: 'Danh sách ID các Group của User'
}
},
required: ['username']
}
},
{
name: 'create_place',
description: 'Tạo mới một Place (địa điểm)',
inputSchema: {
type: 'object',
properties: {
name: {
type: 'string',
description: 'Tên Place'
},
code: {
type: 'string',
description: 'Mã code của Place'
},
description: {
type: 'string',
description: 'Mô tả Place'
},
address: {
type: 'string',
description: 'Địa chỉ'
},
directoryPath: {
type: 'string',
description: 'Đường dẫn thư mục'
}
},
required: ['name', 'directoryPath']
}
},
{
name: 'update_place',
description: 'Cập nhật Place theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Place cần cập nhật'
},
name: {
type: 'string',
description: 'Tên mới'
},
description: {
type: 'string',
description: 'Mô tả mới'
},
address: {
type: 'string',
description: 'Địa chỉ mới'
},
versionId: {
type: 'number',
description: 'Version ID để kiểm tra conflict'
}
},
required: ['id', 'versionId']
}
},
{
name: 'create_campaign',
description: 'Tạo mới một Campaign',
inputSchema: {
type: 'object',
properties: {
name: {
type: 'string',
description: 'Tên Campaign'
},
description: {
type: 'string',
description: 'Mô tả Campaign'
},
directoryPath: {
type: 'string',
description: 'Đường dẫn thư mục'
}
},
required: ['name', 'directoryPath']
}
},
{
name: 'update_campaign',
description: 'Cập nhật Campaign theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Campaign cần cập nhật'
},
name: {
type: 'string',
description: 'Tên mới'
},
description: {
type: 'string',
description: 'Mô tả mới'
},
versionId: {
type: 'number',
description: 'Version ID để kiểm tra conflict'
}
},
required: ['id', 'versionId']
}
},
{
name: 'delete_campaign',
description: 'Xóa Campaign theo ID',
inputSchema: {
type: 'object',
properties: {
id: {
type: 'number',
description: 'ID của Campaign cần xóa'
}
},
required: ['id']
}
},
{
name: 'execute_graphql',
description: 'Thực thi một GraphQL query hoặc mutation tùy chỉnh',
inputSchema: {
type: 'object',
properties: {
query: {
type: 'string',
description: 'GraphQL query hoặc mutation string'
},
variables: {
type: 'object',
description: 'Variables cho query/mutation'
}
},
required: ['query']
}
}
]
// Execute query function
export async function executeQuery(
client: GraphQLClient,
toolName: string,
args: Record<string, unknown>
): Promise<unknown> {
// Handle custom GraphQL query
if (toolName === 'execute_graphql') {
const query = args.query as string
const variables = args.variables as Record<string, unknown> | undefined
return client.request(query, variables)
}
// Check if it's a query
const query = queryMap[toolName]
if (query) {
let variables: Record<string, unknown> = {}
if (toolName.endsWith('_by_id')) {
// Single entity query
variables = { id: args.id }
} else {
// List query with pagination
variables = {
input: {
pageSize: (args.pageSize as number) || 10,
pageIndex: (args.pageIndex as number) || 0
}
}
}
return client.request(query, variables)
}
// Check if it's a mutation
const mutation = mutationMap[toolName]
if (mutation) {
let variables: Record<string, unknown> = {}
// Handle different mutation types
if (toolName.startsWith('create_')) {
// Create mutations
const { name, description, code, address, directoryPath } = args
const input: Record<string, unknown> = {}
if (name !== undefined) input.name = name
if (description !== undefined) input.description = description
if (code !== undefined) input.code = code
if (address !== undefined) input.address = address
if (toolName === 'create_place' || toolName === 'create_campaign') {
variables = {
input,
aliasInput: {
alias: name as string,
relativePath: (directoryPath as string) || '/'
}
}
} else {
variables = { input }
}
} else if (toolName.startsWith('update_')) {
// Update mutations
const { id, versionId, name, description, code, address, directoryPath } = args
const input: Record<string, unknown> = {}
if (name !== undefined) input.name = name
if (description !== undefined) input.description = description
if (code !== undefined) input.code = code
if (address !== undefined) input.address = address
variables = { id, input, versionId }
if (toolName === 'update_place' || toolName === 'update_campaign') {
if (directoryPath) {
variables.aliasInput = {
alias: (name as string) || '',
relativePath: directoryPath as string
}
}
}
} else if (toolName.startsWith('delete_')) {
// Delete mutations
variables = { id: args.id }
} else if (toolName === 'add_user_to_workspace') {
// Special case
const { username, roleId, groupIds } = args
variables = {
username,
roleAuthenInput: roleId ? { roleId } : undefined,
groupIds: groupIds || []
}
}
return client.request(mutation, variables)
}
throw new Error(`Unknown tool: ${toolName}`)
}
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"declaration": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment