Skip to content

Conversation

@echarrod
Copy link
Contributor

@echarrod echarrod commented Nov 5, 2025

Summary

Adds .mcp.json to .gitignore to allow developers to configure local MCP server settings for testing with Claude Code without committing credentials or local paths to source control.

Changes

  • Added .mcp.json to .gitignore
  • Includes example configuration in commit message for reference

Use Case

Developers working on this MCP server can create a local .mcp.json file to:

  • Test the server with Claude Code during development
  • Use connection strings or environment-specific credentials
  • Configure local paths and settings
  • Iterate quickly without needing to configure global Claude Code settings

Example Configuration

{
  "inputs": [
    {
      "id": "mysql_connection_string",
      "type": "promptString",
      "description": "MySQL Connection String",
      "password": true
    }
  ],
  "servers": {
    "mysql_local": {
      "command": "/path/to/node",
      "args": ["/path/to/mcp-server-mysql/dist/index.js"],
      "env": {
        "MYSQL_CONNECTION_STRING": "${input:mysql_connection_string}"
      }
    }
  }
}

Important Notes

This is Claude Code specific - This configuration format is specific to Claude Code's MCP integration. Other MCP clients may use different configuration formats. Feel free to reject this PR if you prefer not to include Claude Code-specific configurations in the repository.

The main benefit is allowing local testing without accidentally committing sensitive credentials.

Code Quality

  • ✅ CodeRabbit review passed with no issues
  • ✅ Only modifies .gitignore (no code changes)
  • ✅ Optional for developers - doesn't affect existing workflows

🤖 Generated with Claude Code

Co-Authored-By: Claude [email protected]

Adds .mcp.json to .gitignore to allow developers to configure local
MCP server settings for testing with Claude Code without committing
credentials or local paths to source control.

Includes .mcp.json.example file showing how to configure local testing
with connection string support.

Developers can create a local .mcp.json file for Claude Code integration
with custom connection strings and environment-specific settings.

Example usage:
1. Copy .mcp.json.example to .mcp.json
2. Update paths to match your local setup
3. Restart Claude Code to load the local server configuration

NOTE: This is Claude Code specific configuration. Other MCP clients
may use different configuration formats.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@echarrod echarrod force-pushed the feature/local-mcp-config branch from 858849c to a070ce7 Compare November 5, 2025 11:11
@echarrod echarrod marked this pull request as ready for review November 5, 2025 11:13
@benborla benborla merged commit 86a8fe9 into benborla:main Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants