@srobroek/pi-aws-guidance 0.9.1 → 0.10.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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## aws [0.10.1](https://github.com/srobroek/harness-plugins/compare/aws--v0.10.0...aws--v0.10.1) (2026-11-24)
2
+
3
+ ## aws [0.10.0](https://github.com/srobroek/harness-plugins/compare/aws--v0.9.2...aws--v0.10.0) (2026-11-24)
4
+
5
+ ### Features
6
+
7
+ * **docs:** publish docs and aws MCP for OMP ([5549b38](https://github.com/srobroek/harness-plugins/commit/5549b38ffcba92bb681b6db5a91c74535810d8cb))
8
+
9
+ ## aws [0.9.2](https://github.com/srobroek/harness-plugins/compare/aws--v0.9.1...aws--v0.9.2) (2026-11-24)
10
+
11
+ ### Bug Fixes
12
+
13
+ * **design:** make MCP servers opt-in ([1ecb493](https://github.com/srobroek/harness-plugins/commit/1ecb493f35ebfe9112f9e4661fa1b2e5ec457fc4))
14
+
1
15
  ## aws [0.9.1](https://github.com/srobroek/harness-plugins/compare/aws--v0.9.0...aws--v0.9.1) (2026-11-23)
2
16
 
3
17
  ### Bug Fixes
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # aws
2
2
 
3
- AWS working guidance as the `aws-guidance` skill, plus the two MCP servers it relies
4
- on, added in AWS projects.
3
+ AWS working guidance as the `aws-guidance` skill, plus two optional MCP servers
4
+ for projects doing AWS work.
5
5
 
6
6
  | Skill | When |
7
7
  | --- | --- |
8
- | `aws-guidance` | Any AWS task: search the AWS MCP Server for a guided AWS skill first, verify API details against AWS documentation, price with `aws-pricing`, and route secrets through the `project-secrets` skill (AWS Secrets Manager through the `aws-secrets-manager` skill from the AWS MCP Server). Three references: `cdk.md` (testing and quality concerns for CDK apps and construct libraries: assertions, cdk-nag, diff, drift, cost), `lambda.md` (thin handlers, one middleware model per surface, Powertools for AWS Lambda, OpenTelemetry through the ADOT layer, runtime defaults) and `service-clients.md` (when a library beats the raw SDK for DynamoDB, Valkey, S3, SQS, secrets, Cognito, RDS, OpenSearch, Kinesis, MSK and Bedrock) |
8
+ | `aws-guidance` | AWS tasks: use AWS MCP when configured and suitable, verify API details against AWS documentation, price with `aws-pricing` or another approved source, and route secrets through the `project-secrets` skill (AWS Secrets Manager through the `aws-secrets-manager` skill from AWS MCP when available). Three references: `cdk.md` (testing and quality concerns for CDK apps and construct libraries: assertions, cdk-nag, diff, drift, cost), `lambda.md` (thin handlers, one middleware model per surface, Powertools for AWS Lambda, OpenTelemetry through the ADOT layer, runtime defaults) and `service-clients.md` (when a library beats the raw SDK for DynamoDB, Valkey, S3, SQS, secrets, Cognito, RDS, OpenSearch, Kinesis, MSK and Bedrock) |
9
9
 
10
10
  ## MCP servers
11
11
 
@@ -14,7 +14,7 @@ The plugin adds the servers in [`.mcp.json`](.mcp.json), with pinned versions:
14
14
  | Server | Command | Scope |
15
15
  | --- | --- | --- |
16
16
  | `aws-mcp` | `uvx mcp-proxy-for-aws-cli@2.0.0 https://aws-mcp.us-east-1.api.aws/mcp --read-only --skip-auth` | AWS documentation search, guided AWS skills, regions and regional availability. `--read-only` hides every tool that can change AWS resources; `--skip-auth` lets the documentation and skill tools work without credentials. Queries go to the AWS-hosted endpoint, and authenticated calls appear in CloudTrail for the signing account |
17
- | `aws-pricing` | `uvx --with botocore[crt] awslabs.aws-pricing-mcp-server@1.1.2`, with `AWS_REGION=us-east-1` | AWS Price List queries in `us-east-1` and Terraform or CDK cost analysis. The `botocore[crt]` extra loads credentials created by `aws login` |
17
+ | `aws-pricing` | `uvx --with botocore[crt] awslabs.aws-pricing-mcp-server@1.1.2`, with `AWS_REGION=us-east-1` by default | AWS Price List queries in `us-east-1` by default and Terraform or CDK cost analysis. Set `AWS_REGION` to use another supported pricing region. The `botocore[crt]` extra loads credentials created by `aws login` |
18
18
 
19
19
  In OpenCode both run in Code Mode with a 120 s startup timeout, since the first start
20
20
  downloads the `uvx` environment, and `aws-mcp` gets a 100 s execution timeout. `aws-pricing` speaks MCP 2026-07-28 and
@@ -25,6 +25,15 @@ stays one per directory.
25
25
  Prerequisites: `uv` on `PATH`, and AWS credentials in the default chain for
26
26
  authenticated calls (set `AWS_PROFILE` before starting OpenCode to pick a profile).
27
27
 
28
+ ### OMP and Pi
29
+
30
+ The shared MCP source is [`common/.mcp.json`](common/.mcp.json); harness-kit generates
31
+ the OMP and Pi MCP declarations from it. Both servers are available in OMP and Pi:
32
+ the AWS MCP Server is read-only and works without AWS credentials for documentation
33
+ and guided skills, while AWS Pricing uses the default AWS credential chain for
34
+ authenticated pricing queries. OMP does not substitute credential variables in
35
+ plugin MCP configs, so configure any required credentials at user scope.
36
+
28
37
  ### When OpenCode adds them
29
38
 
30
39
  By default (`mcp: "auto"`) the plugin adds the servers only where the session's
@@ -64,9 +73,9 @@ or set `"disabled": true` to keep it configured but off.
64
73
  ### Claude Code
65
74
 
66
75
  The marketplace export ships the same `.mcp.json`, so installing the plugin there
67
- starts both servers in every project; there is no project check. Disable them per
68
- project in that harness's MCP settings when they are not wanted. Neither file uses
69
- `${VAR}` substitution.
76
+ starts both servers in every project; there is no project check. Disable them in
77
+ the harness's MCP settings for projects that do not use AWS, or when either server
78
+ is not wanted. Neither file uses `${VAR}` substitution.
70
79
 
71
80
  ## Changes from omp
72
81
 
@@ -75,15 +84,19 @@ project in that harness's MCP settings when they are not wanted. Neither file us
75
84
  that project's `AGENTS.md`.
76
85
  - `aws-skill-first`, a TTSR reminder on the first `aws`, `cdk` or `sam` shell
77
86
  command, is folded into the first bullet of `aws-guidance`.
78
- - The skill says to report checks it could not run when a server is missing.
79
- - The servers are pinned instead of `@latest` and, in OpenCode, added only in AWS
80
- projects instead of wherever the plugin is installed.
87
+ - The skill says to report checks it could not run when a server is missing, and allows approved AWS sources when MCP is unavailable or unsuitable.
88
+ - The servers are pinned instead of `@latest`; pricing defaults to `us-east-1` but supports `AWS_REGION`. In OpenCode, servers are added only in AWS projects instead of wherever the plugin is installed.
81
89
 
82
90
  Both omp rules adapted the rules file from
83
91
  [Agent Toolkit for AWS](https://github.com/aws/agent-toolkit-for-aws/blob/main/rules/aws-agent-rules.md)
84
92
  (Apache-2.0).
85
93
 
86
94
  ## Install
95
+ Install the Pi package from npm:
96
+
97
+ ```sh
98
+ pi install npm:@srobroek/pi-aws-guidance
99
+ ```
87
100
 
88
101
  ```sh
89
102
  opencode plugin add 'github:srobroek/harness-plugins::path:plugins/aws/opencode'
package/mcp-servers.ts ADDED
@@ -0,0 +1,48 @@
1
+ // Generated by harness-kit. Do not edit.
2
+ const servers = {
3
+ "aws-mcp": {
4
+ "command": "uvx",
5
+ "args": [
6
+ "mcp-proxy-for-aws-cli@2.0.0",
7
+ "https://aws-mcp.us-east-1.api.aws/mcp",
8
+ "--read-only",
9
+ "--skip-auth"
10
+ ]
11
+ },
12
+ "aws-pricing": {
13
+ "command": "uvx",
14
+ "args": [
15
+ "--with",
16
+ "botocore[crt]",
17
+ "awslabs.aws-pricing-mcp-server@1.1.2"
18
+ ],
19
+ "env": {
20
+ "AWS_REGION": "us-east-1",
21
+ "FASTMCP_LOG_LEVEL": "ERROR"
22
+ }
23
+ }
24
+ } as const
25
+ const requiredEnvironment: Record<string, readonly string[]> = {}
26
+ const optionalHeaders = {} as const
27
+
28
+ const expand = (value: unknown): unknown => {
29
+ if (typeof value === "string") return value.replace(/\$\{([A-Za-z_][A-Za-z0-9_]*)\}/g, (match, key: string) => process.env[key] ?? match)
30
+ if (Array.isArray(value)) return value.map(expand)
31
+ if (value && typeof value === "object") return Object.fromEntries(Object.entries(value).map(([key, nested]) => [key, expand(nested)]))
32
+ return value
33
+ }
34
+
35
+ export default function registerMcpServers(pi: { registerMcpServer(name: string, config: Record<string, unknown>): unknown }): void {
36
+ for (const [name, config] of Object.entries(servers)) {
37
+ const keys = requiredEnvironment[name as keyof typeof requiredEnvironment] ?? []
38
+ if (keys.some((key) => !process.env[key])) continue
39
+ const resolved = expand(config) as Record<string, unknown>
40
+ const headers = { ...(resolved.headers as Record<string, string> | undefined) }
41
+ for (const [header, variable] of Object.entries(optionalHeaders[name as keyof typeof optionalHeaders] ?? {})) {
42
+ const value = process.env[variable as string]
43
+ if (value) headers[header] = value
44
+ }
45
+ const registration = Object.keys(headers).length > 0 ? { ...resolved, headers } : resolved
46
+ pi.registerMcpServer(name, registration)
47
+ }
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@srobroek/pi-aws-guidance",
3
- "version": "0.9.1",
3
+ "version": "0.10.1",
4
4
  "description": "AWS working guidance: route AWS tasks through the AWS MCP Server's guided skills, verify against AWS documentation, and price with the AWS Pricing MCP server.",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -15,6 +15,7 @@
15
15
  "CHANGELOG.md",
16
16
  "LICENSE",
17
17
  "README.md",
18
+ "mcp-servers.ts",
18
19
  "skills"
19
20
  ],
20
21
  "publishConfig": {
@@ -22,6 +23,9 @@
22
23
  "provenance": true
23
24
  },
24
25
  "pi": {
26
+ "extensions": [
27
+ "./mcp-servers.ts"
28
+ ],
25
29
  "skills": [
26
30
  "./skills"
27
31
  ]