Typed TypeScript client for the Transport for London API: friendly wrappers, full raw coverage, static station sequences, and UI helpers for official line colours.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add tfl-ts --env TFL_APP_KEY='<TFL_APP_KEY>' -- npx -y tfl-ts~/.codex/config.toml
[mcp_servers.tfl-ts]
command = "npx"
args = ["-y", "tfl-ts"]
env = { TFL_APP_KEY = "<TFL_APP_KEY>" }
# codex mcp add tfl-ts --env TFL_APP_KEY='<TFL_APP_KEY>' -- npx -y tfl-ts~/.cursor/mcp.json
{
"mcpServers": {
"tfl-ts": {
"command": "npx",
"args": [
"-y",
"tfl-ts"
],
"env": {
"TFL_APP_KEY": "<TFL_APP_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"tfl-ts": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"tfl-ts"
],
"env": {
"TFL_APP_KEY": "<TFL_APP_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"tfl-ts": {
"command": "npx",
"args": [
"-y",
"tfl-ts"
],
"env": {
"TFL_APP_KEY": "<TFL_APP_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"tfl-ts": {
"command": "npx",
"args": [
"-y",
"tfl-ts"
],
"env": {
"TFL_APP_KEY": "<TFL_APP_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"tfl-ts": {
"command": "npx",
"args": [
"-y",
"tfl-ts"
],
"env": {
"TFL_APP_KEY": "<TFL_APP_KEY>"
}
}
}
}需要的环境变量
TFL_APP_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。