Documentation
¶
Overview ¶
Package mcpserver exposes ArtifactKit through the official Model Context Protocol Go SDK.
Index ¶
- func New(service *agent.Service, version string) *mcp.Server
- func Run(ctx context.Context, roots []string, reader io.Reader, writer io.Writer) error
- type FindInput
- type InspectInput
- type InspectResourceInput
- type ListFilesInput
- type ProvenanceInput
- type ReadInput
- type ReadOutput
- type ReferenceInput
- type ResourceView
- type TableInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InspectInput ¶
type InspectInput struct {
Path string `json:"path" jsonschema:"Path to a local artifact under a configured root."`
}
type InspectResourceInput ¶
type InspectResourceInput struct {
ResourceURI string `json:"resource_uri" jsonschema:"Lazy resource URI returned by artifact_list_attachments."`
}
type ListFilesInput ¶
type ListFilesInput struct {
Path string `json:"path" jsonschema:"Directory under a configured root."`
Recursive bool `json:"recursive,omitempty" jsonschema:"Include files in descendant directories."`
Limit int `json:"limit,omitempty" jsonschema:"Maximum files; defaults to 200 and cannot exceed 2000."`
}
type ProvenanceInput ¶
type ReadInput ¶
type ReadInput struct {
Artifact string `json:"artifact,omitempty" jsonschema:"Artifact ID or path; required for node reads."`
NodeID string `json:"node_id,omitempty" jsonschema:"Node ID to read. Set either node_id or resource_uri."`
ResourceURI string `` /* 128-byte string literal not displayed */
Offset int64 `json:"offset,omitempty" jsonschema:"Character offset for nodes or byte offset for resources."`
Limit int64 `json:"limit,omitempty" jsonschema:"Characters or bytes to return; a safe default is used when omitted."`
}
type ReadOutput ¶
type ReadOutput struct {
Kind string `json:"kind"`
Node *agent.NodeView `json:"node,omitempty"`
Resource *ResourceView `json:"resource,omitempty"`
}
type ReferenceInput ¶
type ReferenceInput struct {
Artifact string `json:"artifact" jsonschema:"Artifact ID returned by artifact_inspect, or a local path under a configured root."`
}
type ResourceView ¶
type TableInput ¶
type TableInput struct {
Artifact string `json:"artifact" jsonschema:"Artifact ID or local path."`
Table string `json:"table,omitempty" jsonschema:"Table or sheet node ID, table name, or blank for the first table."`
Offset int `json:"offset,omitempty" jsonschema:"Zero-based data-row offset, excluding the header row."`
Limit int `json:"limit,omitempty" jsonschema:"Maximum data rows; defaults to 50 and cannot exceed 500."`
}
Click to show internal directories.
Click to hide internal directories.