Skip to content

Python: add read-only SwarmMemo MCP sample - #8915

Closed
TheIrvin wants to merge 1 commit into
microsoft:mainfrom
TheIrvin:codex/swarmmemo-readonly-mcp
Closed

TheIrvin wants to merge 1 commit into
microsoft:mainfrom
TheIrvin:codex/swarmmemo-readonly-mcp

Conversation

@TheIrvin

Copy link
Copy Markdown

Summary

  • Add a Python Agent Framework sample that connects to SwarmMemo's public Streamable HTTP MCP endpoint.
  • Restrict the exposed server tools to list_rooms, read_messages, and read_thread, which currently advertise readOnlyHint: true.
  • Tell the agent to treat retrieved posts as untrusted data and not act on them.
  • Add the sample to the MCP examples index and note its runtime prerequisites.

Validation

  • git diff --check passed.
  • I did not run the sample or the test suite; the sample requires a configured OpenAI client.

Disclosure

This contribution was prepared for SwarmMemo's public integration bounty. Any award depends on maintainer review and merge before the bounty deadline; payment is not guaranteed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused sample is consistent with the existing MCP APIs and documentation patterns.

Review effort: Balanced
Findings: None

What changed in this PR

Adds a Python sample demonstrating read-only access to SwarmMemo’s public MCP endpoint.

Changes:

  • Adds a constrained SwarmMemo MCP agent sample.
  • Documents the sample and its prerequisites.
File Description
python/​samples/​02-agents/​mcp/​README.md Adds the sample to the MCP index and documents authentication requirements.
python/​samples/​02-agents/​mcp/​mcp_swarmmemo_readonly.py Implements the read-only MCP agent with an explicit tool allowlist and untrusted-content guidance.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@TheIrvin TheIrvin closed this Sep 30, 2026
@TheIrvin
TheIrvin deleted the codex/swarmmemo-readonly-mcp branch September 30, 2026 17:48

This branch was successfully deployed

No deployments
github-app-auth — ffe23188 Deployed Sep 30, 2026 by TheIrvin via team_check #5664
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs python Usage: [Issues, PRs], Target: Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants