Skip to content

Conversation

@bokelley
Copy link
Contributor

Summary

Fixes the issue where sales agents showed "0 properties" despite having publishers registered. Clicking on agent cards already worked correctly.

Root Cause

The PropertiesService was using legacy createMCPClient() and createA2AClient() functions which had SSE (Server-Sent Events) compatibility issues, and checking for result.status === "success" when the new API returns "completed".

Changes

  • ✅ Upgraded @adcp/client from 2.4.1 to 2.5.5
  • ✅ Migrated PropertiesService to use new AgentClient API
  • ✅ Fixed status check to handle "completed" status from executeTask
  • ✅ Use correct AgentConfig fields (agent_uri instead of url, added name field)

Testing

Verified that:

  • Weather Sales Agent now correctly displays weather.com publisher (1 property)
  • AdCP Test Sales Agent shows 0 properties (agent legitimately returns empty)
  • AccuWeather Agent shows appropriate error
  • Agent card navigation works as expected

Files Modified

  • package.json - Updated @adcp/client dependency
  • package-lock.json - Dependency lock file
  • server/src/properties.ts - Migrated to new AgentClient API

🤖 Generated with Claude Code

Fixes issue where sales agents showed "0 properties" despite having publishers registered.

Changes:
- Upgrade @adcp/client from 2.4.1 to 2.5.5
- Migrate PropertiesService to use new AgentClient API
- Fix status check to handle "completed" status from executeTask
- Use correct AgentConfig fields (agent_uri, name)

Results:
- Weather Sales Agent now correctly displays weather.com publisher
- Properties fetching works reliably with MCP and A2A protocols

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants