mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-23 18:29:21 -05:00
The issue was that toolService.ts and promptService.ts were setting Authorization: Bearer header manually, but the backend expects the x-auth-token header. The auth interceptor already handles adding x-auth-token automatically, so the fix is to remove the manual header and let the interceptor do its job. Co-authored-by: samanhappy <2755122+samanhappy@users.noreply.github.com>
73 lines
1.5 KiB
JSON
73 lines
1.5 KiB
JSON
{
|
|
"mcpServers": {
|
|
"amap": {
|
|
"command": "npx",
|
|
"args": [
|
|
"-y",
|
|
"@amap/amap-maps-mcp-server"
|
|
],
|
|
"env": {
|
|
"AMAP_MAPS_API_KEY": "your-api-key"
|
|
},
|
|
"tools": {
|
|
"amap-maps_regeocode": {
|
|
"enabled": true,
|
|
"description": "Updated via UI test"
|
|
}
|
|
}
|
|
},
|
|
"playwright": {
|
|
"command": "npx",
|
|
"args": [
|
|
"@playwright/mcp@latest",
|
|
"--headless"
|
|
]
|
|
},
|
|
"fetch": {
|
|
"command": "uvx",
|
|
"args": [
|
|
"mcp-server-fetch"
|
|
]
|
|
},
|
|
"slack": {
|
|
"command": "npx",
|
|
"args": [
|
|
"-y",
|
|
"@modelcontextprotocol/server-slack"
|
|
],
|
|
"env": {
|
|
"SLACK_BOT_TOKEN": "your-bot-token",
|
|
"SLACK_TEAM_ID": "your-team-id"
|
|
}
|
|
}
|
|
},
|
|
"users": [
|
|
{
|
|
"username": "admin",
|
|
"password": "$2b$10$Vt7krIvjNgyN67LXqly0uOcTpN0LI55cYRbcKC71pUDAP0nJ7RPa.",
|
|
"isAdmin": true
|
|
}
|
|
],
|
|
"systemConfig": {
|
|
"oauthServer": {
|
|
"enabled": true,
|
|
"accessTokenLifetime": 3600,
|
|
"refreshTokenLifetime": 1209600,
|
|
"authorizationCodeLifetime": 300,
|
|
"requireClientSecret": false,
|
|
"allowedScopes": [
|
|
"read",
|
|
"write"
|
|
],
|
|
"requireState": false,
|
|
"dynamicRegistration": {
|
|
"enabled": true,
|
|
"allowedGrantTypes": [
|
|
"authorization_code",
|
|
"refresh_token"
|
|
],
|
|
"requiresAuthentication": false
|
|
}
|
|
}
|
|
}
|
|
} |