Skip to content

oce

otc-awesome-llm is the Optum LLM library providing version-controlled prompts, chatmodes, instructions, and agent modes for infrastructure operations via native IDE integrations

v11.3.0
Claude Code

By Thomas Hudak ([email protected])

Plugin Structure

🤖
0
Agents
0
Skills
⌨️
1
Commands
🪝
0
Hooks
📋
0
Rules

Installation

Install this plugin using the Claude Code CLI:

claude plugin install oce@otc-awesome-llm

Verification

After installation, verify the plugin is loaded:

claude plugin list

Documentation

oce (Optum Context Engine)

Version: 1.0.0 Description: Claude Code plugin providing MCP tools for the Optum Context Engine (OCE) -- an enterprise RAG platform that retrieves context from 12 internal knowledge sources.

OCE is a context retrieval engine, not a chatbot. It works like Context7 but for Optum/UHG enterprise knowledge: send a query, get back assembled context with citations from HcpDocs, ITSM, GitHub, PRM, and 8 other source systems.

Prerequisites

  • python3 (3.10+) available on PATH
  • Python packages: httpx, pyyaml, mcp
  • OCE API client credentials (OAuth2 client ID and secret)

Setup

1. Install Python Dependencies

pip install -r claude-code/plugins/oce/src/requirements.txt

2. Configure Authentication

Option A -- Environment variables:

export OCE_CLIENT_ID='your-client-id'
export OCE_CLIENT_SECRET='your-client-secret'  # pragma: allowlist secret

Option B -- Config file (~/.claude/oce.local.md):

---
client_id: your-client-id
client_secret: your-client-secret  # pragma: allowlist secret
---

Contact the OCE team for client credentials.

3. Register the MCP Server

Add to your Claude Code config.json (typically ~/.claude/config.json or .claude/config.json):

{
  "mcpServers": {
    "oce-context-engine": {
      "type": "stdio",
      "command": "python3",
      "args": ["claude-code/plugins/oce/src/mcp_server.py"]
    }
  }
}

MCP Tools

ToolDescription
query_context_engineQuery OCE for enterprise knowledge with optional source targeting
list_context_sourcesList all 12 available knowledge sources
list_context_configurationsList saved OCE configurations
list_context_modelsList available LLM models
get_context_sessionRetrieve a previous session's messages and citations

Commands

CommandDescription
/oce-adminManage OCE applications, configurations, templates, and models

Available Knowledge Sources

SourceDescription
hcp-docsHCP platform documentation and runbooks
hiveEnterprise knowledge base articles
dojo360Application and service metadata
githubSource code repositories and README files
itsmServiceNow incidents, changes, and problems
account-managerAccount and subscription details
infraredInfrastructure inventory and topology
prmProblem and risk management records
infrastructure-costCloud spend and cost analysis
techlandscapeTechnology governance and standards
techops-hubOperational procedures and playbooks
kubernetesCluster, namespace, and workload information

Usage Examples

Basic enterprise query

Claude automatically uses OCE when you ask about enterprise topics:

"How do I configure Azure Private DNS zones for HCP?"

Targeted source query

Specify sources for more focused results:

"Search HCP docs and TechOpsHub for the VM patching runbook"

This maps to:

query_context_engine(
    query="VM patching runbook",
    sources=["hcp-docs", "techops-hub"]
)

Follow-up queries

Use session context for deeper exploration:

# First query
query_context_engine(query="What is the HCP backup strategy?")
# Returns session_id: "abc-123"

# Follow-up in same context
query_context_engine(
    query="What about disaster recovery?",
    session_id="abc-123"
)

Administrative tasks

/oce-admin status
/oce-admin models list
/oce-admin configs list
/oce-admin sources

Architecture

Claude Code
    |
    v
MCP Server (mcp_server.py)  <-- stdio transport
    |
    v
OCE Client (oce_client.py)  <-- OAuth2 + httpx
    |
    v
OCE API (api.uhg.com)       <-- RAG platform
    |
    v
12 Knowledge Sources         <-- HcpDocs, ITSM, GitHub, ...

The MCP server translates tool calls into OCE API requests. The sources parameter on query_context_engine is mapped to OCE's chatSettings agent/plugin configuration to scope queries to relevant knowledge sources.