@blockrun/mcp 0.6.9 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +23 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -105,10 +105,11 @@ var MODEL_TIERS = {
|
|
|
105
105
|
fast: ["google/gemini-2.5-flash", "google/gemini-3.1-flash-lite", "openai/gpt-5-mini", "deepseek/deepseek-chat", "google/gemini-3-flash-preview"],
|
|
106
106
|
balanced: ["openai/gpt-5.4", "anthropic/claude-sonnet-4.6", "google/gemini-2.5-pro", "openai/gpt-5.3", "google/gemini-3.1-pro"],
|
|
107
107
|
powerful: ["openai/gpt-5.4-pro", "anthropic/claude-opus-4.6", "anthropic/claude-opus-4.5", "openai/o3", "openai/gpt-5.4"],
|
|
108
|
-
cheap: ["nvidia/gpt-oss-120b", "nvidia/deepseek-v3.2", "google/gemini-2.5-flash", "deepseek/deepseek-chat", "openai/gpt-5.4-nano"],
|
|
108
|
+
cheap: ["zai/glm-5", "zai/glm-5-turbo", "nvidia/gpt-oss-120b", "nvidia/deepseek-v3.2", "google/gemini-2.5-flash", "deepseek/deepseek-chat", "openai/gpt-5.4-nano"],
|
|
109
109
|
reasoning: ["openai/o3", "openai/o1", "openai/o3-mini", "deepseek/deepseek-reasoner", "openai/gpt-5.3-codex"],
|
|
110
|
-
free: ["nvidia/gpt-oss-120b", "nvidia/deepseek-v3.2", "nvidia/nemotron-ultra-253b", "nvidia/nemotron-super-49b", "nvidia/qwen3-coder-480b", "nvidia/llama-4-maverick", "nvidia/gpt-oss-20b"],
|
|
111
|
-
coding: ["openai/gpt-5.3-codex", "nvidia/qwen3-coder-480b", "nvidia/devstral-2-123b", "anthropic/claude-sonnet-4.6", "openai/gpt-5.4"]
|
|
110
|
+
free: ["nvidia/gpt-oss-120b", "nvidia/deepseek-v3.2", "nvidia/nemotron-ultra-253b", "nvidia/nemotron-super-49b", "nvidia/qwen3-coder-480b", "nvidia/llama-4-maverick", "nvidia/gpt-oss-20b", "nvidia/glm-4.7"],
|
|
111
|
+
coding: ["zai/glm-5", "openai/gpt-5.3-codex", "nvidia/qwen3-coder-480b", "nvidia/devstral-2-123b", "anthropic/claude-sonnet-4.6", "openai/gpt-5.4"],
|
|
112
|
+
glm: ["zai/glm-5", "zai/glm-5-turbo", "nvidia/glm-4.7"]
|
|
112
113
|
};
|
|
113
114
|
|
|
114
115
|
// src/utils/qr.ts
|
|
@@ -398,17 +399,23 @@ function registerChatTool(server, budget) {
|
|
|
398
399
|
server.registerTool(
|
|
399
400
|
"blockrun_chat",
|
|
400
401
|
{
|
|
401
|
-
description: `Get a second opinion from another AI model, or use a specialized model for a specific task.
|
|
402
|
+
description: `Get a second opinion from another AI model, or use a specialized model for a specific task.
|
|
402
403
|
|
|
403
|
-
|
|
404
|
+
Notable modes:
|
|
405
|
+
- mode:"glm" \u2192 Zhipu GLM-5 / GLM-5-Turbo ($0.001/call, excellent for coding tasks, pays via USDC on BlockRun)
|
|
406
|
+
- mode:"coding" \u2192 GLM-5 first, then code-specialized models
|
|
407
|
+
- mode:"cheap" \u2192 GLM-5, NVIDIA free, DeepSeek
|
|
408
|
+
- mode:"reasoning" \u2192 o3, o1, DeepSeek-R1
|
|
409
|
+
- mode:"free" \u2192 NVIDIA models (no cost)
|
|
410
|
+
- routing:"smart" \u2192 auto-select via ClawRouter
|
|
404
411
|
|
|
405
|
-
|
|
412
|
+
Pick directly: model:"zai/glm-5", model:"openai/o3", model:"nvidia/deepseek-v3.2" (free).
|
|
406
413
|
|
|
407
|
-
Run blockrun_models to see all
|
|
414
|
+
Run blockrun_models to see all 41+ models with pricing.`,
|
|
408
415
|
inputSchema: {
|
|
409
416
|
message: z2.string().describe("Your message to the AI"),
|
|
410
|
-
model: z2.string().optional().describe("Specific model ID (e.g., '
|
|
411
|
-
mode: z2.enum(["fast", "balanced", "powerful", "cheap", "reasoning", "free", "coding"]).optional().describe("
|
|
417
|
+
model: z2.string().optional().describe("Specific model ID (e.g., 'zai/glm-5', 'openai/o3')"),
|
|
418
|
+
mode: z2.enum(["fast", "balanced", "powerful", "cheap", "reasoning", "free", "coding", "glm"]).optional().describe("Routing mode: glm = Zhipu GLM-5/GLM-5-Turbo ($0.001/call, great for coding), coding = GLM-5 + code models, cheap = GLM-5 + budget, free = NVIDIA only (ignored if model specified)"),
|
|
412
419
|
routing: z2.enum(["smart"]).optional().describe('Set to "smart" to auto-select the optimal model via ClawRouter (14-dimension AI routing)'),
|
|
413
420
|
routing_profile: z2.enum(["free", "eco", "auto", "premium"]).optional().default("auto").describe('Cost/quality profile for ClawRouter: "free" (zero cost NVIDIA), "eco" (budget), "auto" (balanced, default), "premium" (best quality) (only applies when routing: "smart")'),
|
|
414
421
|
system: z2.string().optional().describe("Optional system prompt"),
|
|
@@ -583,18 +590,22 @@ function registerImageTool(server) {
|
|
|
583
590
|
server.registerTool(
|
|
584
591
|
"blockrun_image",
|
|
585
592
|
{
|
|
586
|
-
description: `Generate or edit images via BlockRun.
|
|
593
|
+
description: `Generate or edit images via BlockRun. Pays with USDC \u2014 no separate API keys needed.
|
|
587
594
|
|
|
588
595
|
Actions:
|
|
589
596
|
- generate (default): Create image from text prompt
|
|
590
597
|
- edit: Transform an existing image using img2img
|
|
591
598
|
|
|
592
|
-
Generation models:
|
|
599
|
+
Generation models:
|
|
600
|
+
- zai/cogview-4 ($0.02) \u2014 Zhipu CogView-4, photorealistic, great for detailed scenes
|
|
601
|
+
- openai/dall-e-3 ($0.04-0.08) \u2014 High quality, prompt adherence
|
|
602
|
+
- together/flux-schnell ($0.02) \u2014 Fast, stylized
|
|
603
|
+
- google/nano-banana \u2014 Google image model
|
|
593
604
|
Edit models: openai/gpt-image-1 (default for edits)`,
|
|
594
605
|
inputSchema: {
|
|
595
606
|
prompt: z4.string().describe("Image description or edit instructions"),
|
|
596
607
|
action: z4.enum(["generate", "edit"]).optional().default("generate").describe("generate: create from text; edit: transform existing image"),
|
|
597
|
-
model: z4.enum(["openai/dall-e-3", "together/flux-schnell", "google/nano-banana", "openai/gpt-image-1"]).optional().describe("Model to use (default: dall-e-3 for generate, gpt-image-1 for edit)"),
|
|
608
|
+
model: z4.enum(["zai/cogview-4", "openai/dall-e-3", "together/flux-schnell", "google/nano-banana", "openai/gpt-image-1"]).optional().describe("Model to use (default: dall-e-3 for generate, gpt-image-1 for edit). zai/cogview-4 is Zhipu's photorealistic model."),
|
|
598
609
|
image: z4.string().optional().describe("Source image for edit action: base64-encoded image or URL"),
|
|
599
610
|
size: z4.enum(["1024x1024", "1792x1024", "1024x1792"]).optional().default("1024x1024"),
|
|
600
611
|
quality: z4.enum(["standard", "hd"]).optional().default("standard")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockrun/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"mcpName": "io.github.BlockRunAI/blockrun-mcp",
|
|
5
5
|
"description": "BlockRun MCP Server - Give your AI agent web search, deep research, prediction markets, crypto data, X/Twitter intelligence. Paid via x402 micropayments.",
|
|
6
6
|
"type": "module",
|