@yawlabs/aws-mcp 1.0.0 → 1.0.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 CHANGED
@@ -255,15 +255,21 @@ From 1.0 onward this package follows [Semantic Versioning](https://semver.org/sp
255
255
  - `aws_paginate` -> `{command, result, nextToken, hasMore}`
256
256
  - `aws_multi_region` -> `{service, operation, regionCount, okCount, errorCount, results: [{region, ok, data?, command?, error?, errorKind?}]}`
257
257
  - `aws_whoami` -> `{account, userId, arn, profile, region, ssoToken: {expiresAt, minutesLeft, startUrl} | null}`
258
+ - `aws_login_start` -> `{sessionId, profile, verificationUrl, userCode, instructions, reused?}` (`reused: true` when re-surfacing an in-flight login for the same profile)
259
+ - `aws_login_complete` -> `{loggedIn, account, userId, arn, profile, region, ssoToken}` (same `ssoToken` shape as `aws_whoami`)
260
+ - `aws_refresh_if_expiring_soon` -> **one of two shapes by branch:** `{status: "ok", minutesLeft, expiresAt, profile}` when the cached token has more than `thresholdMinutes` left, or `{status: "refreshing", reason, sessionId, profile, verificationUrl, userCode, reused?, instructions}` when a refresh is in flight. Discriminate on `status`.
258
261
  - `aws_assume_role` -> `{profile, credentialsPath, expiration, assumedRoleArn, assumedRoleId, sourceProfile, hint}`
259
- - `aws_login_start` / `aws_refresh_if_expiring_soon` -> `{sessionId, profile, verificationUrl, userCode, instructions, reused?}`
262
+ - `aws_list_profiles` -> `{configPath, profiles: [{name, region?, ssoStartUrl?, ssoRegion?, ssoSession?, isSso}]}`
263
+ - `aws_session_get` / `aws_session_set` / `aws_session_clear` -> `{profile, region, profileSource, regionSource}` where `*Source` is `"session" | "env" | "default"`. All three return the same shape (set/clear return the post-mutation state).
260
264
  - `aws_resource_get` -> `{command, typeName, identifier, properties, propertiesRaw?}`
261
265
  - `aws_resource_list` -> `{command, typeName, resources: [{identifier, properties}], nextToken, hasMore}`
262
266
  - `aws_resource_create` / `_update` / `_delete` / `_status` -> flat-promoted `{command, requestToken, operationStatus, identifier, errorCode, statusMessage, retryAfter, progressEvent}` plus an `awaited: {attempts, elapsedMs}` block when `awaitCompletion: true` was passed
263
267
  - `aws_resource_diff` -> `{command, typeName, identifier, before, after, changes, changeCount}`
264
268
  - `aws_logs_tail` -> `{command, logGroupName, since, eventCount, events}`
265
269
  - `aws_iam_simulate` -> `{command, principalArn, summary: {allowed, denied, total}, results, evaluationResults}`
266
- - `aws_session_get` -> `{profile, region, profileSource, regionSource}` where `*Source` is `"session" | "env" | "default"`
270
+ - `aws_script` -> `{result, logs, truncatedLogs, durationMs}` where `result` is whatever the script `return`ed (any JSON-serializable value, including `undefined`)
271
+ - `aws_docs_search` -> `{query, count, results: [{title, url, summary, excerpt}]}`
272
+ - `aws_docs_read` -> `{url, cached, content, startIndex, endIndex, totalLength, hasMore, nextStartIndex}`
267
273
  - **Error envelope** -- `{ok: false, error: string, rawBody?: string}`. The `error` string is human-readable; its *wording* is best-effort (see below).
268
274
  - **`errorKind` enum on `aws_multi_region`** -- `"sso_expired" | "no_creds" | "bad_input" | "spawn_failure" | "timeout" | "output_too_large" | "nonzero_exit"`. New variants may be added (additive); existing ones won't be renamed or repurposed.
269
275
 
package/dist/index.js CHANGED
@@ -56678,7 +56678,7 @@ var sessionTools = [
56678
56678
  ];
56679
56679
 
56680
56680
  // src/index.ts
56681
- var version2 = true ? "1.0.0" : (await null).createRequire(import.meta.url)("../package.json").version;
56681
+ var version2 = true ? "1.0.1" : (await null).createRequire(import.meta.url)("../package.json").version;
56682
56682
  var subcommand = process.argv[2];
56683
56683
  if (subcommand === "version" || subcommand === "--version") {
56684
56684
  console.log(version2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yawlabs/aws-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "mcpName": "io.github.YawLabs/aws-mcp",
5
5
  "description": "AWS MCP server — call any AWS API from AI assistants, with first-class SSO re-login (no more 'browser won't open' dead ends)",
6
6
  "license": "MIT",