بنقرة واحدة
setup-mekara-mcp
Set up mekara MCP server and hook integration with Claude Code and OpenCode for the current project.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Set up mekara MCP server and hook integration with Claude Code and OpenCode for the current project.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Merges completed work back to main through a protected-branch pull request workflow.
Set up a new git worktree and install dependencies.
Merges completed work back to main through a protected-branch pull request workflow.
Set up a new git worktree and install dependencies.
Prepares a Python package for PyPI release by updating the version, building, and verifying the distribution.
Prepare a release by updating the version, building, and verifying the distribution.
| name | setup-mekara-mcp |
| description | Set up mekara MCP server and hook integration with Claude Code and OpenCode for the current project. |
Set up mekara MCP server and hook integration with Claude Code and OpenCode for the current project.
$ARGUMENTS
Check that the mekara command is available in PATH (suppress path output):
which mekara > /dev/null
If not available, inform the user they need to install mekara first (e.g., pipx install mekara or add it to the project's dev dependencies).
Create ~/.claude.json (or update if it exists) to declare the mekara MCP server:
{
"mcpServers": {
"mekara": {
"type": "stdio",
"command": "mekara",
"args": ["mcp"]
}
}
}
If ~/.claude.json already exists, merge the mekara server into the existing mcpServers object rather than overwriting the file.
Create ~/.claude/settings.json (or update if it exists) with hooks and MCP tool permissions:
{
"hooks": {
"UserPromptSubmit": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "mekara hook reroute-user-commands"
}
]
}
],
"PreToolUse": [
{
"matcher": "Skill",
"hooks": [
{
"type": "command",
"command": "mekara hook reroute-agent-commands"
}
]
},
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "mekara hook auto-approve"
}
]
}
]
},
"permissions": {
"allow": [
"mcp__mekara__start",
"mcp__mekara__continue_script",
"mcp__mekara__finish_nl_script",
"mcp__mekara__status",
"mcp__mekara__write_bundled"
]
}
}
If ~/.claude/settings.json already exists:
hooks.UserPromptSubmit and hooks.PreToolUse arrayspermissions.allow array (avoid duplicates)Create ~/.config/opencode/opencode.json (or update if it exists) to declare the mekara MCP server for OpenCode:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"mekara": {
"type": "local",
"command": ["mekara", "mcp"],
"enabled": true
}
},
"permission": {
"mcp__mekara__start": "allow",
"mcp__mekara__continue_script": "allow",
"mcp__mekara__finish_nl_script": "allow",
"mcp__mekara__status": "allow",
"mcp__mekara__write_bundled": "allow"
}
}
If ~/.config/opencode/opencode.json already exists:
mcp objectpermission object (avoid duplicates)Note: OpenCode does not have a UserPromptSubmit hook equivalent, so the automatic "script already running" context injection is not available. Scripts will still work via MCP.
Tell the user to restart Claude Code and/or OpenCode for the changes to take effect, then test by typing a mekara command like /test:random (if available) or any compiled script.