Skip to content

Agent mcp config block error in engram v1.10.1 #88

@pablon

Description

@pablon

📋 Pre-flight Checks

  • I have searched existing issues and this is not a duplicate
  • I understand this issue needs status:approved before a PR can be opened

📝 Bug Description

engram --help instructs the user to add the following block to opencode.json:

{
  "mcp": {
    "engram": {
      "type": "stdio",
      "command": "engram",
      "args": ["mcp", "--tools=agent"]
    }
  }
}

This produces the following error @ opencode:

opencode
Error: Configuration is invalid at ~/.config/opencode/opencode.json
↳ Invalid input mcp.engram

Using the following syntax seems to go through, opencode opens without complaining:

{
  "mcp": {
    "engram": {
      "type": "local",
      "command": ["engram", "mcp", "--tools=agent"],
      "enabled": true
    }
}

🔄 Steps to Reproduce

  1. Configure engram mcp as instructed by engram --help in opencode.json:
{
  "mcp": {
    "engram": {
      "type": "stdio",
      "command": "engram",
      "args": ["mcp", "--tools=agent"]
    }
  }
}
  1. Start opencode:
opencode

You will see the following error:

Error: Configuration is invalid at ~/.config/opencode/opencode.json
↳ Invalid input mcp.engram

Note

❯ opencode --version
1.2.27

❯ engram --version
engram 1.10.1

✅ Expected Behavior

❯ opencode mcp list

┌  MCP Servers
│
●  ✓ engram connected
│      engram mcp --tools=agent
│
└  1 server(s)

❌ Actual Behavior

opencode
Error: Configuration is invalid at ~/.config/opencode/opencode.json
↳ Invalid input mcp.engram

Operating System

macOS

Engram Version

1.10.1

Agent / Client

OpenCode

📋 Relevant Logs

💡 Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus:needs-reviewNeeds maintainer review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions