Skip to content

feat: add description field to connector configuration entries#1721

Open
nborges-aws wants to merge 1 commit into
mainfrom
append-desc-connectors
Open

feat: add description field to connector configuration entries#1721
nborges-aws wants to merge 1 commit into
mainfrom
append-desc-connectors

Conversation

@nborges-aws

Copy link
Copy Markdown
Contributor

Adds a description field to each connector configuration entry written to agentcore.json. KB configurations are pre-populated with a default description; web-search defaults to an empty string. This makes the field visible to customers editing agentcore.json directly, so they can provide tool descriptions without needing to know the field exists.

  • Updated ConfigurationEntry interface and zod schema to include description
  • Pre-populated KB descriptions with default string
  • Updated integ tests to match new structure

Description

Related Issue

Closes #

Documentation PR

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Testing

How have you tested the change?

  • I ran npm run test:unit and npm run test:integ
  • I ran npm run typecheck
  • I ran npm run lint
  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

Adds a `description` field to each configuration entry written to
agentcore.json. KB configurations are pre-populated with the API
operation description from the Smithy model; web-search is left
empty for customers to fill in. The CDK construct passes non-empty
descriptions through to CloudFormation.
@nborges-aws nborges-aws requested a review from a team July 9, 2026 15:21
@github-actions github-actions Bot added size/xs PR size: XS agentcore-harness-reviewing AgentCore Harness review in progress labels Jul 9, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Jul 9, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Jul 9, 2026
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.23.0.tgz

How to install

gh release download pr-1721-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-0.23.0.tgz

@agentcore-cli-automation agentcore-cli-automation left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Small, focused change that surfaces the description field in agentcore.json.

A few things I looked at that turned out to be fine:

  • Type vs. schema mismatch: ConfigurationEntry.description is required (string) in translators.ts, while the zod schema (mcp.ts) marks it optional(). Not a real bug — ConfigurationEntry is only used as the return type of translateConnector (which always populates it), never as an input read from parsed config. Backward-compatible for existing hand-edited files.
  • Empty string for web-search: Writing description: '' results in an explicit "description": "" entry in agentcore.json. This matches the PR's stated intent (surface the field so customers can fill it in) and is covered by the new integ assertion.
  • Telemetry: No new command / user-facing event, so no new instrumentation needed per src/cli/telemetry/README.md.
  • Mocking: No new mocks introduced.

@github-actions github-actions Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Jul 9, 2026
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 39.58% 14651 / 37014
🔵 Statements 38.84% 15613 / 40192
🔵 Functions 33.65% 2493 / 7408
🔵 Branches 33.1% 9734 / 29407
Generated in workflow #4050 for commit 58eeec6 by the Vitest Coverage Report Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants