← Glean-ia-acs Β· Day 52 of 56
Level 500 β€” Pro Β· agents & governance30 minNIST MAP

IDE Plugins: Glean in Claude Code and Cursor via MCP

Bringing the enterprise graph into the editor

You'll be able to

Read first

Day 3 Lab

  1. Confirm your IDE supports MCP servers (Claude Code and Cursor both do) and find where it stores MCP config.
  2. Add Glean as a server, reusing the scoped token from Day 2 via the environment.
  3. Reload the IDE and verify Glean's tools appear in the available tool list.
  4. Ask a question that needs company context, and confirm the results are ones YOU are allowed to see β€” not the IDE's, not a teammate's.

Working Example: Glean MCP Server in the IDE

Because Claude Code and Cursor are MCP hosts, Glean connects through the same MCP server entry β€” only the file location differs per editor. Retrieval still runs as the authenticated user, so the IDE inherits your access, never more. The token comes from the environment. Verified against mcp.

{
  "mcpServers": {
    "glean": {
      "type": "http",
      "url": "https://<your-instance>-be.glean.com/mcp/default",
      "headers": {
        "Authorization": "Bearer ${GLEAN_MCP_TOKEN}"
      }
    }
  }
}

This is a MAP step: name what the editor can now reach. The IDE does not get its own privileges β€” Glean resolves the token to you and returns only what your permissions allow. Map that boundary before you trust the editor with sensitive queries. Verified against mcp.

Check for understanding

After adding Glean in your IDE, whose permissions decide what the editor can retrieve?

Check yourself

Pick an answer β€” you'll see if it's right and why.

1. Glean describes three agent run-modes. Which list matches them?

2. When a host connects to Glean's MCP server with a scoped token, what happens to access?

3. In a guarded multi-tool agent loop, what is the job of the pre-action gate?

4. Across CrewAI, Google ADK, LangGraph, and the OpenAI Agents SDK, what does every Glean tool have in common?

5. Which statement about this curriculum is accurate?

Pass threshold 80% Β· week 8 quiz

In 10 seconds

β€œClaude Code and Cursor speak MCP, so the same Glean server you wired yesterday drops straight into the editor. Your code questions now reach the enterprise graph β€” scoped to your identity, not the IDE's.”

Next Β· Week 8 Day 4
The Agent Toolkit: CrewAI, ADK, LangGraph, OpenAI on Glean