Skip to main content
Glama
contextstream

ContextStream MCP Server

init

Start new conversation sessions by retrieving relevant context, recent decisions, and workspace information to provide AI assistants with project-specific background.

Instructions

Initialize a new conversation session and automatically retrieve relevant context. This is the FIRST tool AI assistants should call when starting a conversation. Returns: workspace info, project info, recent memory, recent decisions, relevant context, high-priority lessons, and ingest_recommendation.

The ingest_recommendation field indicates if the project needs indexing for code search:

  • If [INGEST_RECOMMENDED] appears, ask the user if they want to enable semantic code search

  • Benefits: AI-powered code understanding, dependency analysis, better context retrieval

  • If user agrees, run: project(action="ingest_local", path="<project_path>")

IMPORTANT: Pass the user's FIRST MESSAGE as context_hint to get semantically relevant context! Example: init(folder_path="/path/to/project", context_hint="how do I implement auth?")

This does semantic search on the first message. You only need context on subsequent messages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folder_pathNoCurrent workspace/project folder path (absolute). Use this when IDE roots are not available.
workspace_idNoWorkspace to initialize context for
project_idNoProject to initialize context for
session_idNoCustom session ID (auto-generated if not provided)
context_hintNoRECOMMENDED: Pass the user's first message here for semantic search. This finds relevant context from ANY time, not just recent items.
include_recent_memoryNoInclude recent memory events (default: true)
include_decisionsNoInclude recent decisions (default: true)
auto_indexNoAutomatically create and index project from IDE workspace (default: true)
allow_no_workspaceNoIf true, allow session_init to return connected even if no workspace is resolved (workspace-level tools may not work).
skip_project_creationNoIf true, skip automatic project creation/matching. Use for parent folders containing multiple projects where you want workspace-level context but no project-specific context.
is_post_compactNoControls context restoration from recent snapshots. Defaults to true (always restores). Set to false to skip restoration. Can also be controlled via CONTEXTSTREAM_RESTORE_CONTEXT environment variable.

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