Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NuyoahCh/mcpchainx
/ functions
Functions
459 in github.com/NuyoahCh/mcpchainx
⨍
Functions
459
◇
Types & classes
188
↓ 1 callers
Function
WithMetrics
WithMetrics 启用 HTTP 请求指标采集。
internal/api/server.go:45
↓ 1 callers
Function
WithProcessorLogger
WithProcessorLogger 指定日志输出。
internal/task/processor.go:37
↓ 1 callers
Function
WithSubject
WithSubject 将经过身份验证的主体信息存储到上下文中。
internal/auth/context.go:9
↓ 1 callers
Function
WithUpdatedUntil
WithUpdatedUntil filters tasks updated before the provided instant (inclusive).
internal/task/list_options.go:95
↓ 1 callers
Function
WithWorkerCount
WithWorkerCount 设置消费协程数量。
internal/task/processor.go:44
↓ 1 callers
Function
_build_client
(host: str, port: int)
examples/task_quickstart.py:24
↓ 1 callers
Function
_format_history_lines
(history: Iterable[dict[str, Any]])
scripts/llm_bridge.py:14
↓ 1 callers
Function
_format_knowledge_lines
(knowledge: Iterable[dict[str, Any]])
scripts/llm_bridge.py:35
↓ 1 callers
Method
applyDefaults
applyDefaults 在用户未填写部分字段时设置合理的默认值。
internal/config/config.go:237
↓ 1 callers
Function
applyMigration
(ctx context.Context, db *sql.DB, migration migrationFile)
internal/storage/mysql/migrations.go:76
↓ 1 callers
Function
applyQuickGoal
(text: string)
web/src/components/TaskForm.tsx:60
↓ 1 callers
Function
authenticate
( credentials: AuthCredentials, )
web/src/api.ts:743
↓ 1 callers
Method
authenticateJWT
authenticateJWT 处理基于 JWT 的身份验证请求。
internal/auth/service.go:126
↓ 1 callers
Method
authenticateOAuth
authenticateOAuth 处理基于 OAuth 的身份验证请求。
internal/auth/service.go:167
↓ 1 callers
Method
balanceBackend
()
internal/web3/ethereum/client.go:343
↓ 1 callers
Function
boolToInt
(b bool)
internal/storage/mysql/auth_store.go:200
↓ 1 callers
Function
buildAuditLogger
(cfg AuditConfig)
pkg/logger/logger.go:101
↓ 1 callers
Function
buildHandler
(format string, outputs []string, opts *slog.HandlerOptions)
pkg/logger/logger.go:71
↓ 1 callers
Method
buildPayload
(req llm.Request)
internal/llm/openai/client.go:136
↓ 1 callers
Function
buildUserPrompt
(req llm.Request)
internal/llm/openai/client.go:171
↓ 1 callers
Function
build_parser
()
scripts/task_client.py:60
↓ 1 callers
Function
build_reply
( goal: str, action: str, address: str, history = None, knowledge = None, )
scripts/llm_bridge.py:48
↓ 1 callers
Method
cleanupByAge
()
pkg/logger/rotate.go:130
↓ 1 callers
Function
cloneConfig
(cfg map[string]any)
pkg/plugin/manager.go:227
↓ 1 callers
Method
collectKnowledge
collectKnowledge 从知识库中检索相关内容以供大模型参考。
internal/agent/agent.go:281
↓ 1 callers
Method
contractBackend
()
internal/web3/ethereum/client.go:323
↓ 1 callers
Function
createLLMClient
createLLMClient 根据配置创建大模型客户端。
cmd/openmcpd/main.go:288
↓ 1 callers
Function
createTask
(payload: CreateTaskRequest)
web/src/api.ts:785
↓ 1 callers
Method
eventBackend
()
internal/web3/ethereum/client.go:333
↓ 1 callers
Method
exchange
exchange 处理 OAuth 令牌交换请求。
internal/auth/service.go:474
↓ 1 callers
Function
fetchTask
(id: string)
web/src/api.ts:682
↓ 1 callers
Function
formatSyncTime
(lastSynced: number | null)
web/src/components/ConnectionSettings.tsx:19
↓ 1 callers
Method
handleCreateTask
handleCreateTask 处理创建智能体任务的请求。
internal/api/server.go:197
↓ 1 callers
Method
handleExecutionFailure
(ctx context.Context, task *Task, execErr error)
internal/task/processor.go:153
↓ 1 callers
Method
handleTasks
handleTasks 处理与智能体任务相关的请求。
internal/api/server.go:117
↓ 1 callers
Function
hashPassword
(password string)
internal/auth/service.go:586
↓ 1 callers
Function
initAuth
initAuth 初始化认证服务。
cmd/openmcpd/main.go:314
↓ 1 callers
Method
initSchema
()
internal/task/mysql_store.go:48
↓ 1 callers
Method
introspect
introspect 验证 OAuth 令牌并返回相应的主体信息。
internal/auth/service.go:529
↓ 1 callers
Function
invoke_task
(endpoint: str, goal: str, chain_action: str | None, address: str | None, metadata: Dict[str, Any])
examples/task_quickstart.py:28
↓ 1 callers
Function
loadAppliedVersions
(ctx context.Context, db *sql.DB)
internal/storage/mysql/migrations.go:55
↓ 1 callers
Function
loadAuthState
()
web/src/api.ts:111
↓ 1 callers
Method
loadConfigured
(cfg ManagerConfig)
pkg/plugin/manager.go:203
↓ 1 callers
Method
loadFromDisk
()
internal/storage/mysql/task_repository.go:182
↓ 1 callers
Method
loadHistory
loadHistory 加载历史任务记录以供大模型参考。
internal/agent/agent.go:254
↓ 1 callers
Function
loadMigrationFiles
()
internal/storage/mysql/migrations.go:100
↓ 1 callers
Function
logout
()
web/src/api.ts:782
↓ 1 callers
Function
main
()
scripts/llm_bridge.py:92
↓ 1 callers
Function
main
(argv: list[str] | None = None)
scripts/task_client.py:83
↓ 1 callers
Function
main
()
examples/task_quickstart.py:123
↓ 1 callers
Function
marshalMetadata
(metadata map[string]any)
internal/task/mysql_store.go:397
↓ 1 callers
Function
matches
matches 检查知识片段是否与目标或链上操作匹配。
internal/knowledge/static.go:88
↓ 1 callers
Function
matchesSearch
(task: TaskItem)
web/src/App.tsx:103
↓ 1 callers
Function
mergeInfo
(info Info, id string)
pkg/plugin/manager.go:220
↓ 1 callers
Method
needsRotate
(incoming int)
pkg/logger/rotate.go:97
↓ 1 callers
Function
newHistogram
newHistogram 创建并初始化一个新的直方图实例。
internal/observability/metrics/http.go:84
↓ 1 callers
Function
newOAuthClient
newOAuthClient 创建并配置一个新的 OAuth 客户端实例。
internal/auth/service.go:460
↓ 1 callers
Function
newRotatingWriter
(path string, maxSizeMB, maxBackups, maxAgeDays int)
pkg/logger/rotate.go:22
↓ 1 callers
Method
nonceBackend
()
internal/web3/ethereum/client.go:357
↓ 1 callers
Function
normalizeStatuses
(input []Status)
internal/task/list_options.go:139
↓ 1 callers
Function
notifyAuthListeners
()
web/src/api.ts:99
↓ 1 callers
Method
observe
observe 记录一次 HTTP 请求的指标数据。
internal/observability/metrics/http.go:63
↓ 1 callers
Function
openWriter
(path string)
pkg/logger/logger.go:124
↓ 1 callers
Function
parseAudience
parseAudience 解析 JWT 受众字符串为字符串切片。
cmd/openmcpd/main.go:403
↓ 1 callers
Function
parseJsonResponse
(response: Response)
web/src/api.ts:201
↓ 1 callers
Function
parseLevel
(level string)
pkg/logger/logger.go:142
↓ 1 callers
Function
parseMigrationVersion
(name string)
internal/storage/mysql/migrations.go:151
↓ 1 callers
Function
parseStatusFilters
(values []string)
internal/api/server.go:605
↓ 1 callers
Function
parse_metadata
(pairs: list[str])
examples/task_quickstart.py:113
↓ 1 callers
Function
persistAuthState
(next: AuthState | null)
web/src/api.ts:88
↓ 1 callers
Function
pickClaim
pickClaim 从内省响应中提取指定的声明值。
internal/auth/service.go:565
↓ 1 callers
Method
rotate
()
pkg/logger/rotate.go:104
↓ 1 callers
Function
run
run 包含 openmcpd 的主逻辑。
cmd/openmcpd/main.go:45
↓ 1 callers
Function
splitSQLStatements
(content string)
internal/storage/mysql/migrations.go:138
↓ 1 callers
Function
statusClassName
(status: TaskStatus)
web/src/api.ts:706
↓ 1 callers
Method
statusCode
statusCode 返回捕获的状态码,默认为 200。
internal/api/server.go:454
↓ 1 callers
Function
subscribeAuth
(listener: AuthListener)
web/src/api.ts:729
↓ 1 callers
Function
taskHasResult
(task *Task)
internal/task/memory_store.go:213
↓ 1 callers
Function
taskMatchesQuery
(task *Task, query string)
internal/task/memory_store.go:221
↓ 1 callers
Function
useApiBaseUrl
()
web/src/hooks/useApiBaseUrl.ts:4
↓ 1 callers
Function
useAuth
()
web/src/hooks/useAuth.ts:17
↓ 1 callers
Function
useNetworkStatus
()
web/src/hooks/useNetworkStatus.ts:39
↓ 1 callers
Function
useToast
(timeout = 5200)
web/src/App.tsx:35
↓ 1 callers
Function
verifyApiConnection
()
web/src/api.ts:687
↓ 1 callers
Method
verifyJWT
verifyJWT 验证 JWT 令牌并返回相应的主体信息。
internal/auth/service.go:199
↓ 1 callers
Method
verifyOAuth
verifyOAuth 验证 OAuth 令牌并返回相应的主体信息。
internal/auth/service.go:229
↓ 1 callers
Function
verifyPassword
verifyPassword 验证给定的密码是否与哈希值匹配。
internal/auth/service.go:601
↓ 1 callers
Function
waitForReceipt
(ctx context.Context, backend *backends.SimulatedBackend, hash common.Hash)
internal/web3/ethereum/client_test.go:144
↓ 1 callers
Function
withContext
withContext 确保请求处理能够感知根上下文取消。
internal/api/server.go:462
Method
ApplySeed
ApplySeed 应用单个种子数据以添加或更新用户记录。
internal/auth/memory_store.go:61
Method
ApplySeed
ApplySeed upserts default users and permissions.
internal/storage/mysql/auth_store.go:119
Function
AuthPanel
({ auth, isExpired, requiresAuth, onLogin, onLogout }: AuthPanelProps)
web/src/components/AuthPanel.tsx:33
Method
Chains
Chains returns the list of registered chain names.
internal/web3/provider/registry.go:118
Method
Channel
Channel 返回邮件渠道。
internal/observability/alerting/alert.go:95
Method
Channel
Channel 返回钉钉渠道。
internal/observability/alerting/alert.go:126
Method
Channel
Channel 返回 Slack 渠道。
internal/observability/alerting/alert.go:151
Method
Claim
Claim 将任务状态更新为运行中。
internal/task/memory_store.go:71
Method
Claim
Claim 将任务标记为运行中并返回最新状态。
internal/task/mysql_store.go:183
Method
Cleanup
Cleanup implements IsolationStrategy.
pkg/plugin/isolation.go:45
Method
Close
()
pkg/logger/rotate.go:67
← previous
next →
201–300 of 459, ranked by callers