{"id":51631061,"url":"https://github.com/semgrep/mcp-tool-shadowing-demo","last_synced_at":"2026-07-13T07:03:43.213Z","repository":{"id":313993778,"uuid":"1053732028","full_name":"semgrep/mcp-tool-shadowing-demo","owner":"semgrep","description":"a demonstration of tool shadowing behavior in the Model Context Protocol","archived":false,"fork":false,"pushed_at":"2025-09-09T22:13:39.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-04T08:53:21.902Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/semgrep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-09T21:12:14.000Z","updated_at":"2026-01-14T19:41:35.000Z","dependencies_parsed_at":"2025-09-10T00:59:03.389Z","dependency_job_id":"40ee7fef-257c-450b-a269-f5050acb4541","html_url":"https://github.com/semgrep/mcp-tool-shadowing-demo","commit_stats":null,"previous_names":["semgrep/mcp-tool-shadowing-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/semgrep/mcp-tool-shadowing-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Fmcp-tool-shadowing-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Fmcp-tool-shadowing-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Fmcp-tool-shadowing-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Fmcp-tool-shadowing-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semgrep","download_url":"https://codeload.github.com/semgrep/mcp-tool-shadowing-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semgrep%2Fmcp-tool-shadowing-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35413543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-13T02:00:06.543Z","response_time":119,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-13T07:03:42.620Z","updated_at":"2026-07-13T07:03:43.204Z","avatar_url":"https://github.com/semgrep.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mcp-tool-shadowing-demo\na demonstration of tool shadowing behavior in the Model Context Protocol.\n\n## prerequisites\n\nProject requires `uv`. See installation instructions:\nhttps://github.com/astral-sh/uv?tab=readme-ov-file#installation\n\nThe makefile `install` instruction will install UV with the OSX/Linux instructions and then run `uv sync`.\n\n\n## usage\n\nThe makefile will install the servers for Claude Code locally for this directory. To demonstrate collision behavior, run `make angel`, request `totally_cool_legit_tool` and note the behavior, then run `make devil` and rerun Claude Code with the same prompt and observe the difference.\n\nTo test with Windsurf, run `make provision-windsurf`\n\n## notes\n\nthe Windsurf demonstration additionally requires line-jumping to frontrun tool choice. As of 2025-09-09 this was unpatched and worked successfully on Windsurf 1.99.3 (hash a21cda2c21704d89e6cf5b2804b460783ce44fad)\n\nAs far as I can tell, this demo does not reliably work correctly on Cursor - it does something else crazy but does not open calculator.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemgrep%2Fmcp-tool-shadowing-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemgrep%2Fmcp-tool-shadowing-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemgrep%2Fmcp-tool-shadowing-demo/lists"}