For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://modelgates.ai/docs/_mcp/server.
Usage for Agents
Give your AI coding assistant the knowledge to work with the ModelGates Agent SDK
by installing our official modelgates-typescript-sdk skill from the
ModelGatesTeam/skills repository.
The skill covers both the Agent SDK (@modelgates/agent) and the Client SDKs (@modelgates/sdk).
When working with the Agent SDK, your AI assistant will focus on the agent features:
callModel, tool() definitions, stop conditions, streaming, and multi-turn conversations.
Quick Start
Claude Code
/plugin marketplace add ModelGatesTeam/skills/plugin install modelgates@modelgatesCursor
Add via Settings > Rules > Add Rule > Remote Rule (Github) with ModelGatesTeam/skills.
GitHub CLI
Requires GitHub CLI v2.90.0+. Works with Claude Code, Cursor, OpenCode, Codex, Gemini CLI, Windsurf, and many more agents:
gh skill install ModelGatesTeam/skills modelgates-typescript-sdkSupported AI Coding Assistants
The skill works with any AI coding assistant that supports the Agent Skills standard:
| Assistant | Status |
|---|---|
| Claude Code | Supported |
| Cursor | Supported |
| OpenCode | Supported |
| GitHub Copilot | Supported |
| Codex | Supported |
| Amp | Supported |
| Roo Code | Supported |
| Antigravity | Supported |
What the Skill Provides
Once installed, your AI coding assistant will have knowledge of:
- callModel API - The recommended approach for making AI model calls with full type safety and streaming support
- Tool Definitions - Creating tools with the
tool()helper and Zod schemas - Stop Conditions - Controlling agent loop termination with
stepCountIs,maxCost, and more - Streaming - Real-time token output within agent steps
- Multi-turn Conversations - Managing conversation state across turns
- Dynamic Parameters - Changing model, temperature, or tools between turns
Example Usage
After installing the skill, your AI assistant can help you with tasks like:
"Help me set up an ModelGates agent"
The assistant will know to use:
import { callModel } from '@modelgates/agent'; const response = await callModel({ model: 'anthropic/claude-sonnet-4', messages: [ { role: 'user', content: 'Hello!' } ]});"Add a tool to my agent"
The assistant understands the tool pattern:
import { callModel, tool } from '@modelgates/agent';import { z } from 'zod'; const searchTool = tool({ name: 'search', description: 'Search the web', inputSchema: z.object({ query: z.string() }), execute: async ({ query }) => { return { results: ['...'] }; },}); const result = await callModel({ model: 'anthropic/claude-sonnet-4', messages: [{ role: 'user', content: 'Search for TypeScript best practices' }], tools: [searchTool],});Repository
The skill source is available at: github.com/ModelGatesTeam/skills
Contributions and feedback are welcome.