@aws/agentcore 0.3.0-preview.6.0 → 0.3.0-preview.6.1
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.
- package/README.md +18 -5
- package/dist/cli/index.mjs +247 -247
- package/package.json +5 -5
- package/scripts/start-tui-harness.sh +90 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws/agentcore",
|
|
3
|
-
"version": "0.3.0-preview.6.
|
|
3
|
+
"version": "0.3.0-preview.6.1",
|
|
4
4
|
"description": "CLI for Amazon Bedrock AgentCore",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"zod": "^4.3.5"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {
|
|
97
|
-
"aws-cdk-lib": "^2.
|
|
97
|
+
"aws-cdk-lib": "^2.243.0",
|
|
98
98
|
"constructs": "^10.0.0"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@typescript-eslint/parser": "^8.50.0",
|
|
109
109
|
"@vitest/coverage-v8": "^4.0.18",
|
|
110
110
|
"@xterm/headless": "^6.0.0",
|
|
111
|
-
"aws-cdk-lib": "^2.
|
|
111
|
+
"aws-cdk-lib": "^2.243.0",
|
|
112
112
|
"constructs": "^10.4.4",
|
|
113
113
|
"esbuild": "^0.27.2",
|
|
114
114
|
"eslint": "^9.39.4",
|
|
@@ -132,11 +132,11 @@
|
|
|
132
132
|
},
|
|
133
133
|
"overridesComments": {
|
|
134
134
|
"minimatch": "GHSA-7r86-cg39-jmmj, GHSA-23c5-xmqv-rm74: minimatch 10.0.0-10.2.2 has ReDoS vulnerabilities. Multiple transitive deps (eslint, typescript-eslint, eslint-plugin-import, eslint-plugin-react, prettier-plugin-sort-imports, aws-cdk-lib) pin older versions. Remove this override once upstream packages update their minimatch dependency to >=10.2.3.",
|
|
135
|
-
"fast-xml-parser": "GHSA-
|
|
135
|
+
"fast-xml-parser": "GHSA-8gc5-j5rx-235r, GHSA-jp2q-39xq-3w4g: fast-xml-parser <=5.5.6 has entity expansion bypass (CVE-2026-33036, CVE-2026-33349). Transitive via @aws-sdk/xml-builder. Remove once @aws-sdk updates to fast-xml-parser >=5.5.7."
|
|
136
136
|
},
|
|
137
137
|
"overrides": {
|
|
138
138
|
"minimatch": "10.2.4",
|
|
139
|
-
"fast-xml-parser": "5.
|
|
139
|
+
"fast-xml-parser": "5.5.7"
|
|
140
140
|
},
|
|
141
141
|
"engines": {
|
|
142
142
|
"node": ">=20"
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# ---------------------------------------------------------------------------
|
|
3
|
+
# start-tui-harness.sh
|
|
4
|
+
#
|
|
5
|
+
# Convenience wrapper to build (if needed) and start the TUI harness MCP
|
|
6
|
+
# server over HTTP transport.
|
|
7
|
+
#
|
|
8
|
+
# Usage:
|
|
9
|
+
# ./scripts/start-tui-harness.sh # default port 24100
|
|
10
|
+
# ./scripts/start-tui-harness.sh --port 8080 # custom port
|
|
11
|
+
#
|
|
12
|
+
# The server runs in the foreground so it can be stopped with Ctrl-C.
|
|
13
|
+
# ---------------------------------------------------------------------------
|
|
14
|
+
|
|
15
|
+
set -euo pipefail
|
|
16
|
+
|
|
17
|
+
# ---------------------------------------------------------------------------
|
|
18
|
+
# Resolve project root (parent directory of this script's directory)
|
|
19
|
+
# ---------------------------------------------------------------------------
|
|
20
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
21
|
+
PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
22
|
+
|
|
23
|
+
# ---------------------------------------------------------------------------
|
|
24
|
+
# Parse optional --port argument (default: 24100)
|
|
25
|
+
# ---------------------------------------------------------------------------
|
|
26
|
+
PORT=24100
|
|
27
|
+
|
|
28
|
+
while [[ $# -gt 0 ]]; do
|
|
29
|
+
case "$1" in
|
|
30
|
+
--port)
|
|
31
|
+
if [[ -z "${2:-}" ]]; then
|
|
32
|
+
echo "Error: --port requires a value" >&2
|
|
33
|
+
exit 1
|
|
34
|
+
fi
|
|
35
|
+
PORT="$2"
|
|
36
|
+
shift 2
|
|
37
|
+
;;
|
|
38
|
+
--port=*)
|
|
39
|
+
PORT="${1#*=}"
|
|
40
|
+
shift
|
|
41
|
+
;;
|
|
42
|
+
*)
|
|
43
|
+
echo "Unknown option: $1" >&2
|
|
44
|
+
echo "Usage: $0 [--port PORT]" >&2
|
|
45
|
+
exit 1
|
|
46
|
+
;;
|
|
47
|
+
esac
|
|
48
|
+
done
|
|
49
|
+
|
|
50
|
+
# ---------------------------------------------------------------------------
|
|
51
|
+
# Build the harness bundle if it doesn't exist yet
|
|
52
|
+
# ---------------------------------------------------------------------------
|
|
53
|
+
HARNESS_BUNDLE="$PROJECT_DIR/dist/mcp-harness/index.mjs"
|
|
54
|
+
|
|
55
|
+
if [[ ! -f "$HARNESS_BUNDLE" ]]; then
|
|
56
|
+
echo "Harness bundle not found at $HARNESS_BUNDLE"
|
|
57
|
+
echo "Building with: npm run build:harness ..."
|
|
58
|
+
(cd "$PROJECT_DIR" && npm run build:harness)
|
|
59
|
+
echo ""
|
|
60
|
+
fi
|
|
61
|
+
|
|
62
|
+
# ---------------------------------------------------------------------------
|
|
63
|
+
# Start the HTTP MCP server
|
|
64
|
+
# ---------------------------------------------------------------------------
|
|
65
|
+
echo "=========================================="
|
|
66
|
+
echo " TUI Harness MCP Server (HTTP transport)"
|
|
67
|
+
echo "=========================================="
|
|
68
|
+
echo ""
|
|
69
|
+
echo " URL: http://127.0.0.1:${PORT}/mcp"
|
|
70
|
+
echo ""
|
|
71
|
+
echo " Add this to your .mcp.json:"
|
|
72
|
+
echo ""
|
|
73
|
+
echo " {"
|
|
74
|
+
echo " \"mcpServers\": {"
|
|
75
|
+
echo " \"tui-harness\": {"
|
|
76
|
+
echo " \"type\": \"http\","
|
|
77
|
+
echo " \"url\": \"http://127.0.0.1:${PORT}/mcp\""
|
|
78
|
+
echo " }"
|
|
79
|
+
echo " }"
|
|
80
|
+
echo " }"
|
|
81
|
+
echo ""
|
|
82
|
+
echo " Press Ctrl-C to stop the server."
|
|
83
|
+
echo "=========================================="
|
|
84
|
+
echo ""
|
|
85
|
+
|
|
86
|
+
# Export the port so the harness process can read it from the environment
|
|
87
|
+
export MCP_HTTP_PORT="$PORT"
|
|
88
|
+
|
|
89
|
+
# Run the harness bundle as a foreground process
|
|
90
|
+
exec node "$HARNESS_BUNDLE"
|