Skip to content
Back to skills

Run Agent Tool Calls Through Pctx Code Mode And Unified Mcp

ASecurity

Put pctx between agents and tools so MCP servers and custom tools can run through a code-oriented execution layer instead of one-off tool calls.

  • 36 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentspythongobashgitsecuritydocumentation

Works with

  • cli
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 2, 2026

npx -y skills add agentskillexchange/skills --skill run-agent-tool-calls-through-pctx-code-mode-and-unified-mcp --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Run Agent Tool Calls Through Pctx Code Mode And Unified Mcp?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Run Agent Tool Calls Through Pctx Code Mode And Unified Mcp
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-run-agent-tool-calls-through-pctx-code-mode-and-un/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-run-agent-tool-calls-through-pctx-code-mode-and-un)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Run agent tool calls through pctx Code Mode and unified MCP"
slug: "run-agent-tool-calls-through-pctx-code-mode-and-unified-mcp"
description: "Put pctx between agents and tools so MCP servers and custom tools can run through a code-oriented execution layer instead of one-off tool calls."
github_stars: 264
verification: "security_reviewed"
source: "https://github.com/portofcontext/pctx"
author: "Port of Context"
publisher_type: "organization"
category: "Developer Tools"
framework: "MCP"
tool_ecosystem:
  github_repo: "portofcontext/pctx"
  github_stars: 264
  npm_package: "@portofcontext/pctx"
  npm_weekly_downloads: 285
---

# Run agent tool calls through pctx Code Mode and unified MCP

Put pctx between agents and tools so MCP servers and custom tools can run through a code-oriented execution layer instead of one-off tool calls.

## Prerequisites

pctx CLI, Python SDK or npm package, MCP-compatible client or OpenAI Agents SDK

## Installation

Install the pctx CLI and the client library that matches your agent stack:

```bash
brew install portofcontext/tap/pctx
npm i -g @portofcontext/pctx
pip install pctx-client
```

Use the Python client when building Python agents that call pctx as an HTTP service. Use the npm package or Homebrew CLI when you want pctx available as a local command for Code Mode or MCP setup. Existing Homebrew installs can be updated separately with `brew upgrade pctx`; do not treat that as the first-install path.

Basic setup:

```bash
pctx start
pctx mcp init
```

Run pctx as the boundary between your agent and registered tools/MCP servers. Keep the MCP server list explicit, review which tools are exposed through Code Mode, and avoid giving the bridge broader filesystem or network access than the workflow needs.

## Documentation

- https://github.com/portofcontext/pctx

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/run-agent-tool-calls-through-pctx-code-mode-and-unified-mcp/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…