@ductape/mcp 0.2.35 → 0.2.36

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 (2) hide show
  1. package/dist/index.js +11 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3105,6 +3105,9 @@ CONNECTION FILE — REQUIRED SHAPE:
3105
3105
  "product_env_slug": "prd",
3106
3106
  "app_env_slug": "production",
3107
3107
  "variables": [{ "key": "region", "value": "ng" }],
3108
+ "credentials": {
3109
+ "headers:Authorization": "$Secret{PAYSTACK_SECRET_KEY}"
3110
+ },
3108
3111
  "auth": {
3109
3112
  "auth_tag": "secret-key",
3110
3113
  "data": {
@@ -3115,6 +3118,12 @@ CONNECTION FILE — REQUIRED SHAPE:
3115
3118
  }]
3116
3119
  }
3117
3120
 
3121
+ Authentication is OPTIONAL. If the App defines an auth scheme, use auth with its exact auth_tag.
3122
+ If it has no formal auth scheme but actions declare reusable credential fields, use credentials
3123
+ with location-prefixed keys: headers:<key>, query:<key>, params:<key>, or body:<key>. Leave both
3124
+ auth and credentials absent when the environment does not require authentication. Never create a
3125
+ fake auth_tag merely to store a header.
3126
+
3118
3127
  Before writing this file, inspect the exact App version/auth/action schemas. auth.data must have
3119
3128
  headers/query/params/body objects and must match the selected auth schema. Never guess an auth_tag,
3120
3129
  variable key, input location, or required field. Store credentials with secrets.create first and
@@ -3123,8 +3132,8 @@ CONNECTION FILE — REQUIRED SHAPE:
3123
3132
  CREATE/REPAIR/ROTATE:
3124
3133
  ductape_cli("products apps configure --product <product_tag> --app <app_or_access_tag> \
3125
3134
  --connection-file ductape/apps/<app_tag>/connection.json --json")
3126
- The command is merge-safe: an omitted auth or variables field preserves the existing saved field.
3127
- Providing auth or variables explicitly replaces that field for the named product environment.
3135
+ The command is merge-safe: an omitted auth, credentials, or variables field preserves the existing
3136
+ saved field. Providing one explicitly replaces that field for the named product environment.
3128
3137
  It never returns saved credential values. Include only environments intentionally being changed;
3129
3138
  other existing mappings are retained. To repair an old connection with no mapping, add its row.
3130
3139
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ductape/mcp",
3
- "version": "0.2.35",
3
+ "version": "0.2.36",
4
4
  "description": "MCP server that exposes Ductape SDK operations via the backend proxy",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",