Skip to main content
Glama
tomjwxf

protect-mcp

read_file

Access file contents through a security gateway with policy enforcement, approval gates, and verifiable decision receipts for controlled data retrieval.

Instructions

Read the contents of a file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFile path to read

Implementation Reference

  • The implementation of the read_file tool handler in the demo MCP server.
    case 'read_file':
      resultText = `[demo] Read file: ${args.path || '/example.txt'}\nContents: Hello from protect-mcp demo server!`;
      break;
  • The definition/registration of the read_file tool in the demo MCP server.
    {
      name: 'read_file',
      description: 'Read the contents of a file',
      inputSchema: {
        type: 'object',
        properties: { path: { type: 'string', description: 'File path to read' } },
        required: ['path'],
      },
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tomjwxf/scopeblind-gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server