
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
TypeScript client for the Scope3 Agentic API with AdCP webhook support.
@modelcontextprotocol/sdk) with HTTP streaming transportArchitecture: This client uses the official @modelcontextprotocol/sdk to connect to the Scope3 MCP server at https://api.agentic.scope3.com/mcp via Streamable HTTP transport. This uses HTTP POST for sending messages and HTTP GET with Server-Sent Events for receiving messages, providing reliable bidirectional communication with automatic reconnection support.
npm install scope3
import { Scope3AgenticClient } from 'scope3';
const client = new Scope3AgenticClient({
apiKey: process.env.SCOPE3_API_KEY,
// Optional: specify environment (defaults to 'production')
environment: 'production', // or 'staging'
});
// List brand agents
const brandAgents = await client.brandAgents.list();
// Create a campaign
const campaign = await client.campaigns.create({
prompt: 'Create a video campaign targeting tech enthusiasts',
budget: {
amount: 5000000, // $50,000 in cents
currency: 'USD',
pacing: 'even',
},
});
The CLI dynamically discovers available commands from the API server, ensuring it's always up-to-date.
# Use with npx (no install needed)
npx scope3 --help
# Or install globally
npm install -g scope3
scope3 --help
# Configure authentication
scope3 config set apiKey your_api_key_here
# Configure environment (optional - defaults to production)
scope3 config set environment staging
# Or use environment variables
export SCOPE3_API_KEY=your_api_key_here
export SCOPE3_ENVIRONMENT=staging # or 'production'
# Or use command-line flags
scope3 --environment staging list-tools
# Discover available commands (80+ auto-generated)
scope3 list-tools
# Examples
scope3 brand-agent list
scope3 campaign create --prompt "Q1 2024 Spring Campaign" --brandAgentId 123
scope3 media-buy execute --mediaBuyId "buy_123"
# Switch environments on the fly
scope3 --environment production campaign list
scope3 --environment staging campaign list
Dynamic Updates: Commands automatically stay in sync with API changes. No manual updates needed!
const client = new Scope3AgenticClient({
apiKey: 'your-api-key',
// Option 1: Use environment (recommended)
environment: 'production', // 'production' or 'staging' (default: 'production')
// Option 2: Use custom base URL (overrides environment)
baseUrl: 'https://custom-api.example.com',
// Optional settings
timeout: 30000, // request timeout in ms
});
https://api.agentic.scope3.comhttps://api.agentic.staging.scope3.comThe client provides access to all Scope3 API resources:
await client.assets.upload({ brandAgentId, assets: [...] });
await client.assets.list({ brandAgentId });
await client.brandAgents.list();
await client.brandAgents.create({ name: 'My Brand' });
await client.brandAgents.get({ brandAgentId });
await client.brandAgents.update({ brandAgentId, name: 'Updated Name' });
await client.brandAgents.delete({ brandAgentId });
await client.campaigns.list({ status: 'ACTIVE' });
await client.campaigns.create({ prompt: '...', budget: {...} });
await client.campaigns.update({ campaignId, status: 'PAUSED' });
await client.campaigns.getSummary({ campaignId });
await client.campaigns.listTactics({ campaignId });
await client.campaigns.delete({ campaignId });
await client.creatives.list({ brandAgentId });
await client.creatives.create({ brandAgentId, name: '...' });
await client.creatives.assign({ creativeId, campaignId });
await client.tactics.list({ campaignId });
await client.tactics.create({ name: '...', campaignId });
await client.tactics.update({ tacticId, channelCodes: ['DIGITAL-AUDIO'] });
await client.mediaBuys.list({ tacticId });
await client.mediaBuys.create({
tacticId,
name: '...',
products: [{ mediaProductId, salesAgentId }],
budget: { amount: 1000000 },
});
await client.mediaBuys.execute({ mediaBuyId });
// List all agents (sales and outcome)
await client.agents.list();
await client.agents.list({ type: 'SALES' });
await client.agents.list({ type: 'OUTCOME' });
// Register a new agent
await client.agents.register({
type: 'SALES',
name: '...',
endpointUrl: '...',
protocol: 'MCP',
authenticationType: 'API_KEY',
});
// Get agent details
await client.agents.get({ agentId: '...' });
// Update agent
await client.agents.update({
agentId: '...',
name: 'Updated Name',
});
// Unregister agent
await client.agents.unregister({ agentId: '...' });
client.brandStandards - Brand safety standardsclient.brandStories - AI-powered audience definitionsclient.channels - Advertising channelsclient.notifications - System notificationsclient.products - Media product managementThe client includes an optional webhook server for handling AdCP events:
import { WebhookServer } from '@scope3/agentic-client';
const webhookServer = new WebhookServer({
port: 3000,
path: '/webhooks',
secret: process.env.WEBHOOK_SECRET, // optional
});
// Register event handlers
webhookServer.on('campaign.created', async (event) => {
console.log('Campaign created:', event.data);
});
webhookServer.on('media_buy.executed', async (event) => {
console.log('Media buy executed:', event.data);
});
// Catch all events
webhookServer.on('*', async (event) => {
console.log('Event received:', event.type);
});
// Start the server
await webhookServer.start();
console.log(`Webhook server running at ${webhookServer.getUrl()}`);
// Stop the server
await webhookServer.stop();
# Install dependencies
npm install
# Update schemas from upstream (downloads latest OpenAPI spec)
npm run update-schemas
# Type check without building
npm run type-check
# Build the project (includes type checking)
npm run build
# Run tests (includes pre-test type checking)
npm test
# Run linter
npm run lint
# Format code
npm run format
# Generate types from local OpenAPI spec
npm run generate-types
This client is fully typed with no any types:
openapi-typescripttsc --noEmit)To update types when the upstream API changes:
npm run update-schemas
This downloads the latest OpenAPI spec and regenerates TypeScript types.
This project uses Changesets for version management and automated NPM publishing.
When making changes that should be released, add a changeset:
npm run changeset
Follow the prompts to:
The changeset file will be committed with your PR.
When a PR with changesets is merged to main:
NPM Publishing: Packages are published as @scope3/agentic-client with public access.
Every PR to main must include a changeset. The CI will fail if no changeset is detected.
To bypass this check (for docs/config changes), create an empty changeset:
npm run changeset
# Select "patch" and leave the description empty
See the examples/ directory for more usage examples:
basic-usage.ts - Basic API usagecreate-campaign.ts - Campaign creation workflowwebhook-server.ts - Webhook server setupMIT
FAQs
Scope3 SDK - REST and MCP client for the Agentic Platform
The npm package scope3 receives a total of 25 weekly downloads. As such, scope3 popularity was classified as not popular.
We found that scope3 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.