-
Notifications
You must be signed in to change notification settings - Fork 1
Description
输入提示词
Error Stack Trace Parsing Rules
When performing source map parsing, please follow these rules:
If the URL contains special, the file should be parsed into the special/ directory, while removing -special from the filename.
All source map files are stored in the following CDN directory:
https://cdn.jsdelivr.net/gh/MasonChow/source-map-parser-mcp@main/example/
Examples
Source map address for bar-special.js:
https://cdn.jsdelivr.net/gh/MasonChow/source-map-parser-mcp@main/example/special/bar.js.map
Uncaught Error: This is a error at foo-special.js:49:34832 at ka (foo-special.js:48:83322) at Vs (foo-special.js:48:98013) at Et (foo-special.js:48:97897) at Vs (foo-special.js:48:98749) at Et (foo-special.js:48:97897) at Vs (foo-special.js:48:98059) at sv (foo-special.js:48:110550) at foo-special.js:48:107925 at MessagePort.Ot (foo-special.js:25:1635)
parse_stack
入参
{
"stacks": [
{
"line": 49,
"column": 34832,
"sourceMapUrl": "https://cdn.jsdelivr.net/gh/MasonChow/source-map-parser-mcp@main/example/special/foo.js.map"
},
{
"line": 48,
"column": 83322,
"sourceMapUrl": "https://cdn.jsdelivr.net/gh/MasonChow/source-map-parser-mcp@main/example/special/foo.js.map"
},
{
"line": 48,
"column": 98013,
"sourceMapUrl": "https://cdn.jsdelivr.net/gh/MasonChow/source-map-parser-mcp@main/example/special/foo.js.map"
},
{
"line": 48,
"column": 97897,
"sourceMapUrl": "https://cdn.jsdelivr.net/gh/MasonChow/source-map-parser-mcp@main/example/special/foo.js.map"
},
{
"line": 48,
"column": 98749,
"sourceMapUrl": "https://cdn.jsdelivr.net/gh/MasonChow/source-map-parser-mcp@main/example/special/foo.js.map"
},
{
"line": 48,
"column": 97897,
"sourceMapUrl": "https://cdn.jsdelivr.net/gh/MasonChow/source-map-parser-mcp@main/example/special/foo.js.map"
},
{
"line": 48,
"column": 98059,
"sourceMapUrl": "https://cdn.jsdelivr.net/gh/MasonChow/source-map-parser-mcp@main/example/special/foo.js.map"
},
{
"line": 48,
"column": 110550,
"sourceMapUrl": "https://cdn.jsdelivr.net/gh/MasonChow/source-map-parser-mcp@main/example/special/foo.js.map"
},
{
"line": 48,
"column": 107925,
"sourceMapUrl": "https://cdn.jsdelivr.net/gh/MasonChow/source-map-parser-mcp@main/example/special/foo.js.map"
},
{
"line": 25,
"column": 1635,
"sourceMapUrl": "https://cdn.jsdelivr.net/gh/MasonChow/source-map-parser-mcp@main/example/special/foo.js.map"
}
返回
{"content":[{"type":"text","text":"[{"success":false,"msg":"parse token error: parse token error: Invalid token: sourceCode must be an array"},{"success":false,"msg":"parse token error: parse token error: Invalid token: sourceCode must be an array"},{"success":false,"msg":"parse token error: parse token error: Invalid token: sourceCode must be an array"},{"success":false,"msg":"parse token error: parse token error: Invalid token: sourceCode must be an array"},{"success":false,"msg":"parse token error: parse token error: Invalid token: sourceCode must be an array"},{"success":false,"msg":"parse token error: parse token error: Invalid token: sourceCode must be an array"},{"success":false,"msg":"parse token error: parse token error: Invalid token: sourceCode must be an array"},{"success":false,"msg":"parse token error: parse token error: Invalid token: sourceCode must be an array"},{"success":false,"msg":"parse token error: parse token error: Invalid token: sourceCode must be an array"},{"success":false,"msg":"parse token error: parse token error: Invalid token: sourceCode must be an array"}]"}]}