@buildwithlayer/layer-mcp-demo

0.0.9 • Public • Published

Layer MCP Demo

An MCP server that uses a demo Layer account.

Prerequisites

This requires you to have a valid MCP client that supports tools, as well as a demo Layer account.

Getting Started

To use this demo server, you must first note your Layer API key. Then, you can launch the server with the following command:

# Replace LAYER_API_KEY_HERE with your API key
npx @buildwithlayer/layer-mcp-demo --Layer-Api-Key={LAYER_API_KEY_HERE} --{other-authentication-flags}

Add the other authentication flags as needed. They match for the name expected by in the headers of the api request.

You can also add it directly to an MCP client. Here is an example of how to add it to cursor:

  • Go to Cursor Settings > Features > MCP
  • Click the + Add New MCP Server button
  • Name it whatever you like (layer-mcp-demo for example)
  • Set the Type to command
  • Set the Command to npx @buildwithlayer/layer-mcp-demo --Layer-Api-Key=LAYER_API_KEY_HERE, replacing LAYER_API_KEY_HERE with your API key

Readme

Keywords

none

Package Sidebar

Install

npm i @buildwithlayer/layer-mcp-demo

Weekly Downloads

11

Version

0.0.9

License

none

Unpacked Size

20.5 kB

Total Files

6

Last publish

Collaborators

  • codewithlayer
  • ayaanglayer
  • gavyn_with_layer