Skip to content

Add opencode_example.json configuration file#1

Open
almart wants to merge 1 commit intoCobalt-Strike:mainfrom
almart:main
Open

Add opencode_example.json configuration file#1
almart wants to merge 1 commit intoCobalt-Strike:mainfrom
almart:main

Conversation

@almart
Copy link
Copy Markdown

@almart almart commented Dec 30, 2025

Add OpenCode Example Configuration

Created and tested OpenCode configuration format to use the required stdio transport flag since HTTP failed during testing. This provides an alternative to Claude to be able to leverage additional models. This example can be used by anyone testing CS MCP release.

Changes Required for OpenCode

1. Transport Method Fix

  • Changed from HTTP-based listener configuration to --transport stdio
  • This enables direct stdio communication between OpenCode and the MCP server

2. Configuration Schema for OpenCode

  • Updated to use $schema: "https://opencode.ai/config.json"
  • Changed from mcpServers to mcp key structure
  • Added type: "local" for local server configuration
  • Changed cwd to environment for env vars (cwd) does not exist in OpenCode
  • Added enabled: true flag

Tests

  • Verified MCP server connected using OpenCode
  • Ran a MCP tool to list beacons from CS Rest API
image image

Files Changed

  • opencode_example.json: Updated with stdio transport and OpenCode schema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant