Skip to main content
Glama
mhattingpete

code-copy-mcp

by mhattingpete

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ALLOWED_DIRECTORIESNoComma-separated list of directories where file operations are allowed. If not specified, defaults to user's home directory, Documents, Desktop, and Projects folders.User's home directory, Documents, Desktop, Projects

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
copy_codeA

Copy code lines from source file.

Args: source_file: Path to source file start_line: Starting line number (1-based) end_line: Ending line number (1-based), defaults to start_line include_line_numbers: Whether to include line numbers in output

Returns: Copied code content as string

paste_codeA

Paste code at specific line in target file.

Args: target_file: Path to target file line_number: Line number to paste at (1-based, inserts before this line) code: Code content to paste create_backup: Whether to create backup file before modification

Returns: Success message with details

copy_entire_fileA

Copy entire content of source file.

Args: source_file: Path to source file include_line_numbers: Whether to include line numbers

Returns: Full file content as string

search_and_replaceA

Search and replace text in target file.

Args: target_file: Path to target file search_pattern: Text to search for replacement: Replacement text case_sensitive: Whether search is case sensitive replace_all: Whether to replace all occurrences or just first create_backup: Whether to create backup file

Returns: Success message with replacement count

get_file_infoC

Get basic information about a file.

Args: file_path: Path to file

Returns: File information as string

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mhattingpete/code-copy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server