@termwright/mcp 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +257 -0
  3. package/dist/bin.d.ts +1 -0
  4. package/dist/bin.js +12 -0
  5. package/dist/bin.js.map +1 -0
  6. package/dist/chunk-2J5WHI6X.js +2000 -0
  7. package/dist/chunk-2J5WHI6X.js.map +1 -0
  8. package/dist/chunk-36C7A7DW.js +2685 -0
  9. package/dist/chunk-36C7A7DW.js.map +1 -0
  10. package/dist/chunk-3PLOAM2C.js +2427 -0
  11. package/dist/chunk-3PLOAM2C.js.map +1 -0
  12. package/dist/chunk-57GYK2EF.js +2991 -0
  13. package/dist/chunk-57GYK2EF.js.map +1 -0
  14. package/dist/chunk-ABLJBL5P.js +2687 -0
  15. package/dist/chunk-ABLJBL5P.js.map +1 -0
  16. package/dist/chunk-BOOUADRN.js +1938 -0
  17. package/dist/chunk-BOOUADRN.js.map +1 -0
  18. package/dist/chunk-BPWIETN5.js +2983 -0
  19. package/dist/chunk-BPWIETN5.js.map +1 -0
  20. package/dist/chunk-CMQB5G7R.js +2968 -0
  21. package/dist/chunk-CMQB5G7R.js.map +1 -0
  22. package/dist/chunk-I4B53KZ7.js +2955 -0
  23. package/dist/chunk-I4B53KZ7.js.map +1 -0
  24. package/dist/chunk-IPNUAUAN.js +2991 -0
  25. package/dist/chunk-IPNUAUAN.js.map +1 -0
  26. package/dist/chunk-KZWL2S6E.js +2869 -0
  27. package/dist/chunk-KZWL2S6E.js.map +1 -0
  28. package/dist/chunk-LB2QBYW4.js +2686 -0
  29. package/dist/chunk-LB2QBYW4.js.map +1 -0
  30. package/dist/chunk-MR3AXSXL.js +1977 -0
  31. package/dist/chunk-MR3AXSXL.js.map +1 -0
  32. package/dist/chunk-NVSZXEZU.js +2688 -0
  33. package/dist/chunk-NVSZXEZU.js.map +1 -0
  34. package/dist/chunk-PD2WKAFE.js +2531 -0
  35. package/dist/chunk-PD2WKAFE.js.map +1 -0
  36. package/dist/chunk-PGY4ZDLD.js +1843 -0
  37. package/dist/chunk-PGY4ZDLD.js.map +1 -0
  38. package/dist/chunk-QDIAASH7.js +2982 -0
  39. package/dist/chunk-QDIAASH7.js.map +1 -0
  40. package/dist/chunk-UZWFLJGG.js +2873 -0
  41. package/dist/chunk-UZWFLJGG.js.map +1 -0
  42. package/dist/chunk-VFYTROYG.js +2825 -0
  43. package/dist/chunk-VFYTROYG.js.map +1 -0
  44. package/dist/chunk-ZTHKAJKT.js +2981 -0
  45. package/dist/chunk-ZTHKAJKT.js.map +1 -0
  46. package/dist/chunk-ZZULGRRE.js +2991 -0
  47. package/dist/chunk-ZZULGRRE.js.map +1 -0
  48. package/dist/index.d.ts +826 -0
  49. package/dist/index.js +105 -0
  50. package/dist/index.js.map +1 -0
  51. package/package.json +40 -0
package/dist/index.js ADDED
@@ -0,0 +1,105 @@
1
+ import {
2
+ AGENT_CONTEXT_VERSION,
3
+ EXIT_CODES,
4
+ FILTERABLE_STATES,
5
+ MCP_LIMITS,
6
+ McpError,
7
+ SCREENSHOT_LIMITS,
8
+ SEMANTIC_ROLES,
9
+ SERVER_NAME,
10
+ SERVER_VERSION,
11
+ SIGNALS,
12
+ SessionRegistry,
13
+ TERMINAL_TOOLS,
14
+ TOOLS,
15
+ TRACE_LIMITS,
16
+ TRACE_TOOLS,
17
+ TerminalStore,
18
+ TraceStore,
19
+ buildAgentContext,
20
+ buildAgentSkill,
21
+ buildLocator,
22
+ buildUsage,
23
+ closeSessionStores,
24
+ createSessionStores,
25
+ createTermwrightMcpServer,
26
+ defineTool,
27
+ diffRows,
28
+ diffSemantic,
29
+ exitCodeFor,
30
+ formatBounds,
31
+ formatCompactSnapshot,
32
+ formatNodeLine,
33
+ formatRef,
34
+ main,
35
+ noSessionError,
36
+ parseRef,
37
+ refEntries,
38
+ renderErrorPayload,
39
+ renderScreenshot,
40
+ runCli,
41
+ serveHttp,
42
+ serveInMemory,
43
+ serveStdio,
44
+ stateFlags,
45
+ textOrRegExp,
46
+ toErrorPayload,
47
+ toRefEntry,
48
+ toolByName,
49
+ usageError,
50
+ walkSnapshot,
51
+ writeAgentSkill
52
+ } from "./chunk-IPNUAUAN.js";
53
+ export {
54
+ AGENT_CONTEXT_VERSION,
55
+ EXIT_CODES,
56
+ FILTERABLE_STATES,
57
+ MCP_LIMITS,
58
+ McpError,
59
+ SCREENSHOT_LIMITS,
60
+ SEMANTIC_ROLES,
61
+ SERVER_NAME,
62
+ SERVER_VERSION,
63
+ SIGNALS,
64
+ SessionRegistry,
65
+ TERMINAL_TOOLS,
66
+ TOOLS,
67
+ TRACE_LIMITS,
68
+ TRACE_TOOLS,
69
+ TerminalStore,
70
+ TraceStore,
71
+ buildAgentContext,
72
+ buildAgentSkill,
73
+ buildLocator,
74
+ buildUsage,
75
+ closeSessionStores,
76
+ createSessionStores,
77
+ createTermwrightMcpServer,
78
+ defineTool,
79
+ diffRows,
80
+ diffSemantic,
81
+ exitCodeFor,
82
+ formatBounds,
83
+ formatCompactSnapshot,
84
+ formatNodeLine,
85
+ formatRef,
86
+ main,
87
+ noSessionError,
88
+ parseRef,
89
+ refEntries,
90
+ renderErrorPayload,
91
+ renderScreenshot,
92
+ runCli,
93
+ serveHttp,
94
+ serveInMemory,
95
+ serveStdio,
96
+ stateFlags,
97
+ textOrRegExp,
98
+ toErrorPayload,
99
+ toRefEntry,
100
+ toolByName,
101
+ usageError,
102
+ walkSnapshot,
103
+ writeAgentSkill
104
+ };
105
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@termwright/mcp",
3
+ "version": "0.2.0",
4
+ "description": "thin MCP server over the public driver API",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/Gorce-AI/termwright.git",
9
+ "directory": "packages/mcp"
10
+ },
11
+ "type": "module",
12
+ "engines": {
13
+ "node": ">=22"
14
+ },
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.js"
19
+ }
20
+ },
21
+ "bin": {
22
+ "termwright-mcp": "./dist/bin.js"
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "dependencies": {
28
+ "@modelcontextprotocol/sdk": "^1.30.0",
29
+ "zod": "^4.0.0",
30
+ "@termwright/driver": "0.2.0",
31
+ "@termwright/protocol": "0.2.0",
32
+ "@termwright/screenshot": "0.2.0",
33
+ "@termwright/trace": "0.2.0"
34
+ },
35
+ "scripts": {
36
+ "build": "tsup src/index.ts src/bin.ts --format esm --dts --sourcemap",
37
+ "typecheck": "tsc --noEmit",
38
+ "test": "vitest run"
39
+ }
40
+ }