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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:31-48 (handler)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, }; } }, ); - src/ttrss-client.ts:166-168 (helper)The actual implementation in the TtrssClient class that performs the API request to fetch configuration.
async getConfig(): Promise<TtrssConfig> { return this.request<TtrssConfig>("getConfig"); }