> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mcp-use.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Version 1.6.0

> Bearer Token authentication, on_initialize middleware, and bug fixes

export const Contributors = props => {
  let users = [];
  if (props.usernames) {
    users = Array.isArray(props.usernames) ? props.usernames : String(props.usernames).split(",").map(u => u.trim());
  } else if (props.users) {
    users = String(props.users).split(",").map(u => u.trim());
  }
  if (users.length === 0) return null;
  return <div>
      <span className="text-base font-medium text-zinc-600 dark:text-zinc-300">Contributors</span>
      <div className="flex items-center" style={{
    marginTop: '8px'
  }}>
        {users.map((username, index) => <a key={username} href={`https://github.com/${username}`} target="_blank" rel="noopener noreferrer" title={`@${username}`} className="relative rounded-full transition-all duration-200 hover:z-50 hover:scale-110 block" style={{
    marginLeft: index === 0 ? 0 : '-8px',
    zIndex: users.length - index,
    lineHeight: 0
  }}>
            <img noZoom src={`https://github.com/${username}.png`} alt={`@${username}`} width="32" height="32" style={{
    display: 'block',
    margin: 0
  }} className="rounded-full ring-2 ring-zinc-100 dark:ring-zinc-900" />
          </a>)}
      </div>
    </div>;
};

<Card img="https://mcp-use.com/api/og/release?v=1.6.0" title="Release 1.6.0" href="https://github.com/mcp-use/mcp-use/releases/tag/python-v1.6.0">
  This release introduces **Bearer Token authentication** for Python MCP servers, adds **on\_initialize middleware** for intercepting MCP handshakes, and includes several important bug fixes.
</Card>

## New Features

### Bearer Token Authentication

**[PR #841](https://github.com/mcp-use/mcp-use/pull/841) by @pietrozullo**

Added Bearer Token authentication support for Python MCP servers, enabling secure token-based authentication for server connections.

### On Initialize Middleware

**[PR #769](https://github.com/mcp-use/mcp-use/pull/769) by @renvins**

Introduced the ability to intercept MCP handshakes with `on_initialize` middleware, allowing custom logic during the initialization phase of MCP connections.

## Bug Fixes

### DNS Rebinding Protection

**[PR #825](https://github.com/mcp-use/mcp-use/pull/825) by @pietrozullo**

Fixed DNS rebinding protection for cloud and proxy deployments, improving security for production environments.

### Debug and Pretty Print JSONRPC Improvements

**[PR #814](https://github.com/mcp-use/mcp-use/pull/814) by @pietrozullo**

Improved the debug and `pretty_print_jsonrpc` behavior for better debugging experience.

### ConnectionManager Timeout

**[PR #726](https://github.com/mcp-use/mcp-use/pull/726) by @Incharajayaram**

Added a timeout mechanism to `ConnectionManager.stop()` to prevent hanging connections during shutdown.

## Contributors

Thank you to all contributors who made this release possible

<Contributors users="pietrozullo,renvins,Incharajayaram" />
