Mengelola toolset MCP secara dinamis untuk mencegah LLM kewalahan dengan hanya mengaktifkan tool yang relevan sesuai permintaan melalui kontrol runtime atau startup statis.
Juga dikenal sebagai code-rabi/toolception
- Stars
- 6
- Tools
- 5
- Unduhan, 30 hari
- —
- Versi terbaru
- —
- Commit terakhir
- 5 Nov 2026
- Lisensi
- Apache-2.0
Apa itu Toolception MCP?
Toolception adalah MCP server. Mengelola toolset MCP secara dinamis untuk mencegah LLM kewalahan dengan hanya mengaktifkan tool yang relevan sesuai permintaan melalui kontrol runtime atau startup statis. Server ini menyediakan 5 tool, seperti enable_toolset, disable_toolset, list_toolsets.
Ringkasan dibuat dari README proyek
Tentang Toolception MCP server
Toolception memungkinkan Anda mengelola koleksi tool yang besar untuk AI agent dengan mengelompokkan fungsi ke dalam toolset yang mudah dikelola. Developer yang membangun MCP server kompleks dengan puluhan atau ratusan tool dapat menggunakan library ini untuk mencegah kebingungan LLM, pemborosan token, dan bentrokan nama. Library ini memungkinkan eksposur tool secara selektif, memastikan bahwa agent hanya melihat kapabilitas spesifik yang relevan dengan tugasnya saat ini.
Pengguna dapat memilih antara dua mode utama: DYNAMIC untuk kontrol runtime atau STATIC untuk startup yang dapat diprediksi. Dalam mode dynamic, client menggunakan meta-tools seperti enable_toolset dan disable_toolset untuk memuat tool sesuai permintaan, yang mendukung lazy loading dan mengurangi latensi prompt. Mode static memuat toolset tertentu atau semua set yang tersedia saat bootstrap. Library ini juga mendukung kontrol akses berbasis izin melalui HTTP headers atau pemetaan konfigurasi di sisi server, sehingga cocok untuk lingkungan multi-tenant di mana client yang berbeda memerlukan akses tool yang terisolasi. Library ini membutuhkan Node.js 25.3.0 atau versi terbaru dan terintegrasi dengan MCP TypeScript SDK serta Zod 4 untuk validasi skema.
Apa yang bisa Anda lakukan dengannya
- 1Mengurangi kebingungan tool pada LLMSeorang agent dapat mengaktifkan hanya toolset spesifik yang dibutuhkan untuk suatu tugas agar tidak kewalahan oleh katalog yang sangat besar.
- 2Implementasi keamanan multi-tenantBatasi akses tool sehingga pengguna atau client yang berbeda hanya dapat melihat toolset spesifik yang mereka memiliki izin untuk gunakan.
- 3Optimasi penggunaan token promptMinimalkan latensi dan konsumsi token dengan hanya memuat tool yang relevan alih-alih seluruh library.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Cara menginstal Toolception MCP
Format diverifikasi 10 Nov 2026Tambahkan ke CursorTambahkan ke GooseInstal Toolception MCP di Claude Code
$ claude mcp add toolception -- npx -y toolceptionInstal Toolception MCP di Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"toolception": {
"command": "npx",
"args": [
"-y",
"toolception"
]
}
}
}Instal Toolception MCP di VS Code
.vscode/mcp.json
{
"servers": {
"toolception": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"toolception"
]
}
}
}Instal Toolception MCP di VS Code CLI
$ code --add-mcp '{"name":"toolception","type":"stdio","command":"npx","args":["-y","toolception"]}'Instal Toolception MCP di Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"toolception": {
"command": "npx",
"args": [
"-y",
"toolception"
]
}
}
}Instal Toolception MCP di Codex
$ codex mcp add toolception -- npx -y toolceptionInstal Toolception MCP di Codex config.toml
~/.codex/config.toml
[mcp_servers.toolception] command = "npx" args = ["-y", "toolception"]
Instal Toolception MCP di Gemini CLI
$ gemini mcp add -s user toolception npx -- -y toolceptionInstal Toolception MCP di Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"toolception": {
"command": "npx",
"args": [
"-y",
"toolception"
]
}
}
}Tool Toolception MCP 5
Terdeteksi dari READMEenable_toolsetdisable_toolsetlist_toolsetsdescribe_toolsetlist_tools
| enable_toolset | — | |
| disable_toolset | — | |
| list_toolsets | — | |
| describe_toolset | — | |
| list_tools | — |
Konfigurasi
API_TOKENUSER_ID
| Nama | Deskripsi | Tipe |
|---|---|---|
| API_TOKEN | — | |
| USER_ID | — |
Pengecekan otomatis
Berjalan 12 Nov 2026Laporan lengkap →Lolos checks otomatis kami. Ini bukan audit keamanan: baca kodenya dan berikan server akses paling terbatas yang dibutuhkannya. Cara kerja checks
- Source repository terhubung dan dapat dijangkauLolos
- Lisensi open source (OSI)Lolos
- Ada commit atau release dalam satu tahun terakhirLolos
- Nama package tidak mirip dengan package populerLolos
- Remote endpoint menggunakan HTTPSTidak diperiksa
- Tools yang bersifat destruktif telah diberi labelLolos
- Tidak ada instruksi tersembunyi untuk modelLolos
- Tidak ada advisory kritis pada paket atau dependensinyaTidak diperiksa
README
Lihat di GitHubToolception – Dynamic MCP Tooling Library
Table of Contents
- When and why to use Toolception
- Starter guide
- Static startup
- Permission-based starter guide
- Permission configuration approaches
- Custom HTTP endpoints
- Per-session context
- API
- Permission-based client integration
- Permission-based security best practices
- Permission-based common patterns
- Client ID lifecycle
- Session ID lifecycle
- Tool types
- Startup modes
- License
When and why to use Toolception
Building MCP servers with dozens or hundreds of tools often harms LLM performance and developer experience:
- Too many tools overwhelm selection: Larger tool lists increase confusion and mis-selection rates.
- Token and schema bloat: Long tool catalogs inflate prompts and latency.
- Name collisions and ambiguity: Similar tool names across domains cause failures and fragile integrations.
- Operational overhead: Loading every tool up-front wastes resources; many tools are task-specific.
Toolception addresses this by grouping tools into toolsets and letting you expose only what’s needed, when it’s needed.
When to use Toolception
- Large or multi-domain catalogs: You have >20–50 tools or multiple domains (e.g., search, data, billing) and don’t want to expose them all at once.
- Task-specific workflows: You want the client/agent to enable only the tools relevant to the current task.
- Multi-tenant or policy needs: Different users/tenants require different tool access or limits.
- Per-session context: You need different context values (API tokens, user IDs) for each client session passed to module loaders.
- Permission-based access control: You need to enforce client-specific toolset permissions for security, compliance, or multi-tenant isolation. Each client should only see and access the toolsets they're authorized to use, with server-side or header-based permission enforcement.
- Collision-safe naming: You need predictable, namespaced tool names to avoid conflicts.
- Lazy loading: Some tools are heavy and should be loaded on demand.
Why Toolception helps
- Toolsets: Group related tools and expose minimal, coherent subsets per task.
- Dynamic mode (runtime control):
- Enable toolsets on demand via meta-tools (
enable_toolset,disable_toolset,list_toolsets,describe_toolset,list_tools). - Reduce prompt/tool surface area → better tool selection and lower latency.
- Lazy-load module-produced tools only when needed; pass shared
contextsafely to loaders. - Supports
tools.listChangednotifications so clients can react to updated tool lists.
- Enable toolsets on demand via meta-tools (
- Static mode (predictable startup):
- Preload known toolsets (or ALL) at startup for fixed pipelines and simpler environments.
- Keep only the required sets for your deployment footprint.
- Exposure policy:
- maxActiveToolsets: Cap concurrently active sets to prevent bloat.
- allowlist/denylist: Enforce which toolsets can be enabled.
- namespaceToolsWithSetKey: Default on; registers tools as
set.toolto avoid collisions and clarify intent.
- Operational safety:
- Central
ToolRegistryvalidates names and prevents collisions. ModuleLoadersare deterministic/idempotent for repeatable runs and caching.
- Central
Choosing a mode
- Prefer DYNAMIC when tool needs vary by task, you want tighter prompts, or you need runtime gating and lazy loading.
- Choose STATIC when your tool needs are stable and small, or when your client cannot (or should not) perform runtime enable/disable operations.
Typical flows
- Discovery-first (dynamic): Client calls
list_toolsets→ enables a set → calls namespaced tools (e.g.,core.ping). - Fixed pipeline (static): Server preloads named toolsets (or ALL) at startup; clients call
list_toolsand invoke as usual.
Starter guide
Step 1: Install
npm i toolception @modelcontextprotocol/server zod
Toolception 0.9 is built on MCP TypeScript SDK v2 (@modelcontextprotocol/server) and needs Zod 4 (zod ^4.6.7); Zod 3 schemas are rejected. Install the same versions toolception depends on, so your app and toolception share one copy of each. Toolception needs Node.js 25.3.0 or later.
Step 2: Import Toolception
import { createMcpServer } from "toolception";
Step 3: Define a toolset catalog
const catalog = {
quotes: { name: "Quotes", description: "Market quotes", modules: ["quotes"] },
};
Step 4: Define a tool
inputSchema should be a Zod 4 raw shape (or a Zod 4 object schema); toolception wraps a raw shape with z.object() before it calls McpServer.registerTool. A Zod 3 schema fails to enable its toolset with an E_VALIDATION error. A plain JSON Schema object (type: "object") also works: toolception registers it with the SDK's fromJsonSchema(), so clients see its properties and arguments are validated against it before your handler runs. A JSON Schema that does not compile (unknown type name, unresolved $ref, unsupported $schema dialect) fails the toolset's enable with an E_VALIDATION error that names the tool.
import { z } from "zod";
const quoteTool = {
name: "price",
description: "Return a fake price",
inputSchema: {
symbol: z.string(),
},
handler: async ({ symbol }: { symbol: string }) => ({
content: [{ type: "text", text: `${symbol}: 123.45` }],
}),
} as const;
Step 5: Provide module loaders
const moduleLoaders = {
quotes: async () => [quoteTool],
};
Step 6: (Optional) Configuration schema
const configSchema = {
$schema: "https://json-schema.org/draft/2020-12/schema",
type: "object",
properties: {
REQUIRED_PARAM: { type: "string", title: "Required Param" },
OPTIONAL_PARAM: { type: "string", title: "Optional Param" },
},
required: ["REQUIRED_PARAM"],
} as const;
Step 7: Create the MCP SDK server and start Toolception
import { McpServer } from "@modelcontextprotocol/server";
// You own the SDK server; pass a factory into Toolception (required in DYNAMIC mode)
const createServer = () =>
new McpServer({
name: "my-mcp-server",
version: "0.0.0",
}, { capabilities: { tools: { listChanged: true } } });
const { start, close } = await createMcpServer({
catalog,
moduleLoaders,
startup: { mode: "DYNAMIC" },
http: { port: 3000 },
createServer,
// configSchema, // uncomment to expose at /.well-known/mcp-config
});
await start();
Step 8: Graceful shutdown
process.on("SIGINT", async () => {
await close();
process.exit(0);
});
process.on("SIGTERM", async () => {
await close();
process.exit(0);
});
Static startup
Enable some or ALL toolsets at bootstrap. In STATIC mode every client gets its own server from createServer, with the startup toolsets already loaded:
import { McpServer } from "@modelcontextprotocol/server";
const staticCatalog = {
search: { name: "Search", description: "Search tools", modules: ["search"] },
quotes: { name: "Quotes", description: "Market quotes", modules: ["quotes"] },
};
// Load specific toolsets
createMcpServer({
catalog: staticCatalog,
startup: { mode: "STATIC", toolsets: ["search", "quotes"] },
http: { port: 3001 },
createServer: () =>
new McpServer({
name: "static-1",
version: "0.0.0",
}, { capabilities: { tools: { listChanged: false } } }),
});
// Load ALL toolsets
createMcpServer({
catalog: staticCatalog,
startup: { mode: "STATIC", toolsets: "ALL" },
http: { port: 3002 },
createServer: () =>
new McpServer({
name: "static-2",
version: "0.0.0",
}, { capabilities: { tools: { listChanged: false } } }),
});
Permission-based starter guide
Use createPermissionBasedMcpServer when you need to enforce client-specific toolset permissions. This is ideal for multi-tenant applications, security-sensitive environments, or when different clients should have different levels of access.
Step 1: Install
npm i toolception @modelcontextprotocol/server zod
Toolception 0.9 is built on MCP TypeScript SDK v2 (@modelcontextprotocol/server) and needs Zod 4 (zod ^4.6.7); Zod 3 schemas are rejected. Install the same versions toolception depends on, so your app and toolception share one copy of each.
Step 2: Import Toolception
import { createPermissionBasedMcpServer } from "toolception";
import { McpServer } from "@modelcontextprotocol/server";
Step 3: Define a toolset catalog
const catalog = {
admin: {
name: "Admin Tools",
description: "Administrative operations",
modules: ["admin"],
},
user: {
name: "User Tools",
description: "Standard user operations",
modules: ["user"],
},
};
Step 4: Define tools
const adminTool = {
name: "delete_user",
description: "Delete a user account",
inputSchema: {
userId: z.string().describe("User ID to delete"),
},
handler: async ({ userId }: { userId: string }) => ({
content: [{ type: "text", text: `User ${userId} deleted` }],
}),
} as const;
const userTool = {
name: "get_profile",
description: "Get user profile information",
inputSchema: {
userId: z.string().describe("User ID"),
},
handler: async ({ userId }: { userId: string }) => ({
content: [{ type: "text", text: `Profile for ${userId}: {...}` }],
}),
} as const;
Step 5: Provide module loaders
const moduleLoaders = {
admin: async () => [adminTool],
user: async () => [userTool],
};
Step 6: Choose permission approach
You have two options for managing permissions:
Header-Based Permissions:
- Use when you have an authentication gateway/proxy
- Permissions passed via HTTP headers
- Good for dynamic, frequently-changing permissions
- Requires external validation of headers
Config-Based Permissions:
- Use when you want server-side control
- Permissions defined in server configuration
- Better security (no client-provided permission data)
- Good for stable permission structures
Step 7: Create the permission-based MCP server
Option A: Header-Based Permissions
const createServer = () =>
new McpServer({
name: "permission-header-server",
version: "1.0.0",
}, { capabilities: { tools: { listChanged: false } } });
const { start, close } = await createPermissionBasedMcpServer({
catalog,
moduleLoaders,
permissions: {
source: "headers",
headerName: "mcp-toolset-permissions", // optional, this is default
},
http: { port: 3000 },
createServer,
});
await start();
Option B: Config-Based Permissions (Static Map)
const createServer = () =>
new McpServer({
name: "permission-config-server",
version: "1.0.0",
}, { capabilities: { tools: { listChanged: false } } });
const { start, close } = await createPermissionBasedMcpServer({
catalog,
moduleLoaders,
permissions: {
source: "config",
staticMap: {
"admin-client-id": ["admin", "user"],
"user-client-id": ["user"],
},
defaultPermissions: [], // unknown clients get no toolsets
},
http: { port: 3000 },
createServer,
});
await start();
Option C: Config-Based Permissions (Resolver Function)
const createServer = () =>
new McpServer({
name: "permission-resolver-server",
version: "1.0.0",
}, { capabilities: { tools: { listChanged: false } } });
const { start, close } = await createPermissionBasedMcpServer({
catalog,
moduleLoaders,
permissions: {
source: "config",
resolver: (clientId: string) => {
// Your custom permission logic
if (clientId.startsWith("admin-")) {
return ["admin", "user"];
}
if (clientId.startsWith("user-")) {
return ["user"];
}
return [];
},
defaultPermissions: [],
},
http: { port: 3000 },
createServer,
});
await start();
Step 8: Graceful shutdown
process.on("SIGINT", async () => {
await close();
process.exit(0);
});
process.on("SIGTERM", async () => {
await close();
process.exit(0);
});
Permission configuration approaches
Header-Based Permissions Setup
Use header-based permissions when you have an authentication gateway or proxy that validates and sets permission headers. This approach is flexible for dynamic permissions but requires external header validation.
import { createPermissionBasedMcpServer } from "toolception";
import { McpServer } from "@modelcontextprotocol/server";
const createServer = () =>
new McpServer({
name: "permission-header-server",
version: "1.0.0",
}, { capabilities: { tools: { listChanged: false } } });
const { start, close } = await createPermissionBasedMcpServer({
catalog: {
admin: {
name: "Admin",
description: "Admin tools",
modules: ["admin"],
},
user: {
name: "User",
description: "User tools",
modules: ["user"],
},
},
moduleLoaders: {
admin: async () => [
/* admin tools */
],
user: async () => [
/* user tools */
],
},
permissions: {
source: "headers",
headerName: "mcp-toolset-permissions", // optional, this is default
},
http: { port: 3000 },
createServer,
});
await start();
When to use:
- You have an authentication gateway/proxy that validates requests
- Permissions change frequently or are computed per-request
- You can ensure headers are cryptographically signed or validated
- Your auth system is external to the MCP server
Config-Based Permissions Setup (Static Map)
Use a static map when you have a fixed set of clients with known permissions. This provides server-side control and better security.
import { createPermissionBasedMcpServer } from "toolception";
import { McpServer } from "@modelcontextprotocol/server";
const createServer = () =>
new McpServer({
name: "permission-config-server",
version: "1.0.0",
}, { capabilities: { tools: { listChanged: false } } });
const { start, close } = await createPermissionBasedMcpServer({
catalog: {
admin: {
name: "Admin",
description: "Admin tools",
modules: ["admin"],
},
user: {
name: "User",
description: "User tools",
modules: ["user"],
},
},
moduleLoaders: {
admin: async () => [
/* admin tools */
],
user: async () => [
/* user tools */
],
},
permissions: {
source: "config",
staticMap: {
"admin-client-id": ["admin", "user"],
"user-client-id": ["user"],
},
defaultPermissions: [], // clients not in map get no toolsets
},
http: { port: 3000 },
createServer,
});
await start();
When to use:
- You have a fixed set of known clients
- Permissions are relatively stable
- You want the highest security level
- You want to avoid trusting client-provided data
Config-Based Permissions Setup (Resolver Function)
Use a resolver function when you need custom logic to determine permissions, such as looking up from a database or applying complex rules.
import { createPermissionBasedMcpServer } from "toolception";
import { McpServer } from "@modelcontextprotocol/server";
const createServer = () =>
new McpServer({
name: "permission-resolver-server",
version: "1.0.0",
}, { capabilities: { tools: { listChanged: false } } });
const { start, close } = await createPermissionBasedMcpServer({
catalog: {
admin: {
name: "Admin",
description: "Admin tools",
modules: ["admin"],
},
user: {
name: "User",
description: "User tools",
modules: ["user"],
},
},
moduleLoaders: {
admin: async () => [
/* admin tools */
],
user: async () => [
/* user tools */
],
},
permissions: {
source: "config",
resolver: (clientId: string) => {
// Custom logic - could check database, config file, etc.
if (clientId.startsWith("admin-")) {
return ["admin", "user"];
}
if (clientId.startsWith("user-")) {
return ["user"];
}
return [];
},
staticMap: {
// optional fallback
"special-client": ["admin"],
},
defaultPermissions: [],
},
http: { port: 3000 },
createServer,
});
await start();
When to use:
- You need custom permission logic
- Permissions are computed based on client ID patterns or attributes
- You want to integrate with existing permission systems
- You need fallback behavior with staticMap
Note: Resolver functions must be synchronous. If you need to fetch permissions from external sources, do so before server creation and cache the results.
Custom HTTP endpoints
Toolception supports custom HTTP endpoints alongside MCP protocol endpoints, enabling REST-like APIs with Zod validation and type inference.
Basic usage
import { createMcpServer, defineEndpoint } from "toolception";
import { z } from "zod";
const { start } = await createMcpServer({
// ... standard options
http: {
port: 3000,
customEndpoints: [
defineEndpoint({
method: "GET",
path: "/api/users",
querySchema: z.object({
limit: z.coerce.number().int().positive().default(10),
role: z.enum(["admin", "user"]).optional(),
}),
responseSchema: z.object({
users: z.array(z.object({ id: z.string(), name: z.string() })),
}),
handler: async (req) => {
// req.query is typed: { limit: number, role?: "admin" | "user" }
// req.clientId is available from mcp-client-id header
return { users: [{ id: "1", name: "Alice" }] };
},
}),
],
},
});
Validation schemas
- querySchema: Validates URL query parameters (use
z.coercefor type conversion) - bodySchema: Validates request body (POST/PUT/PATCH)
- paramsSchema: Validates path parameters (e.g.,
/users/:userId) - responseSchema: Validates handler response (prevents invalid data leakage)
Request context
Handlers receive a typed request object:
{
body: TBody, // Validated from bodySchema
query: TQuery, // Validated from querySchema
params: TParams, // Validated from paramsSchema
headers: Record<string, string | string[] | undefined>,
clientId: string, // From mcp-client-id header or auto-generated
}
Permission-aware endpoints
Use definePermissionAwareEndpoint in permission-based servers to access client permissions:
import { createPermissionBasedMcpServer, definePermissionAwareEndpoint } from "toolception";
const { start } = await createPermissionBasedMcpServer({
// ... permission config
http: {
customEndpoints: [
definePermissionAwareEndpoint({
method: "GET",
path: "/api/me",
responseSchema: z.object({
clientId: z.string(),
allowedToolsets: z.array(z.string()),
isAdmin: z.boolean(),
}),
handler: async (req) => {
// req.allowedToolsets and req.failedToolsets are available
return {
clientId: req.clientId,
allowedToolsets: req.allowedToolsets,
isAdmin: req.allowedToolsets.includes("admin-tools"),
};
},
}),
],
},
});
Error handling
Validation failures return standardized error responses:
- 400 VALIDATION_ERROR: Request validation failed (body, query, or params)
- 500 INTERNAL_ERROR: Handler threw an exception
- 500 RESPONSE_VALIDATION_ERROR: Response validation failed
Example error response:
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Validation failed for query",
"details": [
{
"code": "invalid_type",
"path": ["limit"],
"message": "Expected number, received string"
}
]
}
}
Reserved paths
Custom endpoints cannot override built-in MCP paths:
/mcp- MCP JSON-RPC endpoint/healthz- Health check/tools- Tool listing/.well-known/mcp-config- Configuration schema
Complete example
See examples/custom-endpoints-demo.ts for a full working example with GET, POST, PUT, DELETE endpoints, pagination, and permission-aware handlers.
Per-session context
Use the sessionContext option to enable per-client context values extracted from query parameters. This is useful for multi-tenant scenarios where each client needs different configuration (API tokens, user IDs, etc.) passed to module loaders.
Basic usage
import { createMcpServer } from "toolception";
import { McpServer } from "@modelcontextprotocol/server";
const { start } = await createMcpServer({
catalog: { /* ... */ },
moduleLoaders: { /* ... */ },
context: { baseValue: 'shared' }, // Base context for all sessions
sessionContext: {
enabled: true,
queryParam: {
name: 'config',
encoding: 'base64',
allowedKeys: ['API_TOKEN', 'USER_ID'], // Security: always specify
},
merge: 'shallow',
},
createServer: () => new McpServer({
name: "my-server",
version: "1.0.0",
}, { capabilities: { tools: { listChanged: true } } }),
http: { port: 3000 },
});
await start();
Client connection
# Encode session config as base64
CONFIG=$(echo -n '{"API_TOKEN":"user-secret-token","USER_ID":"123"}' | base64)
# Connect with session config
curl -X POST "http://localhost:3000/mcp?config=$CONFIG" \
-H "mcp-client-id: my-client" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"initialize",...}'
Module loader receives merged context
const moduleLoaders = {
tenant: async (ctx: any) => {
// ctx = { baseValue: 'shared', API_TOKEN: 'user-secret-token', USER_ID: '123' }
return [/* tools using ctx.API_TOKEN */];
},
};
Custom context resolver
For advanced use cases, provide a custom resolver function:
sessionContext: {
enabled: true,
queryParam: { allowedKeys: ['tenant_id'] },
contextResolver: (request, baseContext, parsedConfig) => ({
...baseContext,
...parsedConfig,
clientId: request.clientId,
timestamp: Date.now(),
}),
}
Security considerations
- Always specify
allowedKeys: Without a whitelist, any key in the query config is accepted - Fail-secure: Invalid encoding silently falls back to base context
- No logging of values: Session config values are never logged
- Filtered silently: Disallowed keys are filtered without error messages
API
Pertanyaan tentang Toolception MCP
Bagaimana cara menambahkan Toolception MCP ke Claude Code?
Jalankan claude mcp add toolception -- npx -y toolception di terminal Anda. Tambahkan --scope user agar tersedia di semua proyek.
Bagaimana cara menambahkan Toolception MCP ke Cursor?
Buka ~/.cursor/mcp.json dan tambahkan server di bawah mcpServers, menggunakan config Cursor yang ditunjukkan di bagian instalasi di atas.
Tool apa yang disediakan Toolception MCP?
Server ini menyediakan 5 tool, termasuk enable_toolset, disable_toolset, list_toolsets, describe_toolset, list_tools.
Apa perbedaan antara mode startup DYNAMIC dan STATIC?
Mode DYNAMIC memungkinkan pengaktifan toolset sesuai permintaan melalui meta-tools untuk efisiensi prompt yang lebih baik, sedangkan mode STATIC memuat toolset tertentu atau semua toolset saat startup untuk lingkungan yang lebih stabil.
Bisakah saya membatasi akses tool untuk pengguna yang berbeda?
Ya, dengan menggunakan kontrol akses berbasis izin, Anda dapat menerapkan izin toolset khusus client melalui HTTP headers atau pemetaan konfigurasi di sisi server.
Versi Zod apa yang dibutuhkan?
Toolception membutuhkan Zod 4 (khususnya ^4.6.7); skema Zod 3 tidak didukung dan akan menyebabkan error validasi.