Skip to content

Sample code for: MCP Server Security: How to Harden a Python MCP Server - #927

Open
lpozo wants to merge 1 commit into
masterfrom
mcp-server-security
Open

lpozo wants to merge 1 commit into
masterfrom
mcp-server-security

Conversation

@lpozo

@lpozo lpozo commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Where to put new files:

  • New files should go into a top-level subfolder, named after the article slug. For example: my-awesome-article

How to merge your changes:

  1. Make sure the CI code style tests all pass (+ run the automatic code formatter if necessary).
  2. Find an RP Team member on Slack and ask them to review & approve your PR.
  3. Once the PR has one positive ("approved") review, GitHub lets you merge the PR.
  4. 🎉

Code examples for the MCP Server Security: How to Harden a Python MCP Server tutorial. Files live in the mcp-server-security/ top-level folder, named after the article slug.

Verified locally on Python 3.14 with mcp==2.3.0, httpx2==2.16.0, and Bubblewrap 0.9.0: every script runs and prints the output the tutorial shows, and checklist.py was run both with and without bwrap. The secrets in demo_home/ are fake demo values.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

This branch has not been deployed

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

Labels

None yet

1 participant