translation/source/documents/course/02-agent-tools-mcp/25-creating-notes-directory.md

846 B

Creating a Notes Directory

Like the Hacker News MCP server, the Filesystem MCP server can be run directly using a package manager. We'll use PNPX (the Pnpm version of NPX) to run it.

First, let's create a directory where our agent can store notes and other files:

mkdir -p notes

This command creates a directory called notes in your project's root directory. This is where your agent will store any files it creates or modifies. The -p flag ensures that the command doesn't fail if the directory already exists.

Creating a dedicated directory for your agent's files is a good practice for several reasons:

  • It keeps your agent's files separate from your application code
  • It makes it easier to backup or version control your agent's data
  • It provides a clear boundary for what your agent can access, enhancing security