@aws-samples/backend
BMCP server package @moca/backend
Install
agr install @aws-samples/backend --target claudeThis artifact does not publish files for Claude.
Document
{ "name": "@moca/backend", "version": "0.1.0", "description": "Backend API server with JWT authentication for AgentCore", "type": "module", "main": "dist/index.js", "scripts": { "build": "tsc -b", "start": "node dist/index.js", "dev": "NODE_ENV=development tsx watch src/index.ts", "clean": "rimraf dist", "lint": "eslint src", "lint:fix": "eslint src --fix && prettier --write "src/**/.{ts,tsx,js,jsx}"", "test": "jest --passWithNoTests", "test:integration": "NODE_OPTIONS='--experimental-vm-modules' jest --config jest.integration.config.js", "docker:build": "docker build -t agentcore-backend .", "docker:run": "docker run -p 3000:3000 agentcore-backend", "docker:dev": "docker-compose up --build", "docker:dev:detach": "docker-compose up -d --build", "docker:stop": "docker-compose down", "docker:logs": "docker-compose logs -f", "docker:test": "docker-compose exec agentcore-backend curl http://localhost:3000/ping" }, "keywords": [ "agentcore", "backend", "api", "jwt", "express" ], "author": "AgentCore Backend API", "license": "MIT", "dependencies": { "@aws-sdk/client-bedrock-agentcore": "^3.1095.0", "@aws-sdk/client-bedrock-agentcore-control": "^3.1095.0", "@aws-sdk/client-cognito-identity": "^3.1095.0", "@aws-sdk/client-dynamodb": "^3.1095.0", "@aws-sdk/client-eventbridge": "^3.1095.0", "@aws-sdk/client-s3": "^3.1095.0", "@aws-sdk/client-scheduler": "^3.1095.0", "@aws-sdk/client-secrets-manager": "^3.1095.0", "@aws-sdk/client-ssm": "^3.1095.0", "@aws-sdk/client-sts": "^3.1095.0", "@aws-sdk/s3-request-presigner": "^3.1095.0", "@aws-sdk/util-dynamodb": "^3.996.7", "@moca/core": "", "@moca/tool-definitions": "*", "@modelcontextprotocol/sdk": "^1.30.0", "@strands-agents/sdk": "^1.11.1", "aws-jwt-verify": "^5.2.1", "cors": "^2.8.5", "dotenv": "^16.3.1", "express": "^5.2.1", "pino": "^10.3.1", "pino-http": "^11.0.0", "uuid": "^13.0.0", "zod": "^4.2.1" }, "devDependencies": { "@aws-sdk/lib-dynamodb": "^3.1095.0", "@types/cors": "^2.8.17", "@types/express": "^5.0.6", "@types/uuid": "^10.0.0", "pino-pretty": "^13.1.3", "testcontainers": "^12.0.4", "tsx": "^4.23.1" }, "engines": { "node": ">=22.12.0" } }
Trustgrade B
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- warnType matchbest-effort: server code not analyzed
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- warnLicensecopyleft/unknown — index-and-link only
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-f3c4bd305d5f2026-08-06