Skip to content

v27: MCP integration and documentation#27

Merged
wenaus merged 2 commits into
mainfrom
infra/baseline-v27
Jan 8, 2026
Merged

v27: MCP integration and documentation#27
wenaus merged 2 commits into
mainfrom
infra/baseline-v27

Conversation

@wenaus
Copy link
Copy Markdown
Member

@wenaus wenaus commented Jan 8, 2026

Summary

  • Add MCP server configuration (.mcp.json) for Claude Code auto-discovery
  • Document MCP integration and SSL setup for BNL/SDCC servers
  • Update bootstrap.md: MCP complete, orchestration next
  • Various workflow and namespace improvements from v26

Changes

  • MCP endpoint documented at /swf-monitor/mcp/
  • SSL certificate setup for NODE_EXTRA_CA_CERTS
  • Bootstrap updated with MCP tool inventory

Test plan

  • MCP tools working via Claude Code
  • Deploy script successful
  • Health check passed

🤖 Generated with Claude Code

wenaus and others added 2 commits January 7, 2026 15:03
BaseAgent.send_message() now logs warning if namespace not configured,
making silent failures visible.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Agents now report status='EXITED' before disconnecting from ActiveMQ.
This distinguishes clean exits from crashes (which leave status='OK'
with stale heartbeat).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings January 8, 2026 20:33
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 8, 2026

Test Coverage Summary

-------------------------------------------------------------------
src/swf_common_lib/__init__.py            0      0   100%
src/swf_common_lib/api_utils.py          53     53     0%   8-124
src/swf_common_lib/base_agent.py        337    337     0%   5-622
src/swf_common_lib/config_utils.py       30     30     0%   7-102
src/swf_common_lib/logging_utils.py      33      0   100%
src/swf_common_lib/rest_logging.py       76     76     0%   8-157
-------------------------------------------------------------------
TOTAL                                   529    496     6%
============================== 5 passed in 0.23s ===============================

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds agent lifecycle tracking and namespace configuration warnings to improve monitoring and multi-tenant deployments. The changes focus on workflow agent improvements from v26, though the PR description mentions MCP integration and documentation that are not visible in the provided diff.

Key changes:

  • Exit status reporting when agents shut down for better lifecycle tracking
  • Namespace configuration warnings to guide proper multi-tenant setup

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +413 to +417
else:
logging.warning(
f"Sending message without namespace (msg_type={message_body.get('msg_type', 'unknown')}). "
"Configure namespace in testbed.toml to enable namespace filtering."
)
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

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

This warning will be logged on every message sent when namespace is not configured. For deployments that intentionally don't use namespaces (which is valid since config_path is optional), this creates excessive log noise. Consider either: (1) logging this once during initialization instead of on every send_message call, (2) changing to logging.debug() or logging.info() level since it's informational rather than a warning about a problem, or (3) adding a flag to suppress repeated warnings.

Copilot uses AI. Check for mistakes.
@wenaus wenaus merged commit 81821b1 into main Jan 8, 2026
9 checks passed
@wenaus wenaus deleted the infra/baseline-v27 branch January 8, 2026 20:38
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