Skip to main content
Glama
contextstream

ContextStream MCP Server

generate_rules

Create AI rule files for code editors to configure ContextStream's persistent memory and code intelligence features within development projects.

Instructions

Generate AI rule files for editors (Cursor, Cline, Kilo Code, Roo Code, Claude Code, Aider). Defaults to the current project folder; no folder_path required when run from a project. Supported editors: codex, cursor, cline, kilo, roo, claude, aider, antigravity

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folder_pathNoAbsolute path to the project folder (defaults to IDE root/cwd)
editorsNoWhich editors to generate rules for. Defaults to all.
workspace_nameNoWorkspace name to include in rules
workspace_idNoWorkspace ID to include in rules
project_nameNoProject name to include in rules
additional_rulesNoAdditional project-specific rules to append
modeNoRule verbosity: bootstrap (~15 lines, recommended), minimal (~80 lines), full (~600 lines)bootstrap
overwrite_existingNoOverwrite ContextStream block in existing rule files (default: true). User content outside the block is preserved.
apply_globalNoAlso write global rule files for supported editors
install_hooksNoInstall Claude Code hooks to enforce ContextStream-first search. Defaults to true for Claude users. Set to false to skip.
include_pre_compactNoInclude PreCompact hook for automatic state saving before context compaction. Defaults to true.
dry_runNoIf true, return content without writing files

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/contextstream/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server