Skip to content

chore: repo rename path fix + gitignore jwk/jwt#4

Merged
beonde merged 2 commits into
mainfrom
docs/product-branding
Mar 13, 2026
Merged

chore: repo rename path fix + gitignore jwk/jwt#4
beonde merged 2 commits into
mainfrom
docs/product-branding

Conversation

@beonde

@beonde beonde commented Mar 13, 2026

Copy link
Copy Markdown
Member

Summary

Post-rebase cleanup — the langchain rewrite and product branding were already merged via PRs #2 and #3. This PR carries only the remaining changes:

  • Repo rename: Update dev path in requirements.txt after capiscio-langchainlangchain-capiscio rename
  • Security: Add *.jwk and *.jwt to .gitignore to prevent key/token leaks

Changes

File What
.gitignore Add *.jwk, *.jwt patterns
agents/langchain-agent/requirements.txt Fix dev install path

Copilot AI review requested due to automatic review settings March 13, 2026 21:17

Copilot AI 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.

Pull request overview

Updates demo documentation and the LangChain agent to reflect new product branding and a new langchain-capiscio-based integration, plus a small security hardening for accidental credential/key commits.

Changes:

  • Rebrand docs to “MCP Guard” / “Agent Guard” naming across READMEs.
  • Refactor agents/langchain-agent/main.py to use langchain_capiscio guard + callback handler and adjust middleware wiring.
  • Add *.jwk and *.jwt patterns to .gitignore.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
mcp-demo/README.md Renames demo heading to “MCP Guard Demo”.
agents/langchain-agent/requirements.txt Updates CapiscIO-related dependency notes (but currently missing the new package as an actual dependency).
agents/langchain-agent/main.py Rewrites LangChain agent to use langchain_capiscio guard/callbacks and adjusts FastAPI middleware + lifecycle.
README.md Updates top-level branding/section names and architecture diagram labels.
.gitignore Ignores JWK/JWT artifacts to reduce accidental secret commits.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +240 to 247
if CAPISCIO_AVAILABLE and CapiscioMiddleware and guard:
security_config = SecurityConfig.from_env()
logger.info(f"Security config: fail_mode={security_config.fail_mode}, "
f"require_signatures={security_config.downstream.require_signatures}")

# Create guard for middleware (dev_mode auto-generates keys when no agent-card.json)
_guard = SimpleGuard(
dev_mode=(SECURITY_MODE == "dev"),
base_dir=os.path.dirname(os.path.abspath(__file__)),
)
app.add_middleware(
CapiscioMiddleware,
guard=_guard,
guard=lambda: _resolved_simple_guard,
config=security_config,
exclude_paths=["/.well-known/agent.json", "/health"],
)
Comment on lines +98 to +106
guard: Optional["CapiscioGuard"] = (
CapiscioGuard(
mode="log",
connect_kwargs={
"dev_mode": SECURITY_MODE == "dev",
"keys_dir": KEYS_DIR,
"agent_card": AGENT_CARD,
},
)
@beonde beonde force-pushed the docs/product-branding branch from 2da5b30 to a045223 Compare March 13, 2026 21:21
@beonde beonde changed the title docs: product branding, langchain-capiscio rewrite & security gitignore chore: repo rename path fix + gitignore jwk/jwt Mar 13, 2026
@beonde beonde merged commit 97d74b3 into main Mar 13, 2026
10 checks passed
@beonde beonde deleted the docs/product-branding branch March 13, 2026 21:26
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