MCPcopy Create free account

hub / github.com/NuyoahCh/mcpchainx / functions

Functions459 in github.com/NuyoahCh/mcpchainx

↓ 1 callersFunctionWithMetrics
WithMetrics 启用 HTTP 请求指标采集。
internal/api/server.go:45
↓ 1 callersFunctionWithProcessorLogger
WithProcessorLogger 指定日志输出。
internal/task/processor.go:37
↓ 1 callersFunctionWithSubject
WithSubject 将经过身份验证的主体信息存储到上下文中。
internal/auth/context.go:9
↓ 1 callersFunctionWithUpdatedUntil
WithUpdatedUntil filters tasks updated before the provided instant (inclusive).
internal/task/list_options.go:95
↓ 1 callersFunctionWithWorkerCount
WithWorkerCount 设置消费协程数量。
internal/task/processor.go:44
↓ 1 callersFunction_build_client
(host: str, port: int)
examples/task_quickstart.py:24
↓ 1 callersFunction_format_history_lines
(history: Iterable[dict[str, Any]])
scripts/llm_bridge.py:14
↓ 1 callersFunction_format_knowledge_lines
(knowledge: Iterable[dict[str, Any]])
scripts/llm_bridge.py:35
↓ 1 callersMethodapplyDefaults
applyDefaults 在用户未填写部分字段时设置合理的默认值。
internal/config/config.go:237
↓ 1 callersFunctionapplyMigration
(ctx context.Context, db *sql.DB, migration migrationFile)
internal/storage/mysql/migrations.go:76
↓ 1 callersFunctionapplyQuickGoal
(text: string)
web/src/components/TaskForm.tsx:60
↓ 1 callersFunctionauthenticate
( credentials: AuthCredentials, )
web/src/api.ts:743
↓ 1 callersMethodauthenticateJWT
authenticateJWT 处理基于 JWT 的身份验证请求。
internal/auth/service.go:126
↓ 1 callersMethodauthenticateOAuth
authenticateOAuth 处理基于 OAuth 的身份验证请求。
internal/auth/service.go:167
↓ 1 callersMethodbalanceBackend
()
internal/web3/ethereum/client.go:343
↓ 1 callersFunctionboolToInt
(b bool)
internal/storage/mysql/auth_store.go:200
↓ 1 callersFunctionbuildAuditLogger
(cfg AuditConfig)
pkg/logger/logger.go:101
↓ 1 callersFunctionbuildHandler
(format string, outputs []string, opts *slog.HandlerOptions)
pkg/logger/logger.go:71
↓ 1 callersMethodbuildPayload
(req llm.Request)
internal/llm/openai/client.go:136
↓ 1 callersFunctionbuildUserPrompt
(req llm.Request)
internal/llm/openai/client.go:171
↓ 1 callersFunctionbuild_parser
()
scripts/task_client.py:60
↓ 1 callersFunctionbuild_reply
( goal: str, action: str, address: str, history = None, knowledge = None, )
scripts/llm_bridge.py:48
↓ 1 callersMethodcleanupByAge
()
pkg/logger/rotate.go:130
↓ 1 callersFunctioncloneConfig
(cfg map[string]any)
pkg/plugin/manager.go:227
↓ 1 callersMethodcollectKnowledge
collectKnowledge 从知识库中检索相关内容以供大模型参考。
internal/agent/agent.go:281
↓ 1 callersMethodcontractBackend
()
internal/web3/ethereum/client.go:323
↓ 1 callersFunctioncreateLLMClient
createLLMClient 根据配置创建大模型客户端。
cmd/openmcpd/main.go:288
↓ 1 callersFunctioncreateTask
(payload: CreateTaskRequest)
web/src/api.ts:785
↓ 1 callersMethodeventBackend
()
internal/web3/ethereum/client.go:333
↓ 1 callersMethodexchange
exchange 处理 OAuth 令牌交换请求。
internal/auth/service.go:474
↓ 1 callersFunctionfetchTask
(id: string)
web/src/api.ts:682
↓ 1 callersFunctionformatSyncTime
(lastSynced: number | null)
web/src/components/ConnectionSettings.tsx:19
↓ 1 callersMethodhandleCreateTask
handleCreateTask 处理创建智能体任务的请求。
internal/api/server.go:197
↓ 1 callersMethodhandleExecutionFailure
(ctx context.Context, task *Task, execErr error)
internal/task/processor.go:153
↓ 1 callersMethodhandleTasks
handleTasks 处理与智能体任务相关的请求。
internal/api/server.go:117
↓ 1 callersFunctionhashPassword
(password string)
internal/auth/service.go:586
↓ 1 callersFunctioninitAuth
initAuth 初始化认证服务。
cmd/openmcpd/main.go:314
↓ 1 callersMethodinitSchema
()
internal/task/mysql_store.go:48
↓ 1 callersMethodintrospect
introspect 验证 OAuth 令牌并返回相应的主体信息。
internal/auth/service.go:529
↓ 1 callersFunctioninvoke_task
(endpoint: str, goal: str, chain_action: str | None, address: str | None, metadata: Dict[str, Any])
examples/task_quickstart.py:28
↓ 1 callersFunctionloadAppliedVersions
(ctx context.Context, db *sql.DB)
internal/storage/mysql/migrations.go:55
↓ 1 callersFunctionloadAuthState
()
web/src/api.ts:111
↓ 1 callersMethodloadConfigured
(cfg ManagerConfig)
pkg/plugin/manager.go:203
↓ 1 callersMethodloadFromDisk
()
internal/storage/mysql/task_repository.go:182
↓ 1 callersMethodloadHistory
loadHistory 加载历史任务记录以供大模型参考。
internal/agent/agent.go:254
↓ 1 callersFunctionloadMigrationFiles
()
internal/storage/mysql/migrations.go:100
↓ 1 callersFunctionlogout
()
web/src/api.ts:782
↓ 1 callersFunctionmain
()
scripts/llm_bridge.py:92
↓ 1 callersFunctionmain
(argv: list[str] | None = None)
scripts/task_client.py:83
↓ 1 callersFunctionmain
()
examples/task_quickstart.py:123
↓ 1 callersFunctionmarshalMetadata
(metadata map[string]any)
internal/task/mysql_store.go:397
↓ 1 callersFunctionmatches
matches 检查知识片段是否与目标或链上操作匹配。
internal/knowledge/static.go:88
↓ 1 callersFunctionmatchesSearch
(task: TaskItem)
web/src/App.tsx:103
↓ 1 callersFunctionmergeInfo
(info Info, id string)
pkg/plugin/manager.go:220
↓ 1 callersMethodneedsRotate
(incoming int)
pkg/logger/rotate.go:97
↓ 1 callersFunctionnewHistogram
newHistogram 创建并初始化一个新的直方图实例。
internal/observability/metrics/http.go:84
↓ 1 callersFunctionnewOAuthClient
newOAuthClient 创建并配置一个新的 OAuth 客户端实例。
internal/auth/service.go:460
↓ 1 callersFunctionnewRotatingWriter
(path string, maxSizeMB, maxBackups, maxAgeDays int)
pkg/logger/rotate.go:22
↓ 1 callersMethodnonceBackend
()
internal/web3/ethereum/client.go:357
↓ 1 callersFunctionnormalizeStatuses
(input []Status)
internal/task/list_options.go:139
↓ 1 callersFunctionnotifyAuthListeners
()
web/src/api.ts:99
↓ 1 callersMethodobserve
observe 记录一次 HTTP 请求的指标数据。
internal/observability/metrics/http.go:63
↓ 1 callersFunctionopenWriter
(path string)
pkg/logger/logger.go:124
↓ 1 callersFunctionparseAudience
parseAudience 解析 JWT 受众字符串为字符串切片。
cmd/openmcpd/main.go:403
↓ 1 callersFunctionparseJsonResponse
(response: Response)
web/src/api.ts:201
↓ 1 callersFunctionparseLevel
(level string)
pkg/logger/logger.go:142
↓ 1 callersFunctionparseMigrationVersion
(name string)
internal/storage/mysql/migrations.go:151
↓ 1 callersFunctionparseStatusFilters
(values []string)
internal/api/server.go:605
↓ 1 callersFunctionparse_metadata
(pairs: list[str])
examples/task_quickstart.py:113
↓ 1 callersFunctionpersistAuthState
(next: AuthState | null)
web/src/api.ts:88
↓ 1 callersFunctionpickClaim
pickClaim 从内省响应中提取指定的声明值。
internal/auth/service.go:565
↓ 1 callersMethodrotate
()
pkg/logger/rotate.go:104
↓ 1 callersFunctionrun
run 包含 openmcpd 的主逻辑。
cmd/openmcpd/main.go:45
↓ 1 callersFunctionsplitSQLStatements
(content string)
internal/storage/mysql/migrations.go:138
↓ 1 callersFunctionstatusClassName
(status: TaskStatus)
web/src/api.ts:706
↓ 1 callersMethodstatusCode
statusCode 返回捕获的状态码,默认为 200。
internal/api/server.go:454
↓ 1 callersFunctionsubscribeAuth
(listener: AuthListener)
web/src/api.ts:729
↓ 1 callersFunctiontaskHasResult
(task *Task)
internal/task/memory_store.go:213
↓ 1 callersFunctiontaskMatchesQuery
(task *Task, query string)
internal/task/memory_store.go:221
↓ 1 callersFunctionuseApiBaseUrl
()
web/src/hooks/useApiBaseUrl.ts:4
↓ 1 callersFunctionuseAuth
()
web/src/hooks/useAuth.ts:17
↓ 1 callersFunctionuseNetworkStatus
()
web/src/hooks/useNetworkStatus.ts:39
↓ 1 callersFunctionuseToast
(timeout = 5200)
web/src/App.tsx:35
↓ 1 callersFunctionverifyApiConnection
()
web/src/api.ts:687
↓ 1 callersMethodverifyJWT
verifyJWT 验证 JWT 令牌并返回相应的主体信息。
internal/auth/service.go:199
↓ 1 callersMethodverifyOAuth
verifyOAuth 验证 OAuth 令牌并返回相应的主体信息。
internal/auth/service.go:229
↓ 1 callersFunctionverifyPassword
verifyPassword 验证给定的密码是否与哈希值匹配。
internal/auth/service.go:601
↓ 1 callersFunctionwaitForReceipt
(ctx context.Context, backend *backends.SimulatedBackend, hash common.Hash)
internal/web3/ethereum/client_test.go:144
↓ 1 callersFunctionwithContext
withContext 确保请求处理能够感知根上下文取消。
internal/api/server.go:462
MethodApplySeed
ApplySeed 应用单个种子数据以添加或更新用户记录。
internal/auth/memory_store.go:61
MethodApplySeed
ApplySeed upserts default users and permissions.
internal/storage/mysql/auth_store.go:119
FunctionAuthPanel
({ auth, isExpired, requiresAuth, onLogin, onLogout }: AuthPanelProps)
web/src/components/AuthPanel.tsx:33
MethodChains
Chains returns the list of registered chain names.
internal/web3/provider/registry.go:118
MethodChannel
Channel 返回邮件渠道。
internal/observability/alerting/alert.go:95
MethodChannel
Channel 返回钉钉渠道。
internal/observability/alerting/alert.go:126
MethodChannel
Channel 返回 Slack 渠道。
internal/observability/alerting/alert.go:151
MethodClaim
Claim 将任务状态更新为运行中。
internal/task/memory_store.go:71
MethodClaim
Claim 将任务标记为运行中并返回最新状态。
internal/task/mysql_store.go:183
MethodCleanup
Cleanup implements IsolationStrategy.
pkg/plugin/isolation.go:45
MethodClose
()
pkg/logger/rotate.go:67
← previousnext →201–300 of 459, ranked by callers