pi-glean-mcp

Bridge Glean MCP server tools into Pi with configurable server URL and auto-connect.

Packages

Package details

extension

Install pi-glean-mcp from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-glean-mcp
Package
pi-glean-mcp
Version
0.1.4
Published
Aug 12, 2026
Downloads
145/mo · 12/wk
Author
notepad104
License
MIT
Types
extension
Size
20.4 KB
Dependencies
2 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-glean-mcp

Pi extension that bridges a Glean MCP server into Pi tools.

Install

pi install npm:pi-glean-mcp

Configure

Get your Glean MCP URL from:

On first session start, the extension will ask for the server URL if it is not configured yet.

You can also configure it manually:

/glean-setup https://<your-glean-host>/mcp/default

You can also choose scope:

/glean-setup https://<your-glean-host>/mcp/default global
/glean-setup https://<your-glean-host>/mcp/default project

Commands

  • /glean <message> — explicitly call the Glean MCP chat tool (glean_chat) and return the raw response in-session
  • /glean-setup <serverUrl> [global|project] — save URL and enable auto-connect
  • /glean-connect — connect now and register tools
  • /glean-reconnect — reconnect and refresh tools
  • /glean-off — disable glean_* tools for this session
  • /glean-autoconnect <on|off> [global|project] — toggle auto-connect
  • /glean-config — show effective config

Behavior

  • No default server URL is baked in.
  • On first initialization (when URL is missing), it prompts for server URL in TUI.
  • Auto-connects on session start when autoConnect=true and URL is configured.
  • Global config: ~/.pi/agent/glean-mcp.json
  • Project override: .pi/glean-mcp.json
  • Registered tools are prefixed as glean_<toolName>
  • glean_chat is always registered as the canonical chat entry point

/glean usage

/glean summarize the latest Android TV playback incidents from the last week

This hook directly invokes the MCP chat tool and prints the tool output back to the session.