1. Conduid
  2. Files
  3. Codesonify
MCP server ยท Files

Codesonify

๐ŸŽต Transform source code into music โ€” hear the rhythm of your code. MCP Server + Web App. Built for Agents League 2026.

Unclaimed last commit 8 months ago files
34Low

Scored 6 months ago ยท breakdown

About Codesonify

Codesonify is an MCP server published by jpablortiz96 in the Files category: ๐ŸŽต Transform source code into music โ€” hear the rhythm of your code. MCP Server + Web App. Built for Agents League 2026.

The repository has 3 stars and 1 forks, with the last commit 8 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/jpablortiz96/codesonify

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (5)

1`sonify_code`

Parameters not published.

2`analyze_code_structure`

Parameters not published.

3`compare_code_musically`

Parameters not published.

4`sonify_git_diff`

Parameters not published.

5`export_midi`

Parameters not published.

Ask AI

✦

Ask AI about Codesonify

Powered by Claude · Grounded in docs

I know everything about Codesonify. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • โœ“README presentThe repository ships documentation.

5 checks have not been run yet.

README

๐ŸŽต CodeSonify โ€” Hear Your Code

Agents League 2026 Track Built with MCP Tools License

Every line of code has a melody. CodeSonify transforms source code into real music. Functions become melodies, loops become rhythms, conditionals become chord changes, and bugs sound dissonant. Export to MIDI, sonify git diffs, and hear the evolution of your codebase โ€” all integrated into GitHub Copilot via MCP.


๐ŸŽฌ Demo

๐Ÿ“น Watch the demo video โ†’

Try it yourself: Clone the repo, run npm start, and open http://localhost:3000


๐ŸŒŸ Features

๐ŸŽต Code โ†’ Music Engine

Paste any code โ€” JavaScript, TypeScript, Python, Java, C#, Go, Rust โ€” and hear it as music. Each programming construct maps to a distinct musical element:

Code Structure Musical Element Why
Functions Ascending melodic phrases Functions are the building blocks โ€” they create the melody
Loops Repeating rhythmic patterns Loops repeat โ€” just like rhythm
Conditionals Harmonic chord changes if/else creates branching paths โ€” like harmonic tension and resolution
Variables Deep bass notes Variables are the foundation โ€” like bass in music
Classes Power chords Classes are structures โ€” rich, layered chords
Comments Ambient pads Comments are the quiet spaces between the code
Errors Dissonant clusters Bugs should sound bad โ€” because they are
Nesting depth Octave (pitch) Deeper nesting = higher pitch = more tension
Complexity Tempo (BPM) Complex code plays faster and more intensely
Language Musical key Each language has its own key signature

๐ŸŽน MIDI Export

Export any sonification as a real .mid file that opens in GarageBand, FL Studio, Ableton, Logic Pro, or any DAW. Your code becomes real, editable, shareable music.

๐Ÿ”„ Diff Sonification

Sonify git diffs and code changes:

  • Added lines โ†’ Bright, ascending melodies in major key
  • Removed lines โ†’ Dark, descending bass in minor key
  • Context โ†’ Soft ambient background
  • Hear a refactoring as a musical journey from tension to resolution

๐ŸŽจ 5 Musical Styles

Style Key Character
๐ŸŽป Classical C Major Elegant, sine/triangle waves
๐ŸŽน Electronic A Minor Driving, square/sawtooth waves
๐ŸŒŠ Ambient D Pentatonic Dreamy, heavy reverb
๐ŸŽท Jazz F Dorian Warm, swing feel
๐ŸŽธ Rock E Blues Aggressive, distorted

๐Ÿ”ง MCP Server โ€” 5 Tools for GitHub Copilot

CodeSonify integrates directly into VS Code via MCP, giving GitHub Copilot 5 powerful tools:

# Tool What it does
1 sonify_code Transform any code into a full musical composition
2 analyze_code_structure Get code metrics: complexity, functions, nesting, loops
3 compare_code_musically Compare two code snippets by their musical output
4 sonify_git_diff Turn git diffs into music โ€” hear your code reviews
5 export_midi Export code as a real MIDI file for music production

๐ŸŒ Web Application

A polished, real-time web interface featuring:

  • Code editor with syntax highlighting
  • Real-time canvas visualization with animated note particles
  • Live audio playback using Tone.js Web Audio synthesis
  • Stats dashboard showing tempo, key, complexity, notes, duration, tracks
  • Track breakdown with per-instrument volume bars
  • Musical interpretation โ€” human-readable description of what the music represents
  • Diff Mode โ€” compare old vs new code versions visually and musically
  • MIDI download โ€” one-click export to .mid file

๐Ÿš€ Quick Start

Prerequisites

Installation

# Clone the repository
git clone https://github.com/YOUR_USERNAME/codesonify.git
cd codesonify

# Install dependencies
npm install

# Start the web application
npm start

Open http://localhost:3000 in your browser. Paste code, pick a style, and click Sonify Code. ๐ŸŽต

Using the MCP Server with GitHub Copilot

  1. Open the project folder in VS Code
  2. Open .vscode/mcp.json โ€” click the "Start" button that appears
  3. Open Copilot Chat (Ctrl+Shift+I) โ†’ switch to Agent Mode
  4. Try these prompts:
Sonify this code: function fibonacci(n) { if (n <= 1) return n; return fibonacci(n-1) + fibonacci(n-2); }
Analyze the code structure of my current file
Export this as MIDI: const greet = (name) => console.log(`Hello ${name}`)
Sonify the diff between these: 
Old: "function add(a,b) { return a+b; }"  
New: "const add = (a: number, b: number): number => a + b;"

๐Ÿ“ Project Structure

codesonify/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ core/                  # Core analysis and music engine
โ”‚   โ”‚   โ”œโ”€โ”€ types.ts           # TypeScript type definitions (40+ types)
โ”‚   โ”‚   โ”œโ”€โ”€ parser.ts          # Code structure analyzer & tokenizer
โ”‚   โ”‚   โ”œโ”€โ”€ mapper.ts          # Code-to-music mapping engine (8 scales, 5 styles)
โ”‚   โ”‚   โ”œโ”€โ”€ composer.ts        # Composition orchestrator
โ”‚   โ”‚   โ”œโ”€โ”€ midi.ts            # Pure TypeScript MIDI file generator (zero dependencies)
โ”‚   โ”‚   โ”œโ”€โ”€ diff.ts            # Git diff parser & sonification engine
โ”‚   โ”‚   โ””โ”€โ”€ index.ts           # Module exports
โ”‚   โ”œโ”€โ”€ mcp/                   # MCP Server for VS Code / GitHub Copilot
โ”‚   โ”‚   โ””โ”€โ”€ index.ts           # MCP server with 5 tools
โ”‚   โ””โ”€โ”€ web/                   # Web application
โ”‚       โ”œโ”€โ”€ server.ts          # Express API server (5 endpoints)
โ”‚       โ””โ”€โ”€ public/
โ”‚           โ””โ”€โ”€ index.html     # Frontend (Tone.js + Canvas visualization)
โ”œโ”€โ”€ docs/
โ”‚   โ””โ”€โ”€ copilot-usage/         # Screenshots of GitHub Copilot usage
โ”œโ”€โ”€ .vscode/
โ”‚   โ””โ”€โ”€ mcp.json               # MCP server configuration for VS Code
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ tsconfig.json
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ README.md

๐Ÿค– GitHub Copilot Usage

GitHub Copilot was instrumental throughout the entire development of CodeSonify. Here's how AI-assisted development shaped this project:

๐Ÿง  Architecture & Design (Copilot Chat)

  • Brainstormed the mapping between programming constructs and musical elements
  • Designed the TypeScript type system with 40+ types for code analysis and music composition
  • Explored which musical scales best represent each programming language
  • Debugged audio timing issues with Tone.js Web Audio API

โšก Code Acceleration (Copilot Suggestions)

  • Auto-completed musical scale definitions (major, minor, pentatonic, blues, dorian, mixolydian, lydian, chromatic)
  • Generated Express route handlers with input validation
  • Suggested the canvas visualization algorithm for animated note particles
  • Completed the MIDI binary format implementation (variable-length quantities, track chunks)

๐ŸŽจ Creative Exploration

  • Used Copilot to explore different approaches to code complexity scoring
  • Generated example code snippets that showcase diverse musical outputs
  • Helped design the diff-to-music mapping logic (ascending = additions, descending = deletions)

๐Ÿ”ง MCP Server Development

  • Copilot Chat helped structure the MCP tool definitions with proper Zod schemas
  • Generated the formatted markdown output for each tool response
  • Assisted with the comparison table formatting in compare_code_musically

๐Ÿ“ธ Screenshots of these interactions are in docs/copilot-usage/


๐Ÿ”Œ API Reference

POST /api/sonify

Transform code into music.

Request:

{
  "code": "function hello() { console.log('world'); }",
  "language": "javascript",
  "style": "classical"
}

Response: Full composition with tracks, notes, analysis, and visualization data.

POST /api/export-midi

Export code as a downloadable MIDI file.

Request: Same as /api/sonify

Response: Binary .mid file download.

POST /api/sonify-diff

Sonify code changes.

Request:

{
  "old_code": "function add(a,b) { return a+b; }",
  "new_code": "const add = (a: number, b: number): number => a + b;",
  "style": "electronic"
}

GET /api/examples

Get example code snippets for demo.

GET /api/health

Health check.


๐Ÿ† Evaluation Criteria Alignment

Criteria Weight How CodeSonify Delivers
Accuracy & Relevance 20% Fully meets Creative Apps track requirements. Extensive GitHub Copilot usage documented. MCP server with 5 tools integrated into VS Code.
Reasoning & Multi-step Thinking 20% 7-step pipeline: Code โ†’ Tokenize โ†’ Analyze โ†’ Map โ†’ Compose โ†’ Visualize โ†’ Play. Diff analysis adds comparison reasoning. MIDI export adds format transformation.
Creativity & Originality 15% First-of-its-kind code sonification tool. Unique concept bridging programming and music. Diff sonification has never been done. MIDI export makes it tangible.
User Experience & Presentation 15% Polished web UI with real-time visualization, 5 musical styles, Diff Mode, MIDI download, example code, animated particles, playback controls.
Reliability & Safety 20% TypeScript strict mode throughout, input validation on all endpoints, error handling with user-friendly messages, no secrets/PII, public repo, MIT license.
Community Vote 10% Viral concept โ€” "hear your code" is immediately shareable. Fun to demo. Everyone can try it. MIDI export makes it tangible and social.

๐Ÿ› ๏ธ Technologies

Technology Purpose
TypeScript Type-safe code throughout (strict mode)
MCP SDK Model Context Protocol for VS Code/Copilot integration
Express 5 Web server and REST API
Tone.js Web Audio synthesis and real-time playback
Canvas API Animated note particle visualization
Zod Runtime input validation for MCP tools
GitHub Copilot AI-assisted development throughout

๐ŸŽฏ Use Cases

  1. Code Review โ€” Sonify a pull request diff and hear if the changes feel harmonious or chaotic
  2. Education โ€” Help students understand code structure through musical metaphor
  3. Accessibility โ€” Provide auditory feedback for visually impaired developers
  4. Team Building โ€” Turn your team's code into a collaborative soundtrack
  5. Art โ€” Generate music from open-source projects and create "code albums"
  6. Quality Monitoring โ€” Complexity score as tempo: if your code sounds like speed metal, maybe refactor

๐Ÿ“ License

MIT License โ€” free to use, modify, and distribute.


๐Ÿ™ Acknowledgments


README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Codesonify

How do I install Codesonify?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Codesonify safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Codesonify still maintained?

The last commit was 8 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.