MCP 服务器

ContextLayer

io.github.DotNova/context-layer
知识与文档 生产力 公开且可连接 MCP 2025-11-25

此 MCP 可以做什么

Stores and retrieves organizational documents and knowledge-graph context while managing projects, tasks, teams and work sessions.

accept_org_invite
Accept a pending organization invite by organization name.
输入模式
{'type': 'object', 'title': 'AcceptOrgInviteParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['org_name'], 'properties': {'org_name': {'type': 'string', 'description': 'Organization name to accept the invite for'}}}
add_task_dependency
Add a dependency between tasks. Use this to express that a task is blocked by another task (must complete first) or relates to it. This prevents context contamination: when Task B depends on Task A, agents working on Task B will be warned if Task A is still in progress.
输入模式
{'type': 'object', 'title': 'AddTaskDependencyParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['task_id', 'depends_on_task_id'], 'properties': {'task_id': {'type': 'string', 'description': 'The task that is blocked (depends on the other task)'}, 'dependency_type': {'type': ['string', 'null'], 'description': "Dependency type: 'blocks' (must complete before) or 'relates_to' (informational link). Default: blocks"}, 'depends_on_task_id': {'type': 'string', 'description': 'The task that blocks (the dependency / prerequisite)'}}}
add_team_member
Add a member to a team. Find the team by name or ID, and the user by name or email.
输入模式
{'type': 'object', 'title': 'AddTeamMemberParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['user'], 'properties': {'role': {'type': ['string', 'null'], 'description': 'Role in team: member or lead (default: member)'}, 'user': {'type': 'string', 'description': 'User name or email to add'}, 'team_id': {'type': ['string', 'null'], 'description': 'Team ID (optional if team_name is provided)'}, 'team_name': {'type': ['string', 'null'], 'description': 'Team name (optional if team_id is provided)'}}}
assign_task
Assign a user to a task by name or email. The user is added to the task's assignees and linked in the knowledge graph.
输入模式
{'type': 'object', 'title': 'AssignTaskParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['task_id', 'user'], 'properties': {'user': {'type': 'string', 'description': 'User name or email to assign'}, 'task_id': {'type': 'string', 'description': 'Task ID'}}}
create_position
Create a new job position/title in your organization (admin only).
输入模式
{'type': 'object', 'title': 'CreatePositionParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['title'], 'properties': {'title': {'type': 'string', 'description': "Position title (e.g. 'Frontend Developer')"}, 'description': {'type': ['string', 'null'], 'description': 'Position description (optional)'}, 'permissions': {'description': 'JSON object mapping permission keys to booleans, e.g. {"can_view_all_projects": true, "can_manage_documents": false}. Use list_positions to see all available permission keys.'}}}
create_project
Create a new project in your organization. You will be added as the project owner.
输入模式
{'type': 'object', 'title': 'CreateProjectParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['name'], 'properties': {'name': {'type': 'string', 'description': 'Project name'}, 'description': {'type': ['string', 'null'], 'description': 'Project description (optional)'}}}
create_sprint
Create a new sprint for a project. Automatically migrates non-completed tasks (todo/in_progress) from the previous sprint. On first use, creates Sprint 0 (Backlog) for existing tasks and Sprint 1 as the active sprint.
输入模式
{'type': 'object', 'title': 'CreateSprintParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'goal': {'type': ['string', 'null'], 'description': 'Sprint goal (optional)'}, 'name': {'type': ['string', 'null'], 'description': "Sprint name (default: 'Sprint N')"}, 'project_id': {'type': ['string', 'null'], 'description': 'Project ID (alternative to project_name)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name'}}}
create_task
Create a new task in a project. Tasks track work items and can be assigned to team members and linked to sessions.
输入模式
{'type': 'object', 'title': 'CreateTaskParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['title'], 'properties': {'tags': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': "Tags for categorization (e.g. ['bug', 'frontend'])"}, 'title': {'type': 'string', 'description': 'Task title'}, 'due_at': {'type': ['string', 'null'], 'description': "Due date in ISO 8601 format (e.g. '2026-03-15T00:00:00Z')"}, 'team_id': {'type': ['string', 'null'], 'description': 'Team ID (alternative to team_name)'}, 'priority': {'type': ['string', 'null'], 'description': 'Priority: low, medium, high, urgent (default: medium)'}, 'assignees': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': 'Assignee names or emails (optional — resolves to user IDs)'}, 'team_name': {'type': ['string', 'null'], 'description': 'Team name to assign to (optional — resolves to team ID)'}, 'depends_on': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': "Task IDs that this task depends on / is blocked by (optional). Creates 'blocks' dependencies."}, 'project_id': {'type': ['string', 'null'], 'description': 'Project ID (alternative to project_name)'}, 'description': {'type': ['string', 'null'], 'description': 'Task description (optional)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name to create the task in'}, 'sprint_number': {'type': ['integer', 'null'], 'format': 'int32', 'description': 'Sprint number to assign the task to (optional — auto-assigns to current sprint if omitted)'}}}
create_team
Create a new team in your organization. You will be added as team lead.
输入模式
{'type': 'object', 'title': 'CreateTeamParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['name'], 'properties': {'name': {'type': 'string', 'description': 'Team name'}, 'objectives': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': 'Team objectives as a list of strings (optional)'}, 'description': {'type': ['string', 'null'], 'description': 'Team description (optional)'}}}
delete_document
Delete a document from the knowledge base. This permanently removes the document.
输入模式
{'type': 'object', 'title': 'DeleteDocumentParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['document_id'], 'properties': {'document_id': {'type': 'string', 'description': 'Document ID to delete'}}}
delete_position
Delete a position permanently (admin only). Find by title or ID.
输入模式
{'type': 'object', 'title': 'DeletePositionParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'position_id': {'type': ['string', 'null'], 'description': 'Position ID (optional if position_title is provided)'}, 'position_title': {'type': ['string', 'null'], 'description': 'Position title (optional if position_id is provided)'}}}
delete_project
Delete a project permanently (admin only). Find by name or ID.
输入模式
{'type': 'object', 'title': 'DeleteProjectParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'project_id': {'type': ['string', 'null'], 'description': 'Project ID (optional if project_name is provided)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name (optional if project_id is provided)'}}}
delete_task
Delete a task permanently. The task and all its assignee links are removed.
输入模式
{'type': 'object', 'title': 'DeleteTaskParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['task_id'], 'properties': {'task_id': {'type': 'string', 'description': 'Task ID to delete'}}}
delete_team
Delete a team permanently (admin only). Find by name or ID.
输入模式
{'type': 'object', 'title': 'DeleteTeamParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'team_id': {'type': ['string', 'null'], 'description': 'Team ID (optional if team_name is provided)'}, 'team_name': {'type': ['string', 'null'], 'description': 'Team name (optional if team_id is provided)'}}}
delete_user
Delete (soft-delete) a user from your organization (admin/owner only).
输入模式
{'type': 'object', 'title': 'DeleteUserParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['user'], 'properties': {'user': {'type': 'string', 'description': 'User name or email to delete'}}}
end_session
End a work session. This triggers context block generation — your activities are summarized and stored in the knowledge graph for future reference.
输入模式
{'type': 'object', 'title': 'EndSessionParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['session_id', 'outcome'], 'properties': {'outcome': {'type': 'string', 'description': 'Outcome: success, failure, partial, abandoned'}, 'session_id': {'type': 'string', 'description': 'Session ID to end'}, 'token_usage': {'description': 'Token usage for this session. JSON object with fields: input_tokens (int), output_tokens (int), total_tokens (int), model (string), estimated_cost_usd (float). Optional — set when the agent can report consumption.'}}}
find_documents
Search documents in the organization's knowledge base. Filter by category, tags, project, or free-text query. Returns document metadata — use get_document to read the full content.
输入模式
{'type': 'object', 'title': 'FindDocumentsParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'tags': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': 'Filter by tags'}, 'limit': {'type': ['integer', 'null'], 'format': 'int32', 'description': 'Maximum results (default 10)'}, 'query': {'type': ['string', 'null'], 'description': 'Search query (matches title and content)'}, 'category': {'type': ['string', 'null'], 'description': 'Filter by category: template, policy, procedure, reference, contract, guide, checklist'}, 'team_name': {'type': ['string', 'null'], 'description': 'Filter by team name'}, 'project_name': {'type': ['string', 'null'], 'description': 'Filter by project name'}}}
get_context
Get intelligent context from the knowledge graph. Pass a query describing what you need — the system will automatically route to the right data sources (tasks, sessions, documents, teams, blocks) based on intent analysis + graph traversal + semantic similarity. Optionally narrow scope with project name or session ID.
输入模式
{'type': 'object', 'title': 'GetContextParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['query'], 'properties': {'query': {'type': 'string', 'description': "The user's question or intent — used for intelligent context routing. Describe what context is needed."}, 'max_tokens': {'type': ['integer', 'null'], 'format': 'int32', 'description': 'Maximum tokens for the response (default 500)'}, 'project_id': {'type': ['string', 'null'], 'description': 'Project ID (optional — if omitted, returns across all projects)'}, 'session_id': {'type': ['string', 'null'], 'description': 'Session ID (optional — if omitted, returns user-level context)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name (optional, alternative to project_id)'}}}
get_context_routing
Get the current context routing mode for the organization. Returns 'keyword_llm', 'keyword_only', or 'llm_only'.
输入模式
{'type': 'object', 'title': 'GetContextRoutingParams', '$schema': 'https://json-schema.org/draft/2020-12/schema'}
get_document
Get the full content of a document by its ID. Use find_documents first to search, then get_document to read the content. For binary documents (PDFs, images), content is returned base64-encoded with encoding='base64' and the mime_type field.
输入模式
{'type': 'object', 'title': 'GetDocumentParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['document_id'], 'properties': {'document_id': {'type': 'string', 'description': 'Document ID'}}}
get_live_activity
See what's happening right now: active sessions, recent events, traces, and tasks being worked on.
输入模式
{'type': 'object', 'title': 'GetLiveActivityParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'team_name': {'type': ['string', 'null'], 'description': 'Filter by team name (optional)'}, 'user_name': {'type': ['string', 'null'], 'description': 'Filter by user name (optional, partial match)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Filter by project name (optional)'}, 'recent_minutes': {'type': ['integer', 'null'], 'format': 'int32', 'description': 'Time window for recent events in minutes (default: 30)'}}}
get_my_stats
Get your personal activity statistics: total sessions, events, active days, projects worked on, and recent activity summary.
输入模式
{'type': 'object', 'title': 'EmptyParams', '$schema': 'https://json-schema.org/draft/2020-12/schema'}
get_org_stats
Get comprehensive organization statistics: counts, engagement metrics, task velocity.
输入模式
{'type': 'object', 'title': 'GetOrgStatsParams', '$schema': 'https://json-schema.org/draft/2020-12/schema'}
get_project_status
Get the current status of a project including recent activity. You can use either the project name or ID.
输入模式
{'type': 'object', 'title': 'GetProjectStatusParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'project_id': {'type': ['string', 'null'], 'description': 'Project ID (optional if project_name is provided)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name (optional, alternative to project_id)'}}}
get_session_details
Get full details of a session including all events/activities logged during it. Shows who did what, when, and the session block summary if available. Admins can view any session in the org; members can only view their own.
输入模式
{'type': 'object', 'title': 'GetSessionDetailsParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['session_id'], 'properties': {'session_id': {'type': 'string', 'description': 'Session ID to get details for'}}}
get_team_details
Get detailed information about a team: members (with roles), linked projects, and recent activity. Use team name or ID.
输入模式
{'type': 'object', 'title': 'GetTeamDetailsParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'team_id': {'type': ['string', 'null'], 'description': 'Team ID (optional if team_name is provided)'}, 'team_name': {'type': ['string', 'null'], 'description': 'Team name (optional if team_id is provided)'}}}
invite_user
Invite a new member to your organization (admin/owner only).
输入模式
{'type': 'object', 'title': 'InviteUserParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['email', 'name'], 'properties': {'name': {'type': 'string', 'description': 'Full name'}, 'role': {'type': ['string', 'null'], 'description': 'Role: member or admin (default: member)'}, 'email': {'type': 'string', 'description': 'User email address'}, 'skills': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': 'Skills list (optional)'}, 'positions': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': 'Position titles to assign (optional — resolves by name)'}, 'team_name': {'type': ['string', 'null'], 'description': 'Team name to add user to (optional)'}}}
link_task_session
Link a work session to a task. This records that the session was used to work on the task, connecting them in the knowledge graph.
输入模式
{'type': 'object', 'title': 'LinkTaskSessionParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['task_id', 'session_id'], 'properties': {'task_id': {'type': 'string', 'description': 'Task ID to link'}, 'session_id': {'type': 'string', 'description': 'Session ID to link to the task'}}}
link_team_project
Link a project to a team. Find both by name or ID.
输入模式
{'type': 'object', 'title': 'LinkTeamProjectParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'team_id': {'type': ['string', 'null'], 'description': 'Team ID (optional if team_name is provided)'}, 'team_name': {'type': ['string', 'null'], 'description': 'Team name (optional if team_id is provided)'}, 'project_id': {'type': ['string', 'null'], 'description': 'Project ID (optional if project_name is provided)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name (optional if project_id is provided)'}}}
list_colleagues
List colleagues in your organization. Shows name, email, role, and optionally filters by team. Admins see all users; members see users in their own teams.
输入模式
{'type': 'object', 'title': 'ListColleaguesParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'limit': {'type': ['integer', 'null'], 'format': 'int32', 'description': 'Maximum results (default 20)'}, 'team_name': {'type': ['string', 'null'], 'description': 'Filter by team name (optional — shows only members of that team)'}}}
list_notifications
List your notifications — task assignments, status changes, sprint updates, invites, and more. Returns unread notifications by default.
输入模式
{'type': 'object', 'title': 'ListNotificationsParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'limit': {'type': ['integer', 'null'], 'format': 'int32', 'description': 'Maximum results (default 20)'}, 'unread_only': {'type': ['boolean', 'null'], 'description': 'Only return unread notifications (default: true)'}}}
list_pending_invites
List pending organization invites for the current user.
输入模式
{'type': 'object', 'title': 'ListPendingInvitesParams', '$schema': 'https://json-schema.org/draft/2020-12/schema'}
list_positions
List all job positions/titles in your organization with member counts.
输入模式
{'type': 'object', 'title': 'ListPositionsParams', '$schema': 'https://json-schema.org/draft/2020-12/schema'}
list_project_members
List all members involved in a project. Includes users who have sessions in the project and users from teams linked to the project.
输入模式
{'type': 'object', 'title': 'ListProjectMembersParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'project_id': {'type': ['string', 'null'], 'description': 'Project ID'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name (alternative to project_id)'}}}
list_projects
List projects in your organization. No parameters needed — just call it to see all your projects.
输入模式
{'type': 'object', 'title': 'ListProjectsParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'org_id': {'type': ['string', 'null'], 'description': 'Optional organization ID (uses default org if omitted)'}}}
list_project_teams
List teams linked to a project.
输入模式
{'type': 'object', 'title': 'ListProjectTeamsParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'project_id': {'type': ['string', 'null'], 'description': 'Project ID'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name (alternative to project_id)'}}}
list_sessions
List your recent work sessions. Optionally filter by project name or ID. Shows task type, status, and event count.
输入模式
{'type': 'object', 'title': 'ListSessionsParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'limit': {'type': ['integer', 'null'], 'format': 'int32', 'description': 'Maximum results (default 10)'}, 'project_id': {'type': ['string', 'null'], 'description': 'Filter by project ID (optional)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Filter by project name (optional, alternative to project_id)'}}}
list_sprints
List sprints for a project. Shows sprint number, name, goal, status (current/completed), and task count.
输入模式
{'type': 'object', 'title': 'ListSprintsParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'project_id': {'type': ['string', 'null'], 'description': 'Project ID (alternative to project_name)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name'}}}
list_tasks
List tasks. Filter by project, status (todo/in_progress/done/cancelled), sprint number, or show only your tasks. Shows title, status, priority, assignees, sprint, and linked sessions.
输入模式
{'type': 'object', 'title': 'ListTasksParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'limit': {'type': ['integer', 'null'], 'format': 'int32', 'description': 'Maximum results (default 20)'}, 'status': {'type': ['string', 'null'], 'description': 'Filter by status: todo, in_progress, done, cancelled (optional)'}, 'mine_only': {'type': ['boolean', 'null'], 'description': 'Filter tasks assigned to me only (default: false)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Filter by project name (optional)'}, 'sprint_number': {'type': ['integer', 'null'], 'format': 'int32', 'description': 'Filter by sprint number (optional)'}}}
list_teams
List all teams in your organization. Shows team name, member count, project count, and description.
输入模式
{'type': 'object', 'title': 'EmptyParams', '$schema': 'https://json-schema.org/draft/2020-12/schema'}
log_activity
Log an activity or event. If no session_id is provided, a session is automatically created or reused for the project. Just pass project_name and content — no need to start a session first.
输入模式
{'type': 'object', 'title': 'LogActivityParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['event_type', 'content'], 'properties': {'source': {'type': ['string', 'null'], 'description': "Source of the event (e.g. 'claude-code', 'cursor', 'user')"}, 'content': {'type': 'string', 'description': 'Free-form content describing the activity'}, 'event_type': {'type': 'string', 'description': 'Event type: code_change, file_edit, command_run, decision, note, conversation, discovery'}, 'project_id': {'type': ['string', 'null'], 'description': 'Project ID (optional if project_name is provided)'}, 'session_id': {'type': ['string', 'null'], 'description': 'Session ID (optional — if omitted, a session is auto-created or reused for the project)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name (optional, alternative to project_id — used for auto-session)'}}}
log_trace
Log a granular agent action trace. High-frequency, no LLM processing.
输入模式
{'type': 'object', 'title': 'LogTraceParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['trace_type', 'summary'], 'properties': {'status': {'type': ['string', 'null'], 'description': 'Status: started, completed, failed (default: completed)'}, 'summary': {'type': 'string', 'description': 'Short description of the action'}, 'task_id': {'type': ['string', 'null'], 'description': 'Task ID to link this trace to (optional — auto-links session to task)'}, 'metadata': {'description': 'Free-form JSON metadata (optional)'}, 'trace_id': {'type': ['string', 'null'], 'description': 'Logical trace group ID (auto-generated if omitted)'}, 'project_id': {'type': ['string', 'null'], 'description': 'Project ID (optional, alternative to project_name)'}, 'session_id': {'type': ['string', 'null'], 'description': 'Session ID (optional — auto-resolved from project if omitted)'}, 'trace_type': {'type': 'string', 'description': 'Trace type: tool_call, file_read, file_write, code_search, code_edit, api_call, thinking, error'}, 'duration_ms': {'type': ['integer', 'null'], 'format': 'int32', 'description': 'Duration in milliseconds (optional)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name (optional, used for auto-session resolution)'}, 'parent_trace_id': {'type': ['string', 'null'], 'description': 'Parent trace ID for nesting (e.g. tool_call -> file_reads)'}}}
log_traces_batch
Log multiple traces in a single batch.
输入模式
{'type': 'object', '$defs': {'LogTraceParams': {'type': 'object', 'required': ['trace_type', 'summary'], 'properties': {'status': {'type': ['string', 'null'], 'description': 'Status: started, completed, failed (default: completed)'}, 'summary': {'type': 'string', 'description': 'Short description of the action'}, 'task_id': {'type': ['string', 'null'], 'description': 'Task ID to link this trace to (optional — auto-links session to task)'}, 'metadata': {'description': 'Free-form JSON metadata (optional)'}, 'trace_id': {'type': ['string', 'null'], 'description': 'Logical trace group ID (auto-generated if omitted)'}, 'project_id': {'type': ['string', 'null'], 'description': 'Project ID (optional, alternative to project_name)'}, 'session_id': {'type': ['string', 'null'], 'description': 'Session ID (optional — auto-resolved from project if omitted)'}, 'trace_type': {'type': 'string', 'description': 'Trace type: tool_call, file_read, file_write, code_search, code_edit, api_call, thinking, error'}, 'duration_ms': {'type': ['integer', 'null'], 'format': 'int32', 'description': 'Duration in milliseconds (optional)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name (optional, used for auto-session resolution)'}, 'parent_trace_id': {'type': ['string', 'null'], 'description': 'Parent trace ID for nesting (e.g. tool_call -> file_reads)'}}}}, 'title': 'LogTracesBatchParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['traces'], 'properties': {'traces': {'type': 'array', 'items': {'$ref': '#/$defs/LogTraceParams'}, 'description': 'Array of traces to log in a single batch'}}}
mark_notification_read
Mark a notification as read, or mark all notifications as read at once.
输入模式
{'type': 'object', 'title': 'MarkNotificationReadParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'mark_all': {'type': ['boolean', 'null'], 'description': 'Set to true to mark ALL notifications as read'}, 'notification_id': {'type': ['string', 'null'], 'description': 'Notification ID to mark as read (omit to use mark_all)'}}}
move_task_to_sprint
Move a task to a different sprint. Specify the target sprint by number or ID.
输入模式
{'type': 'object', 'title': 'MoveTaskToSprintParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['task_id'], 'properties': {'task_id': {'type': 'string', 'description': 'Task ID to move'}, 'sprint_id': {'type': ['string', 'null'], 'description': 'Target sprint ID (alternative to sprint_number)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name (needed if using sprint_number)'}, 'sprint_number': {'type': ['integer', 'null'], 'format': 'int32', 'description': 'Target sprint number'}}}
remove_task_dependency
Remove a dependency between tasks. This unblocks the task from the other task.
输入模式
{'type': 'object', 'title': 'RemoveTaskDependencyParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['task_id', 'depends_on_task_id'], 'properties': {'task_id': {'type': 'string', 'description': 'The task that was blocked'}, 'depends_on_task_id': {'type': 'string', 'description': 'The task that was blocking it'}}}
remove_team_member
Remove a member from a team. Find the team by name or ID, and the user by name or email.
输入模式
{'type': 'object', 'title': 'RemoveTeamMemberParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['user'], 'properties': {'user': {'type': 'string', 'description': 'User name or email to remove'}, 'team_id': {'type': ['string', 'null'], 'description': 'Team ID (optional if team_name is provided)'}, 'team_name': {'type': ['string', 'null'], 'description': 'Team name (optional if team_id is provided)'}}}
remove_user_from_org
Remove a user from the current organization without deleting their account. Admin/owner only.
输入模式
{'type': 'object', 'title': 'RemoveUserFromOrgParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['user'], 'properties': {'user': {'type': 'string', 'description': 'User name or email to remove from the organization'}}}
search_entities
Search entities in the knowledge graph by name. Finds people, companies, documents, concepts, tools, etc. that have been mentioned in your activities.
输入模式
{'type': 'object', 'title': 'SearchEntitiesParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['query'], 'properties': {'limit': {'type': ['integer', 'null'], 'format': 'int32', 'description': 'Maximum results (default 10)'}, 'query': {'type': 'string', 'description': 'Search query string (matches entity names)'}, 'entity_type': {'type': ['string', 'null'], 'description': 'Entity type filter: person, company, document, concept, tool, template, process'}}}
set_context_routing
Set the context routing mode for the organization. Requires admin role. Options: 'keyword_llm' (balanced), 'keyword_only' (fastest), 'llm_only' (most accurate).
输入模式
{'type': 'object', 'title': 'SetContextRoutingParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['mode'], 'properties': {'mode': {'type': 'string', 'description': "Routing mode: 'keyword_llm' (keyword + LLM fallback), 'keyword_only' (fastest), or 'llm_only' (most accurate)"}}}
setup_organization
Set up your organization in one step (admin only). Use this for onboarding.
输入模式
{'type': 'object', '$defs': {'SetupLink': {'type': 'object', 'required': ['label', 'url', 'type'], 'properties': {'url': {'type': 'string'}, 'type': {'type': 'string', 'description': 'Link type: website, repository, documentation, slack, jira, notion, figma, other'}, 'label': {'type': 'string'}, 'description': {'type': ['string', 'null']}}}, 'SetupTeam': {'type': 'object', 'required': ['name', 'description'], 'properties': {'name': {'type': 'string'}, 'description': {'type': 'string'}}}, 'SetupProject': {'type': 'object', 'required': ['name', 'description'], 'properties': {'name': {'type': 'string'}, 'description': {'type': 'string'}}}}, 'title': 'SetupOrganizationParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['description', 'business_model', 'objectives'], 'properties': {'links': {'type': ['array', 'null'], 'items': {'$ref': '#/$defs/SetupLink'}, 'description': 'Links: [{"label": "...", "url": "...", "type": "website|repository|documentation|slack|jira|notion|figma|other"}]'}, 'teams': {'type': ['array', 'null'], 'items': {'$ref': '#/$defs/SetupTeam'}, 'description': 'Teams to create: [{"name": "...", "description": "..."}]'}, 'projects': {'type': ['array', 'null'], 'items': {'$ref': '#/$defs/SetupProject'}, 'description': 'Projects to create: [{"name": "...", "description": "..."}]'}, 'objectives': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Organization objectives'}, 'description': {'type': 'string', 'description': 'Organization description'}, 'business_model': {'type': 'string', 'description': 'Business model description'}, 'custom_context': {'type': ['string', 'null'], 'description': 'Custom context for AI agents (optional)'}}}
start_session
Start a work session. If a project is provided (project_name or project_id), the session is bound to it; if neither is provided, an unbound (projectless) session is created — useful when the work isn't tied to a specific project. Reuses an existing active session for the same scope (per-project, or one global projectless session per user). Task type: coding, review, planning, debugging, research, meeting, other.
输入模式
{'type': 'object', 'title': 'StartSessionParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['task_type'], 'properties': {'source': {'type': ['string', 'null'], 'description': "Source client identifier (e.g. 'claude-code', 'claude-web', 'chatgpt', 'cursor'). Helps track which tool created the session."}, 'task_type': {'type': 'string', 'description': 'Type of task: coding, review, planning, debugging, research, meeting, other'}, 'project_id': {'type': ['string', 'null'], 'description': 'Project ID to start the session in (optional if project_name provided)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name (optional, alternative to project_id)'}}}
unassign_task
Remove a user from a task's assignees.
输入模式
{'type': 'object', 'title': 'UnassignTaskParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['task_id', 'user_id'], 'properties': {'task_id': {'type': 'string', 'description': 'Task ID'}, 'user_id': {'type': 'string', 'description': 'User ID to remove from assignees'}}}
unlink_team_project
Unlink a project from a team. Find both by name or ID.
输入模式
{'type': 'object', 'title': 'LinkTeamProjectParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'team_id': {'type': ['string', 'null'], 'description': 'Team ID (optional if team_name is provided)'}, 'team_name': {'type': ['string', 'null'], 'description': 'Team name (optional if team_id is provided)'}, 'project_id': {'type': ['string', 'null'], 'description': 'Project ID (optional if project_name is provided)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name (optional if project_id is provided)'}}}
update_org
Update your organization's details (owner only). Set name, description, business model, objectives, custom context for AI, or links.
输入模式
{'type': 'object', 'title': 'UpdateOrgParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'name': {'type': ['string', 'null'], 'description': 'Organization name (optional)'}, 'links': {'description': 'Links as JSON array: [{"label": "...", "url": "...", "type": "..."}] (optional)'}, 'objectives': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': 'Objectives as a list of strings (optional)'}, 'description': {'type': ['string', 'null'], 'description': 'Organization description (optional)'}, 'business_model': {'type': ['string', 'null'], 'description': 'Business model description (optional)'}, 'custom_context': {'type': ['string', 'null'], 'description': 'Custom context for AI agents (optional)'}}}
update_position
Update a position's title, description, or permissions (admin only). Find by title or ID.
输入模式
{'type': 'object', 'title': 'UpdatePositionParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'new_title': {'type': ['string', 'null'], 'description': 'New title (optional)'}, 'position_id': {'type': ['string', 'null'], 'description': 'Position ID (optional if position_title is provided)'}, 'position_title': {'type': ['string', 'null'], 'description': 'Position title to find (optional if position_id is provided)'}, 'new_description': {'type': ['string', 'null'], 'description': 'New description (optional)'}, 'new_permissions': {'description': 'New permissions JSON object mapping permission keys to booleans, e.g. {"can_view_all_projects": true}. Use list_positions to see all available keys.'}}}
update_project
Update a project's name, description, or links. Find by name or ID.
输入模式
{'type': 'object', 'title': 'UpdateProjectParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'links': {'description': 'Links as JSON array: [{"label": "...", "url": "...", "type": "..."}] (optional)'}, 'new_name': {'type': ['string', 'null'], 'description': 'New name (optional)'}, 'project_id': {'type': ['string', 'null'], 'description': 'Project ID (optional if project_name is provided)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name to find (optional if project_id is provided)'}, 'new_description': {'type': ['string', 'null'], 'description': 'New description (optional)'}}}
update_task
Update a task's status, title, description, priority, or team assignment. Use this to move tasks through the workflow (todo -> in_progress -> done) or reassign to a team.
输入模式
{'type': 'object', 'title': 'UpdateTaskParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['task_id'], 'properties': {'tags': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': 'New tags (replaces existing tags)'}, 'title': {'type': ['string', 'null'], 'description': 'New title'}, 'due_at': {'type': ['string', 'null'], 'description': "Due date in ISO 8601 format (e.g. '2026-03-15T00:00:00Z'), or null to clear"}, 'status': {'type': ['string', 'null'], 'description': 'New status: todo, in_progress, done, cancelled'}, 'task_id': {'type': 'string', 'description': 'Task ID to update'}, 'team_id': {'type': ['string', 'null'], 'description': 'Team ID to assign (optional)'}, 'priority': {'type': ['string', 'null'], 'description': 'New priority: low, medium, high, urgent'}, 'team_name': {'type': ['string', 'null'], 'description': 'Team name to assign (optional, alternative to team_id)'}, 'description': {'type': ['string', 'null'], 'description': 'New description'}}}
update_team
Update a team's name, description, or objectives. Find by name or ID.
输入模式
{'type': 'object', 'title': 'UpdateTeamParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'team_id': {'type': ['string', 'null'], 'description': 'Team ID (optional if team_name is provided)'}, 'new_name': {'type': ['string', 'null'], 'description': 'New name (optional)'}, 'team_name': {'type': ['string', 'null'], 'description': 'Team name to find (optional if team_id is provided)'}, 'new_objectives': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': 'New objectives (optional)'}, 'new_description': {'type': ['string', 'null'], 'description': 'New description (optional)'}}}
update_user
Update an existing user's name, role, positions, or skills (admin/owner only).
输入模式
{'type': 'object', 'title': 'UpdateUserParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['user'], 'properties': {'user': {'type': 'string', 'description': 'User name or email to find'}, 'skills': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': 'Skills list (optional — replaces existing)'}, 'new_name': {'type': ['string', 'null'], 'description': 'New name (optional)'}, 'new_role': {'type': ['string', 'null'], 'description': 'New role: member or admin (optional)'}, 'positions': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': 'Position titles to assign (optional — replaces existing)'}}}
upload_document
Upload a document to the organization's knowledge base. Documents can be templates, policies, contracts, procedures, guides, or references. They are indexed in the knowledge graph and automatically surfaced as context when relevant to a task. Supports both text and binary files: for binary files (PDFs, images, etc.), set is_base64=true and provide the content as a base64-encoded string, along with the appropriate mime_type (e.g. 'application/pdf', 'image/png'). Optionally set file_name for the original filename. Embeddings are generated automatically for search.
输入模式
{'type': 'object', 'title': 'UploadDocumentParams', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['title', 'category', 'content'], 'properties': {'tags': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': "Tags for categorization and search (e.g. ['tax', 'contract', 'template'])"}, 'title': {'type': 'string', 'description': 'Document title'}, 'content': {'type': 'string', 'description': 'Full document content (text/markdown)'}, 'category': {'type': 'string', 'description': 'Category: template, policy, procedure, reference, contract, guide, checklist, other'}, 'team_ids': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': 'Team IDs to associate with (optional, alternative to team_names)'}, 'file_name': {'type': ['string', 'null'], 'description': "Original file name (e.g. 'contract.pdf'). Optional."}, 'is_base64': {'type': ['boolean', 'null'], 'description': 'Set to true if content is base64-encoded (for binary files like PDFs, images)'}, 'mime_type': {'type': ['string', 'null'], 'description': 'MIME type of the content (default: text/plain). Use application/pdf, image/png, etc. for binary files.'}, 'project_id': {'type': ['string', 'null'], 'description': 'Project ID to associate with (optional, alternative to project_name)'}, 'team_names': {'type': ['array', 'null'], 'items': {'type': 'string'}, 'description': 'Team names to associate the document with (optional, for team-level access control)'}, 'project_name': {'type': ['string', 'null'], 'description': 'Project name to associate with (optional)'}}}
whoami
Get your profile, organization, projects, recent sessions, and top entities. This is the best starting point — call this first to understand what's available. No parameters needed.
输入模式
{'type': 'object', 'title': 'EmptyParams', '$schema': 'https://json-schema.org/draft/2020-12/schema'}
已添加
whoami
2026年9月17日 12:41
已添加
upload_document
2026年9月17日 12:41
已添加
update_user
2026年9月17日 12:41
已添加
update_team
2026年9月17日 12:41
已添加
update_task
2026年9月17日 12:41
已添加
update_project
2026年9月17日 12:41
已添加
update_position
2026年9月17日 12:41
已添加
update_org
2026年9月17日 12:41
已添加
unlink_team_project
2026年9月17日 12:41
已添加
unassign_task
2026年9月17日 12:41
已添加
start_session
2026年9月17日 12:41
已添加
setup_organization
2026年9月17日 12:41
已添加
set_context_routing
2026年9月17日 12:41
已添加
search_entities
2026年9月17日 12:41
已添加
remove_user_from_org
2026年9月17日 12:41
已添加
remove_team_member
2026年9月17日 12:41
已添加
remove_task_dependency
2026年9月17日 12:41
已添加
move_task_to_sprint
2026年9月17日 12:41
已添加
mark_notification_read
2026年9月17日 12:41
已添加
log_traces_batch
2026年9月17日 12:41
已添加
log_trace
2026年9月17日 12:41
已添加
log_activity
2026年9月17日 12:41
已添加
list_teams
2026年9月17日 12:41
已添加
list_tasks
2026年9月17日 12:41
已添加
list_sprints
2026年9月17日 12:41
已添加
list_sessions
2026年9月17日 12:41
已添加
list_projects
2026年9月17日 12:41
已添加
list_project_teams
2026年9月17日 12:41
已添加
list_project_members
2026年9月17日 12:41
已添加
list_positions
2026年9月17日 12:41