Skip to content

Add session/user context to tool calls #8

@kashifpk

Description

@kashifpk

Description

Add session and user context to tool calls so stateful MCP servers can isolate data per user.

Tasks

  • Generate unique session_id for each conversation
  • Accept user_id from UI connection (or generate if anonymous)
  • Create context object with session_id and user_id
  • Include context in all tool call requests to Armory
  • Pass context through MCP protocol

Context Structure

{
    "session_id": "sess_abc123",
    "user_id": "user_456",
    "created_at": "2024-01-15T10:30:00Z"
}

Acceptance Criteria

  • Each conversation has unique session_id
  • User context flows through to Armory
  • Context is included in MCP tool invocations

Metadata

Metadata

Assignees

No one assigned

    Labels

    M6: StatefulMilestone 6: Stateful MCP ServersPost-MVPDeferred to post-MVP phase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions