sync_context_files

Sync all context files (claude.md, gemini.md, agents.md, .cursor/context.md) without closing the session. Useful for mid-session syncs.

Server MCP Session Closer tylarcam/mcp-session-closer
Category Write
Risk class Medium
Parameters 00 required

What sync_context_files does on MCP Session Closer

AI agents use sync_context_files to create or update resources in MCP Session Closer — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your MCP Session Closer environment.

Why sync_context_files needs a policy

This tool modifies context files and syncing operations across multiple files (claude.md, gemini.md, agents.md, .cursor/context.md), which constitute Write operations. The changes are committed to git and reversible through standard version control.

From the tool's definition Tool performs 'sync all context files' and 'update Agent OS files' - operations that modify stored data. The server description explicitly mentions 'updating Agent OS files' and 'automatically committing changes to git', indicating reversible data…

Questions about sync_context_files

What does the sync_context_files tool do? +

Sync all context files (claude.md, gemini.md, agents.md, .cursor/context.md) without closing the session. Useful for mid-session syncs. It is categorised as a Write tool in the MCP Session Closer MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

How do I enforce a policy on sync_context_files? +

Register the MCP Session Closer MCP server in PolicyLayer and add a rule for sync_context_files: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches MCP Session Closer. Nothing to install.

What risk level is sync_context_files? +

sync_context_files is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit sync_context_files? +

Yes. Add a rate_limit block to the sync_context_files rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block sync_context_files completely? +

Set action: deny in the PolicyLayer policy for sync_context_files. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides sync_context_files? +

sync_context_files is provided by the MCP Session Closer MCP server (tylarcam/mcp-session-closer). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// THE FULL RECORD

sync_context_files is one line of MCP Session Closer's registry record.

The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.