Skip to content

Releases: punkpeye/fastmcp

v1.20.4

11 Mar 05:19
Compare
Choose a tag to compare

1.20.4 (2025-03-11)

Bug Fixes

v1.20.3

09 Mar 22:27
Compare
Choose a tag to compare

1.20.3 (2025-03-09)

Bug Fixes

v1.20.2

26 Feb 09:26
Compare
Choose a tag to compare

1.20.2 (2025-02-26)

Bug Fixes

  • gracefully handle failure to shutdown (754ff55)

v1.20.1

26 Feb 06:39
Compare
Choose a tag to compare

1.20.1 (2025-02-26)

Bug Fixes

v1.20.0

26 Feb 06:29
Compare
Choose a tag to compare

1.20.0 (2025-02-26)

FastMCP now allows you to authenticate SSE clients using a custom function:

import { AuthError } from "fastmcp";

const server = new FastMCP({
  name: "My Server",
  version: "1.0.0",
  authenticate: ({request}) => {
    const apiKey = request.headers["x-api-key"];

    if (apiKey !== '123') {
      throw new Response(null, {
        status: 401,
        statusText: "Unauthorized",
      });
    }

    // Whatever you return here will be accessible in the `context.session` object.
    return {
      id: 1,
    }
  },
});

Now you can access the authenticated user's data in your tools:

server.addTool({
  name: "sayHello",
  execute: async (args, { session }) => {
    return `Hello, ${session.id}!`;
  },
});

v1.19.3

26 Feb 03:36
Compare
Choose a tag to compare

1.19.3 (2025-02-26)

Bug Fixes

  • ensure that closing event source does not produce error (e4b3f31)
  • use info for logs (7dfdf41)

v1.19.2

26 Feb 03:13
Compare
Choose a tag to compare

1.19.2 (2025-02-26)

Bug Fixes

  • wait for the server to start (8e2233f)

v1.19.1

26 Feb 02:15
Compare
Choose a tag to compare

1.19.1 (2025-02-26)

Bug Fixes

v1.19.0

24 Feb 15:38
Compare
Choose a tag to compare

1.19.0 (2025-02-24)

Features

  • add CORS (added through mcp-proxy update) (54125e7)

v1.18.1

24 Feb 15:25
Compare
Choose a tag to compare

1.18.1 (2025-02-24)

Bug Fixes