mcode

package
v0.0.14-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mcode declares the MiniMax Code Harness.

Index

Constants

View Source
const FunctionServerLabel = "functions"

FunctionServerLabel is the native MCP server that carries public functions.

Variables

View Source
var Declaration = harnessconfig.Declaration{
	Kind:   "mcode",
	Label:  "MiniMax Code",
	Native: harnessconfig.NativePackage{Component: "minimax", Version: "0.4.12"},
	Configuration: harnessconfig.Configuration{Providers: []harnessconfig.Provider{
		{Protocol: "anthropic"},
		{Protocol: "responses"},
		{Protocol: "chat_completions"},
	}, MaxOutputTokens: true},
	Capabilities: proto.AgentKindCapabilities{
		SubagentObservations:     proto.CapabilitySupported,
		Streaming:                proto.CapabilitySupported,
		Usage:                    proto.CapabilityUnsupported,
		Resume:                   proto.CapabilitySupported,
		RetainedNativeHistory:    proto.CapabilityUnsupported,
		NativeSessionRecovery:    proto.CapabilityUnsupported,
		MessageItems:             proto.CapabilityUnsupported,
		ToolObservations:         proto.CapabilitySupported,
		EnvironmentNone:          proto.CapabilitySupported,
		LocalEnvironment:         proto.CapabilitySupported,
		Preparation:              proto.CapabilitySupported,
		WorkspaceReadPreparation: proto.CapabilitySupported,
		WorkspaceOutputExport:    proto.CapabilitySupported,
		ExecutionControls:        proto.CapabilitySupported,
		StructuredOutput:         proto.CapabilityUnsupported,
		ToolSearch:               proto.CapabilityUnsupported,
		MessageImages:            proto.CapabilityUnsupported,
		FunctionResultImages:     proto.CapabilityUnsupported,
		SubagentControl:          proto.CapabilitySupported,
		DurableInputReceipts:     proto.CapabilitySupported,
		DurableTurns:             proto.CapabilitySupported,
		FunctionTools:            proto.CapabilitySupported,
		MCPHTTPTools:             proto.CapabilitySupported,
		MCPHTTPRequired:          proto.CapabilityUnsupported,
		MCPHTTPBearerAuth:        proto.CapabilitySupported,
	},

	Execution: harnessconfig.ExecutionOptions{
		WebSearchModes:          []string{"disabled"},
		ReasoningEfforts:        []string{"none", "minimal", "low", "medium", "high", "xhigh", "max"},
		ProgrammaticToolCalling: []bool{false},
		TextVerbosities:         []string{"medium"},
	},
	Placements:         []string{"none", "openai_hosted", "self_hosted"},
	MCPOrigins:         []string{"service", "environment"},
	SessionUpdates:     harnessconfig.SessionUpdates{Model: proto.CapabilityUnsupported, ReasoningEffort: proto.CapabilityUnsupported, ReasoningEffortReset: proto.CapabilityUnsupported, ServiceTier: proto.CapabilityUnsupported},
	WhitespaceOnlyText: proto.CapabilityUnsupported,

	MaxInstructionsBytes: 32 * 1024,
	ValidateTools: func(functions []proto.FunctionTool, mcp []proto.MCPHTTPServer) error {
		if err := harnessconfig.RequireObjectSchemas(functions); err != nil {
			return err
		}
		for _, tool := range functions {

			if hasKey(tool.Parameters, "x-mcp-header") {
				return errors.New("The configured engine does not support the x-mcp-header keyword in function schemas.")
			}
		}
		for _, server := range mcp {

			if server.Stdio != nil {
				return errors.New("The configured engine cannot start MCP stdio servers in the declared cwd.")
			}
			if server.AllowedTools != nil || server.Required {
				return errors.New("The configured engine requires allowed_tools=null and required=false.")
			}

			if len(functions) > 0 && server.ServerLabel == FunctionServerLabel {
				return errors.New("The configured engine reserves the HTTP MCP label functions.")
			}
		}
		return nil
	},
}

Declaration is the only authored description of the MiniMax Code Harness. The Runtime may narrow Capabilities for the installed host, never widen them. Whitespace-only text is unsupported because the native runtime refuses such prompts with "Local message content or attachments are required.".

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL