Y2 Elite workspaces are rolling out for teams
Y2Y2Docs

Local MCP Reference

Tools, environment variables, and errors for the local Y2 MCP server

This reference covers @y2-intel/mcp version 0.2.0. The package is released separately from the platform. Inspect tools/list, resources/list, and prompts/list for your installed version. Follow local MCP setup to connect a client.

OpenAPI tools

ToolPurposeAuthorization
y2_list_api_operationsList operation IDs, methods, and pathsNone
y2_get_openapi_operationRead one operation's parameters and schemasNone
y2_call_apiCall an operation using its OpenAPI definitionOperation-specific scopes

Typed read tools

GroupCountResources
Reports7Reports, signals, graphs, text, audio, and transcripts
News3Items, recaps, and feeds
OSINT18Events, country intelligence, maps, feeds, and source status
Intel v213Incidents, entities, graphs, markets, indicators, signals, cyber, changes, and knowledge
Account and workflow7Profiles, webhooks, Projects, Automations, and runs
Public receipts1y2_get_x402_receipt

Each authenticated call needs the underlying API operation's scope. Use tools/list for exact tool names and input schemas.

Resources and prompts

TypeNames
Resourcesy2://docs/index, y2://docs/full, y2://openapi, y2://quickstart
Promptsintegrate-y2-api, ask-y2-brief, debug-y2-api-call

Optional action tools

Y2_MCP_ENABLE_WRITE_TOOLS=true adds 14 typed write tools:

  • Profile create, update, patch, and delete
  • Project create and patch
  • Automation create, patch, and run
  • Webhook create, update, delete, and test
  • Subscription delivery update

Each tool requires its operation's scope. Y2_MCP_ENABLE_AGENT=true adds y2_ask_agent and requires agent:y2.

Agent Y2 can change resources

Agent Y2 can use tools allowed by the key's scopes and plan. Enable it only when the integration needs those actions.

Configuration

Prop

Type

Both flags accept true or 1. Restart the client after changing them. Change base URLs only for a Y2-controlled test or development environment.

Troubleshooting

SymptomAction
Server exits immediatelyRun npx -y @y2-intel/[email protected] in a terminal. Inspect stderr
Client does not show Y2Confirm that the configuration was saved. Restart the client
401Check the key for missing, invalid, revoked, or expired credentials
403Check the key's scopes, workspace access, and plan. Edit its scopes if needed
429, 502, 503, or 504The server retries twice and honors Retry-After. Check the returned error after retries stop
Agent tool is missingSet Y2_MCP_ENABLE_AGENT=true. Restart the client and inspect tools/list
Typed write tool is missingSet Y2_MCP_ENABLE_WRITE_TOOLS=true. Restart the client and inspect tools/list
Agent credit errorCheck the workspace Agent Y2 balance and plan. Agent Y2 does not use x402