Skip to main content
Glama
AsifKibria

Claude Code Toolkit

by AsifKibria

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
scan_image_issuesA

Scan all Claude Code conversation files for oversized images that cause API errors. Returns detailed report of issues found without making changes.

fix_image_issuesA

Fix oversized images in Claude Code conversations by replacing them with placeholder text. Creates backups before changes.

get_conversation_statsB

Get detailed statistics about Claude Code conversations including message counts, tool usage, image counts, and file sizes.

list_backupsB

List all backup files created by the image fixer, with size and date information.

restore_backupB

Restore a conversation file from a backup.

cleanup_backupsC

Delete old backup files to free up disk space.

health_checkA

Quick health check of Claude Code conversations. Reports total issues, largest files, and recommendations.

export_conversationB

Export a Claude Code conversation to markdown or JSON format for backup or sharing.

estimate_context_sizeA

Estimate the context/token usage of a Claude Code conversation. Shows breakdown by message type, images, documents, and tool usage.

usage_analyticsA

Generate a usage analytics dashboard showing conversation statistics, activity trends, top projects, tool usage breakdown, and media stats.

find_duplicatesA

Scan for duplicate content across Claude Code conversations. Finds duplicate conversations, images, and documents that waste storage and context space.

archive_conversationsA

Archive old/inactive conversations to free up space. Moves conversations that haven't been modified in a specified number of days to an archive directory.

run_maintenanceB

Run maintenance checks on Claude Code installation. Identifies issues, old backups, and archive candidates. Can optionally perform fixes automatically.

clean_claude_directoryC

Analyze and clean the .claude directory. Removes debug logs, empty todos, old snapshots, and orphaned data to free disk space.

validate_mcp_configA

Validate MCP server configurations. Checks JSON syntax, command existence, and optionally tests server connectivity.

list_sessionsA

List all Claude Code sessions with health status. Shows session ID, project, size, message count, and whether the session is healthy, corrupted, empty, or orphaned.

recover_sessionA

Diagnose, repair, or extract content from a Claude Code session. Use for corrupted or crashed sessions.

usage_reportA

Generate a real (not estimated) token usage and cost report from Claude Code's JSONL records. Returns per-model, per-project, per-day breakdowns plus a 24h/7d/30d burn rate and projected monthly spend.

run_doctorA

Full integrity check: detects corrupted JSONL lines, truncated thinking blocks, oversized images/PDFs, sessions over 50 MB, sessions-index drift, orphaned subagent directories, and stale per-session warning state files (the #13518 culprit). Set repair=true to auto-fix everything that's safely repairable.

list_hooksA

List Claude Code hooks across user/project/local scopes, with validation warnings for unknown events, missing binaries, and duplicates. Optionally include the catalog of installable templates.

scaffold_hookA

Install a Claude Code hook from the toolkit's template catalog. Templates: auto-fix-on-start, block-claude-md-write, log-bash-commands, redact-secrets-on-stop, delete-old-traces, snapshot-pre-compact.

list_profilesA

List saved ~/.claude.json profiles and the currently active one. Profiles let you switch between work/personal accounts or different orgs.

switch_profileA

Swap the active ~/.claude.json with a saved profile. Auto-creates a backup of the previous active config. The user must restart Claude Code for the new config to take effect.

save_profileA

Snapshot the current ~/.claude.json as a named profile so it can be restored later via switch_profile.

unstick_sessionA

Unstick a Claude Code session that's wedged on 'PDF too large' / 'Image too large' style errors. Scrubs oversized base64 content from the JSONL, drops per-session warning state files, and reports what was changed. After running this, the user must start a new conversation in Claude Code so it reloads the cleaned JSONL.

security_scanB

Scan conversation files for leaked secrets (AWS keys, API tokens, passwords, private keys, connection strings, JWTs).

audit_sessionA

Generate an audit report for a session showing all files read/written, commands executed, MCP tools used, and URLs fetched.

enforce_retentionC

Apply data retention policy by deleting sessions older than specified days.

inventory_tracesA

Show complete inventory of all traces Claude Code has stored on disk, categorized by sensitivity level (critical/high/medium/low).

clean_tracesA

Selectively clean Claude Code traces by category, age, or project.

wipe_tracesA

Securely wipe ALL Claude Code traces. Overwrites files with zeros before deletion. Requires explicit confirmation.

generate_trace_guardB

Generate hook configurations for ongoing trace prevention. Outputs JSON ready to add to settings.

start_dashboardA

Start the web dashboard on a local port. Returns the URL to open in a browser.

search_conversationsA

Full-text search across all Claude Code conversations. Find where you discussed specific topics.

estimate_costA

Estimate API costs based on token usage across all conversations.

scan_piiC

Scan conversations for Personal Identifiable Information (PII) like emails, phone numbers, SSNs, credit cards.

mcp_performanceB

Track MCP server performance: call counts, error rates, most used tools.

git_integrationA

Link sessions to git branches and commits. Shows which sessions are tied to which repositories.

check_alertsB

Check for issues and notifications: disk space warnings, corrupted sessions, quota violations.

check_quotasA

Show usage quotas and limits: storage, sessions, retention age.

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/AsifKibria/claude-code-toolkit'

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