A mcp server that uses the Osmosis-Apply-1.7B model to apply code merges
{
"mcpServers": {
"osmosis-apply-1-7b-mcp": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A mcp server that uses the Osmosis-Apply-1.7B model to apply code merges
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
License not specified.
Is it maintained?
Last commit 279 days ago. 53 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt — returns 0-100 signal.
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
MCP Security Weekly
Get CVE alerts and security updates for Osmosis Apply 1.7B MCP and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Model Context Protocol (MCP) server that uses the Osmosis-Apply-1.7B model to merge code edits.
ollama pull Osmosis/Osmosis-Apply-1.7Bgit clone <repository-url>
cd codemerge
uv sync
uv run python codemerge.py
CodeMerge can be used as an MCP server. Configure it in your MCP client:
{
"mcpServers": {
"codemerge": {
"command": "uv",
"args": [
"--directory",
"/path/to/codemerge",
"run",
"codemerge.py"
]
}
}
}
You can also use CodeMerge directly in Python:
from call_snippet import apply_code_edit
# Original code
original_code = """def hello():
print('Hello, World!')
print('Some code')
print('Some more code')
return 'success'"""
# Edit to apply
edit_snippet = """def hello():
print('Hello, Universe!')
print('Some code')
# ... existing code ...
return 'success'"""
# Apply the edit
result = apply_code_edit(original_code, edit_snippet)
print(result)
The MCP server provides an edit_snippet tool with the following parameters:
original_code: The exact original code to be editededit_snippet: The edit to apply, using // ... existing code ... markersfile_path: Absolute path to a file to update in placeExample tool call:
{
"name": "edit_snippet",
"arguments": {
"original_code": "def hello():\n print('Hello, World!')",
"edit_snippet": "def hello():\n print('Hello, Universe!')\n # ... existing code ...",
"file_path": "/path/to/your/file.py"
}
}
CodeMerge uses a specific format for edits that preserves context while being concise:
// ... existing code ...
FIRST_EDIT
// ... existing code ...
SECOND_EDIT
// ... existing code ...
THIRD_EDIT
// ... existing code ...
The // ... existing code ... markers indicate where the original code should be preserved. This allows you to specify only the parts you want to change while maintaining the exact structure and formatting of the original code.
httpx>=0.28.1: HTTP client for API callsmcp[cli]>=1.10.1: Model Context Protocol implementationollama: Python client for Ollama (installed separately)CodeMerge consists of several components:
codemerge.py: Main MCP server implementationcall_snippet.py: Direct usage interface with streaming supporttest_codemerge.py: Comprehensive test suitepyproject.toml: Project configuration and dependencies