Skip to main content
Connect the pctx gateway, finish OAuth sign-in, and verify that your agent can reach the workspace.

Before you start

You need:
  • A Port of Context account
  • An MCP-compatible agent
  • Access to the services your workspace has enabled
The fastest path is to paste Set up pctx.ai/onboard.md into an agent with shell access. It can connect the gateway and inspect your existing MCP configuration.

Connect your agent

The gateway is a remote HTTP MCP server at https://mcp.pctx.ai/mcp.
Terminal
Start a new Codex session if the tools do not appear after sign-in.

Verify the connection

Ask the agent to inspect the gateway before giving it real work.

Verify Port of Context

A working connection lists Port of Context tools and returns information from your workspace. If you see an authentication error, reconnect from your client and finish signing in in the browser.

Scan existing MCP servers

The platform CLI can find MCP servers already configured across supported local agents. The scan is read-only.
1

Download the installer

Download the script to a temporary file. Do not pipe it directly into a shell.
Terminal
2

Sign in

Terminal
3

Run the scan

Terminal
The result lists services, the agents or repository files that configure them, and repeated configurations. Localhost servers are excluded from this scan.
pctx mcp configure can enable workspace connectors and edit local agent configuration. Review its plan before applying it.

Next: MCP gateway

Learn what the gateway exposes and how an agent chooses the right source.