# Osmosis Apply

> Use this tool when you need to apply targeted edits to existing code while preserving its formatting and structure. It solves problems in automated code refactoring, AI-assisted development, and building coding assistants by providing intelligent code merging capabilities. The tool accepts original code and edit instructions as input and outputs modified code, with optional direct file modification capabilities, making it ideal for use cases requiring precise code modification without breaking existing functionality.

Canonical page: https://skillsregistry.net/skills/gulp-ai-osmosis-apply  
JSON: https://api.skillsregistry.net/v1/skills/gulp-ai-osmosis-apply

## Description

This MCP server provides intelligent code merging capabilities through the Osmosis-Apply-1.7B model via Ollama, enabling AI assistants to apply targeted edits to existing code while preserving exact formatting and structure. Built using Python with comprehensive file operation support, it offers a single edit_snippet tool that accepts original code and edit instructions using '// ... existing code ...' markers to indicate preserved sections, with optional direct file modification capabilities that search for original code patterns and replace them in-place. The implementation features streaming response support for real-time feedback, robust error handling for file permissions and missing content, and extensive test coverage including edge cases like malformed responses and permission errors, making it valuable for automated code refactoring workflows, AI-assisted development environments, and building coding assistants that need precise code modification capabilities without breaking existing functionality.

## Trust

- **Trust score (0–1):** 0.94
- **Verification tier:** verified
- **Last scanned:** 2026-09-19

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** search
- **Updated:** 2026-09-19

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/gulp-ai-osmosis-apply)
- **Repository:** <https://github.com/osmosis-ai/osmosis-apply-1.7b-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "gulp-ai-osmosis-apply"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/gulp-ai-osmosis-apply` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/gulp-ai-osmosis-apply/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
