Skip to main content
Glama

get_config

Retrieve Tiny Tiny RSS server configuration details including daemon status and subscription counts to monitor feed management operations.

Instructions

获取 tt-rss 服务器配置信息 (守护进程状态、订阅数等)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration and handler implementation for the "get_config" MCP tool. It calls the TtrssClient's getConfig method.
    server.tool(
      "get_config",
      "获取 tt-rss 服务器配置信息 (守护进程状态、订阅数等)",
      {},
      async () => {
        try {
          const config = await client.getConfig();
          return {
            content: [{ type: "text" as const, text: JSON.stringify(config, null, 2) }],
          };
        } catch (e: unknown) {
          return {
            content: [{ type: "text" as const, text: `获取配置失败: ${(e as Error).message}` }],
            isError: true,
          };
        }
      },
    );
  • The actual implementation in the TtrssClient class that performs the API request to fetch configuration.
    async getConfig(): Promise<TtrssConfig> {
      return this.request<TtrssConfig>("getConfig");
    }

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/aooiuu/ttrss-mcp'

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